1 #ifndef __JDETECTOR__JDETECTORADDRESSMAPTOOLKIT__
2 #define __JDETECTOR__JDETECTORADDRESSMAPTOOLKIT__
18 namespace JDETECTOR {}
19 namespace JPP {
using namespace JDETECTOR; }
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)
virtual const JModuleAddressMap & getDefaultModuleAddressMap() const override
Get default module address map.
JTemplateDetectorAddressMap()
Default constructor.
static bool has(const int id)
Has detector address map.
virtual const JModuleAddressMap & getDefaultModuleAddressMap() const override
Get default module address map.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
virtual const JModuleAddressMap & getDefaultModuleAddressMap() const override
Get default module address map.
bool hasDetectorAddressMap(const int id)
Check if detector address map is available.
T get(const JHead &header)
Get object from header.
Lookup table for PMT addresses in detector.
Auxiliary class for a type holder.
JTemplateDetectorAddressMap()
Default constructor.
JTemplateDetectorAddressMap()
Default constructor.
Lookup table for PMT addresses in optical module.
JTemplateDetectorAddressMap()
Default constructor.
bool hasDetector(JType< JPPM_DU_t > type, const int id)
Check validity of detector identifier.
Template lookup table for PMT addresses in detector.
Auxiliary class for recursive type list generation.
JTYPELIST< JPPM_DU_t, JKM3NeT_t, JMonteCarlo_t >::typelist JDetectorTypes_t
Type list of detector types.
const JPMTAddressTranslator & getPMTAddressTranslator(int id, int tdc)
Get PMT address translator for given module identifier and TDC channel.
Type definitions for different detectors.PPM_DU.
Auxiliary class for no type definition.
JModuleAddressMap & getModuleAddressMap(int id)
Get module address map.
Data structure to translate PMT physical to readout address.
int getPMTLogicalIndex(int id, int tdc)
Get PMT logical index for given module identifier and TDC channel.
int getIndex()
Get index for user I/O manipulation.
JDetectorAddressMap & getDetectorAddressMap()
Get detector address map.
Auxiliary class to extract detector address map from detector identifier.
Data structure for PMT readout address.
Data structure for PMT physical address.
Exception for accessing an index in a collection that is outside of its range.
void configure()
Configure internal router.
virtual const JModuleAddressMap & getDefaultModuleAddressMap() const override
Get default module address map.
static bool has(const int id)
Has detector address map.