1 #ifndef BSEMCFWENDCAPDETIDTOALVEOLEMAP_HH 2 #define BSEMCFWENDCAPDETIDTOALVEOLEMAP_HH 19 fFilename = t_filename;
24 std::vector<Int_t>
GetAlveoleCrystals(
const TString t_key)
const {
return fAlveoleDetIds.at(t_key); }
27 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)}; }
31 std::map<Int_t, BSEmcFwEndcapCrystal_t> fDetIdToAlveole{};
32 std::map<TString, std::vector<Int_t>> fAlveoleDetIds{};
33 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()