30 Bool_t fInitialized{
false};
32 std::map<Int_t, Int_t> fIDtoIdx;
33 std::array<Int_t, BMN_MODULE_COUNT> fIdxToID;
45 virtual Int_t
IDfromHit(Int_t HitDetectorID)
const = 0;
50 inline Int_t
EncodedID(Int_t idx)
const {
return fInitialized ? fIdxToID.at(idx) : -1; };
51 inline Int_t
Idx(Int_t ID)
const {
return fInitialized ? fIDtoIdx.at(ID) : -1; };
52 inline Int_t
IdxFromHit(Int_t hitID)
const {
return fInitialized ? fIDtoIdx.at(
IDfromHit(hitID)) : -1; };
53 inline Bool_t
UnknownID(Int_t ID)
const {
return fInitialized ? fIDtoIdx.find(ID) == fIDtoIdx.end() : kTRUE; }