1#ifndef __JDETECTOR__JSTRINGCOUNTER__
2#define __JDETECTOR__JSTRINGCOUNTER__
41 buffer.resize(detector.size());
45 for (JDetector::const_iterator module = detector.begin(); module != detector.end(); ++module, ++out) {
46 *out =
module->getString();
78 for (T i = __begin; i != __end; ++i, ++out) {
Data structure for detector geometry and calibration.
Direct access to module in detector data structure.
std::vector< T >::difference_type distance(typename std::vector< T >::const_iterator first, typename PhysicsEvent::const_iterator< T > second)
Specialisation of STL distance.
int getString() const
Get string number.
Router for direct addressing of module data in detector data structure.
const JModule & getModule(const JObjectID &id) const
Get module parameters.
file Auxiliary data structures and methods for detector calibration.
static const JStringCounter getNumberOfStrings
Function object to count unique strings.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Auxiliary class for counting unique strings.
JStringCounter()
Default constructor.
std::vector< int > buffer
int operator()(const JModuleRouter &router, T __begin, T __end) const
Count unique strings.
int operator()(const JDetector &detector) const
Count unique strings.