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" ) {
42 return L1TriggerTypeBit::BIT0_RNDM;
43 }
else if( loCaseTriggerBitName ==
"bit1_zerobias" ) {
44 return L1TriggerTypeBit::BIT1_ZEROBIAS;
45 }
else if( loCaseTriggerBitName ==
"bit2_l1cal" ) {
46 return L1TriggerTypeBit::BIT2_L1CAL;
47 }
else if( loCaseTriggerBitName ==
"bit3_muon" ) {
48 return L1TriggerTypeBit::BIT3_MUON;
49 }
else if( loCaseTriggerBitName ==
"bit4_rpc" ) {
50 return L1TriggerTypeBit::BIT4_RPC;
51 }
else if( loCaseTriggerBitName ==
"bit5_ftk" ) {
52 return L1TriggerTypeBit::BIT5_FTK;
53 }
else if( loCaseTriggerBitName ==
"bit6_ctp" ) {
54 return L1TriggerTypeBit::BIT6_CTP;
55 }
else if( loCaseTriggerBitName ==
"bit7_calib" ) {
56 return L1TriggerTypeBit::BIT7_CALIB;
57 }
else if( loCaseTriggerBitName ==
"anyphystrig" ) {
58 return L1TriggerTypeBit::ANY_PHYSICS;
60 ATH_MSG_WARNING(
"::getL1TriggerTypeBitFromName(): Unknown L1 trigger type bit name: "
61 << triggerBitName <<
", returning AnyPhysTrig.");
62 return L1TriggerTypeBit::ANY_PHYSICS;
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);