Go to the documentation of this file. 1 #ifndef __JDETECTOR__JMODULEMAPPER__
2 #define __JDETECTOR__JMODULEMAPPER__
34 template<
class JAttributes_t>
37 JAttributes_t& attributes);
65 template<
class JAttributes_t>
80 static JAttributes_t attributes;
160 template<
class JAttributes_t = JNullType>
211 template<
class JMatch_t>
230 template<
class JMatch_t>
260 template<
class JMatch_t>
265 zmap.resize(detector.size());
271 for (
int i = 0; i != (int) detector.size(); ++i) {
272 for (
int j = i; ++
j != (int) detector.size(); ) {
273 if (match(detector[i], detector[
j])) {
const container_type & getList(const JObjectID &id) const
Get list with module data matching given module.
Data structure for module address and module attributes.
int first
index of module in detector data structure
JModuleAttributes(const int index, const JModule &first, const JModule &second)
Constructor.
Mapper for directly addressing of associated modules in the detector data structure.
static const JAttributes_t & getAttributes(const JModule &first, const JModule &second)
Get module attributes.
double getDistance(const JVector3D &pos) const
Get distance to point.
Auxiliary class for no type definition.
JMaximalDistance(const double Dmax_m)
Constructor.
std::vector< moduleattributes_type > container_type
Type definition of a list with module data.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
JModuleAttributes< JAttributes_t > moduleattributes_type
Type definition of module data.
const JClass_t & getReference() const
Get reference to object.
Address of module in detector data structure.
Data structure for a composite optical module.
JModuleMapper(const JModuleRouter &router)
Constructor.
JModuleAttributes()
Default constructor.
JModuleMapper(const JDetector &detector)
Constructor.
Auxiliary class to match modules according maximal distance.
Auxiliary class for object identification.
Router for direct addressing of module data in detector data structure.
void setAttributes(const JModule &first, const JModule &second, JAttributes_t &attributes)
Template method to set module attributes.
const JModuleAddress & getAddress(const JObjectID &id) const
Get address of module.
double getDmax() const
Get maximal distance.
JModuleMapper(const JDetector &detector, JMatch_t match)
Constructor.
void configure(JMatch_t match)
Configure this module mapper.
JModuleMapper(const JModuleRouter &router, JMatch_t match)
Constructor.
void setAttributes< JNullType >(const JModule &first, const JModule &second, JNullType &attributes)
Template specialisation to set no attributes for the default empty object.
bool operator()(const JModule &first, const JModule &second) const
Test whether two module match.
Auxiliary classes and methods for detector calibration.
std::vector< container_type > zmap
JTOOLS::JRouter< JModuleAddress > router