Helper class to manipulate strings for LArOnlineID names.
More...
#include <LArStrHelper.h>
Helper class to manipulate strings for LArOnlineID names.
- Author
- Margherita Spalla margh.nosp@m.erit.nosp@m.a.spa.nosp@m.lla@.nosp@m.cern..nosp@m.ch
- Date
- 30-September-2020 Helper class to manipulate strings for LArOnlineID names: Since most of the naming is done at python level in AthenaMT, we only add strictly needed functions. For now, it just contains the FEB naming scheme used by LArNoiseCorrelations.
Definition at line 23 of file LArStrHelper.h.
◆ LArStrHelper()
LArStrHelper::LArStrHelper |
( |
| ) |
|
|
inline |
◆ ~LArStrHelper()
LArStrHelper::~LArStrHelper |
( |
| ) |
|
|
inline |
◆ febNameString()
std::string LArStrHelper::febNameString |
( |
bool |
isBarrel, |
|
|
int |
pos_neg, |
|
|
int |
feedthrough, |
|
|
int |
slot |
|
) |
| const |
FEB names.
Definition at line 11 of file LArStrHelper.cxx.
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);
◆ fixFEBname()
std::string LArStrHelper::fixFEBname |
( |
TString |
nm | ) |
const |
fix custom strings to avoid errors due to uppr-lower cases
Definition at line 19 of file LArStrHelper.cxx.
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;
39 return (std::string)
res;
The documentation for this class was generated from the following files: