26 declareInterface<IDataRetriever>(
this);
42 return StatusCode::FAILURE;
55 return StatusCode::SUCCESS;
63 std::string&
itemList, std::string& prescaleList) {
68 std::vector<std::string> chainList =
chains->getListOfTriggers();
69 ATH_MSG_DEBUG(
"Number of items in chain is " << chainList.size());
71 for (
auto &trigName : chainList){
74 if ( trigName.empty() )
continue;
81 if ( std::abs(trigChain->getPrescale()-1.0) > 1
e-5 )
continue;
84 std::string myItem = trigName;
86 <<
"; result = " << (trigChain->isPassed() ?
"passed" :
"failed")
87 <<
"; prescale = " << trigChain->getPrescale());
90 if ( myItem.find(
"HLT",0) != std::string::npos){
91 myItem.replace(0,4,
"EF_");
98 if ( trigChain->isPassed() ) {
104 prescaleList +=
"-" +
DataType( trigChain->getPrescale() ).toString();
111 if ( prescaleList.empty() ){ prescaleList =
"empty"; }
117 return StatusCode::SUCCESS;
132 std::string itemListL1=
"";
133 std::string prescaleListL1=
"";
134 std::string itemListL2=
"";
135 std::string prescaleListL2=
"";
136 std::string itemListEF=
"";
137 std::string prescaleListEF=
"";
138 std::string itemListHLT=
"";
139 std::string prescaleListHLT=
"";
145 ATH_MSG_DEBUG(
"Decision : Level-1 " << ((flagL1Passed)?
"passed":
"failed"));
151 ATH_MSG_DEBUG(
"Decision : Level-2 " << ((flagL2Passed)?
"passed":
"failed"));
157 ATH_MSG_DEBUG(
"Decision : EventFilter " << ((flagEFPassed)?
"passed":
"failed"));
163 ATH_MSG_DEBUG(
"Decision : HLT " << ((flagHLTPassed)?
"passed":
"failed"));
166 if ((itemListL1==
"empty") && (itemListL2==
"empty") && (itemListEF==
"empty") && (itemListHLT==
"empty") ){
167 ATH_MSG_INFO(
"All item lists empty, will not write out any data");
168 return StatusCode::SUCCESS;
173 DataVect prescaleListL1Vec; prescaleListL1Vec.push_back(
DataType( prescaleListL1 ));
175 DataVect prescaleListL2Vec; prescaleListL2Vec.push_back(
DataType( prescaleListL2 ));
177 DataVect prescaleListEFVec; prescaleListEFVec.push_back(
DataType( prescaleListEF ));
178 DataVect itemListHLTVec; itemListHLTVec.push_back(
DataType( itemListHLT ));
179 DataVect prescaleListHLTVec; prescaleListHLTVec.push_back(
DataType( prescaleListHLT ));
194 dataMap[
"ctpItemList"] = itemListL1Vec;
195 dataMap[
"prescaleListL1"] = prescaleListL1Vec;
196 dataMap[
"itemListL2"] = itemListL2Vec;
197 dataMap[
"prescaleListL2"] = prescaleListL2Vec;
198 dataMap[
"itemListEF"] = itemListHLTVec;
199 dataMap[
"prescaleListEF"] = prescaleListHLTVec;
200 dataMap[
"passedTrigger"] = passedTrigger;
201 dataMap[
"passedL1"] = passedL1;
202 dataMap[
"passedL2"] = passedHLT;
203 dataMap[
"passedEF"] = passedHLT;
204 dataMap[
"energySumEt"] = energySumEt;
205 dataMap[
"energyEx"] = energyEx;
206 dataMap[
"energyEy"] = energyEy;
207 dataMap[
"energyEtMiss"] = energyEtMiss;