12 std::string eb=isBarrel ?
"Barrel" :
"Endcap";
13 std::string ac=(pos_neg==1) ?
"A" :
"C";
14 return eb+ac+Form(
"ft%02d",feedthrough)+Form(
"slot%02d",slot);
22 res.ReplaceAll(
"barrela",
"BarrelA");
23 res.ReplaceAll(
"barrelc",
"BarrelC");
24 res.ReplaceAll(
"endcapa",
"EndcapA");
25 res.ReplaceAll(
"endcapc",
"EndcapC");
26 res.ReplaceAll(
"endcapa",
"EndcapA");
28 int pos =
res.Index(
"ft")+2;
29 TString num=
res(pos,2);
32 if(num.IsDec())
res.Replace(pos,1,
"0"+num,2);
34 pos =
res.Index(
"slot")+4;
37 if(num.IsDec())
res.Replace(pos,1,
"0"+num,2);
39 return (std::string)
res;
std::pair< std::vector< unsigned int >, bool > res
std::string febNameString(bool, int, int, int) const
FEB names.
std::string fixFEBname(TString) const
fix custom strings to avoid errors due to uppr-lower cases