Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JStringRouter.hh
Go to the documentation of this file.
1#ifndef __JDETECTOR__JSTRINGROUTER__
2#define __JDETECTOR__JSTRINGROUTER__
3
6
7
8/**
9 * \file
10 * Direct access to string in detector data structure.
11 * \author mdejong
12 */
13namespace JDETECTOR {}
14namespace JPP { using namespace JDETECTOR; }
15
16namespace JDETECTOR {
17
18 /**
19 * Router for mapping of string identifier to index.
20 */
23 {
24 /**
25 * Constructor.
26 *
27 * \param detector detector
28 */
29 JStringRouter(const JDetector& detector)
30 {
31 for (JDetector::const_iterator module = detector.begin(); module != detector.end(); ++module) {
32 this->insert(module->getString());
33 }
34 }
35 };
36}
37
38#endif
Data structure for detector geometry and calibration.
General purpose class for a hash collection of unique elements.
Detector data structure.
Definition JDetector.hh:96
General purpose class for hash collection of unique elements.
virtual bool insert(const value_type &element)
file Auxiliary data structures and methods for detector calibration.
Definition JAnchor.hh:12
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
Router for mapping of string identifier to index.
JStringRouter(const JDetector &detector)
Constructor.