13 #ifndef BSEMCFWENDCAPDETIDTOALVEOLEMAP_HH 14 #define BSEMCFWENDCAPDETIDTOALVEOLEMAP_HH 31 fFilename = t_filename;
36 std::vector<Int_t>
GetAlveoleCrystals(
const TString t_key)
const {
return fAlveoleDetIds.at(t_key); }
39 TString
ConvertToKey(
const Int_t t_xindex,
const Int_t t_yindex)
const {
return "X" + TString{std::to_string(t_xindex)} +
"Y" + TString{std::to_string(t_yindex)}; }
43 std::map<Int_t, BSEmcFwEndcapCrystal_t> fDetIdToAlveole{};
44 std::map<TString, std::vector<Int_t>> fAlveoleDetIds{};
45 TString fFilename{
"FwEndcapDetIdToAlveoleMap.txt"};
std::vector< Int_t > GetAlveoleCrystals(const TString t_key) const
TString ConvertToKey(const Int_t t_xindex, const Int_t t_yindex) const
BSEmcFwEndcapDetIdToAlveoleMap()
BSEmcFwEndcapCrystal_t GetAlveoleId(const Int_t t_detectorId) const
void SetFileName(const TString &t_filename)
std::vector< Int_t > GetAlveoleCrystals(const Int_t t_xindex, const Int_t t_yindex) const
virtual ~BSEmcFwEndcapDetIdToAlveoleMap()