Go to the documentation of this file. 1 #ifndef __JDETECTOR__JDETECTORADDRESSMAPTOOLKIT__
2 #define __JDETECTOR__JDETECTORADDRESSMAPTOOLKIT__
63 template<
class JDetector_t>
153 get(103).swap(24,30);
362 template<
class JDetector_t>
377 template<
class JDetector_t>
380 return getDetectorAddressMap<JDetector_t>().get(
id);
391 template<
class JDetector_t>
394 return getModuleAddressMap<JDetector_t>(
id).getAddressTranslator(tdc);
405 template<
class JDetector_t>
408 return getModuleAddressMap<JDetector_t>(
id).getIndex(tdc);
419 template<
class JHead_t,
class JTail_t>
431 return getDetectorAddressMap<JHead_t>();
443 static bool has(
const int id)
450 template<
class JHead_t>
462 return getDetectorAddressMap<JHead_t>();
474 static bool has(
const int id)
Exception for accessing an index in a collection that is outside of its range.
Auxiliary class for a type holder.
static bool has(const int id)
Has detector address map.
Data structure for PMT physical address.
Auxiliary class to extract detector address map from detector identifier.
int getPMTLogicalIndex(int id, int tdc)
Get PMT logical index for given module identifier and TDC channel.
Auxiliary class for no type definition.
static JDetectorAddressMap & get(const int id)
Get detector address map.
Auxiliary class for recursive type list generation.
const JPMTAddressTranslator & getPMTAddressTranslator(int id, int tdc)
Get PMT address translator for given module identifier and TDC channel.
virtual const JModuleAddressMap & getDefaultModuleAddressMap() const
Get default module address map.
Template lookup table for PMT addresses in detector.
Lookup table for PMT addresses in optical module.
virtual const JModuleAddressMap & getDefaultModuleAddressMap() const
Get default module address map.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
virtual const JModuleAddressMap & getDefaultModuleAddressMap() const
Get default module address map.
JTemplateDetectorAddressMap()
Default constructor.
Type definitions for different detectors.PPM_DU.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
bool hasDetector(JType< JMonteCarlo_t > type, const int id)
void configure()
Configure internal router.
JTYPELIST< JPPM_DU_t, JKM3NeT_t, JMonteCarlo_t >::typelist JDetectorTypes_t
Type list of detector types.
JModuleAddressMap & getModuleAddressMap(int id)
Get module address map.
virtual const JModuleAddressMap & getDefaultModuleAddressMap() const
Get default module address map.
JTemplateDetectorAddressMap()
Default constructor.
JTemplateDetectorAddressMap()
Default constructor.
Lookup table for PMT addresses in detector.
static JDetectorAddressMap & get(const int id)
Get detector address map.
bool hasDetectorAddressMap(const int id)
Check if detector address map is available.
T get(const JHead &header)
Get object from header.
static bool has(const int id)
Has detector address map.
JTemplateDetectorAddressMap()
Default constructor.
Data structure to translate PMT physical to readout address.
Data structure for PMT readout address.
JDetectorAddressMap & getDetectorAddressMap(const int id)
Get detector address map.
Auxiliary classes and methods for detector calibration.