21 msg(MSG::INFO) <<
"Will fill histograms for L1 triggers:";
23 if (l1TriggerIdx >= 0) {
38 std::string loCaseTriggerBitName = triggerBitName;
39 std::transform(triggerBitName.begin(), triggerBitName.end(), loCaseTriggerBitName.begin(),
::tolower);
41 if( loCaseTriggerBitName ==
"bit0_rndm" ) {
43 }
else if( loCaseTriggerBitName ==
"bit1_zerobias" ) {
45 }
else if( loCaseTriggerBitName ==
"bit2_l1cal" ) {
47 }
else if( loCaseTriggerBitName ==
"bit3_muon" ) {
49 }
else if( loCaseTriggerBitName ==
"bit4_rpc" ) {
51 }
else if( loCaseTriggerBitName ==
"bit5_ftk" ) {
53 }
else if( loCaseTriggerBitName ==
"bit6_ctp" ) {
55 }
else if( loCaseTriggerBitName ==
"bit7_calib" ) {
57 }
else if( loCaseTriggerBitName ==
"anyphystrig" ) {
60 ATH_MSG_WARNING(
"::getL1TriggerTypeBitFromName(): Unknown L1 trigger type bit name: "
61 << triggerBitName <<
", returning AnyPhysTrig.");
69 std::vector<int> triggerIndices;
72 if (lvl1TriggerType != 0) {
77 if (triggerIdx >= 0) triggerIndices.push_back(triggerIdx);
79 for (
int bitTrigger = 0; bitTrigger <
BIT7_CALIB; ++bitTrigger) {
80 if ((lvl1TriggerType >> bitTrigger) & 1) {
82 if (triggerIdx >= 0) triggerIndices.push_back(triggerIdx);
87 if (triggerIdx >= 0) triggerIndices.push_back(triggerIdx);
92 if (triggerIdx >= 0) triggerIndices.push_back(triggerIdx);
95 return triggerIndices;
100 return (lvl1TriggerType == 0) || (((lvl1TriggerType >>
BIT7_CALIB) & 1) == 1);
126 int side = tileID->
side(
id);
#define ATH_MSG_WARNING(x)
void tolower(std::string &s)
bool msgLvl(const MSG::Level lvl) const
virtual StatusCode initialize() override
initialize
bool is_tile(Identifier id) const
Data object for each calorimeter readout cell.
This is a "hash" representation of an Identifier.
Helper class for TileCal offline identifiers.
std::vector< int > m_l1TriggerIndices
std::vector< L1TriggerTypeBit > m_l1Triggers
Partition
Describes Tile partitions (ROS - 1)
Gaudi::Property< std::vector< std::string > > m_fillHistogramsForL1Triggers
L1TriggerTypeBit getL1TriggerTypeBitFromName(const std::string &triggerBitName) const
virtual StatusCode initialize() override
initialize
std::vector< int > getL1TriggerIndices(uint32_t lvl1TriggerType) const
Return indices of histograms to be filled according fired L1 trigger type.
L1TriggerTypeBit
Describes L1 trigger type bits.
L1TriggerTypeBit getL1TriggerTypeBit(int lvl1TriggerIdx) const
Return Level1 Trigger type bit according trigger index.
bool isPhysicsEvent(uint32_t lvl1TriggerType) const
Return true if it is physics event or false for calibration event.
Partition getPartition(const CaloCell *cell, const TileID *tileID) const
Return Partition for Tile cell or MAX_PART otherwise.
std::vector< std::string > m_l1TriggerBitNames
Identifier cell_id(const Identifier &any_id) const
int side(const Identifier &id) const
int section(const Identifier &id) const