6 #include "CLHEP/Units/SystemOfUnits.h"
15 m_typeName(
"LVL1Result")
17 declareInterface<IDataRetriever>(
this);
42 energySumEt.push_back(
DataType( -1. ) );
43 energyEx.push_back(
DataType( -1. ) );
44 energyEy.push_back(
DataType( -1. ) );
45 energyEtMiss.push_back(
DataType( -1. ) );
48 passedTrigger.push_back(
DataType( -1. ) );
49 passedL1.push_back(
DataType( -1. ) );
50 passedL2.push_back(
DataType( -1. ) );
51 passedEF.push_back(
DataType( -1. ) );
55 std::string itemListL1=
"";
56 std::string prescaleListL1=
"";
57 std::string itemListL2=
"n_a_CTPDecOnly";
58 std::string prescaleListL2=
"0";
59 std::string itemListEF=
"n_a_CTPDecOnly";
60 std::string prescaleListEF=
"0";
70 return StatusCode::SUCCESS;
74 CTP_Decision::items_type::const_iterator itCTP = (ctpDecision->
getItems()).
begin();
75 CTP_Decision::items_type::const_iterator itCTPe = (ctpDecision->
getItems()).
end();
77 for (; itCTP != itCTPe; ++itCTP){
78 itemListL1 +=
"-"+*itCTP;
79 prescaleListL1 +=
"-0";
82 itemListL1Vec.emplace_back( std::move( itemListL1 ));
83 itemListL2Vec.emplace_back( std::move( itemListL2 ));
84 itemListEFVec.emplace_back( std::move( itemListEF ));
85 prescaleListL1Vec.emplace_back( std::move( prescaleListL1 ));
86 prescaleListL2Vec.emplace_back( std::move( prescaleListL2 ));
87 prescaleListEFVec.emplace_back( std::move( prescaleListEF ));
90 const int nEntries = itemListL1Vec.size();
91 myDataMap[
"ctpItemList"] = std::move(itemListL1Vec);
92 myDataMap[
"prescaleListL1"] = std::move(prescaleListL1Vec);
93 myDataMap[
"itemListL2"] = std::move(itemListL2Vec);
94 myDataMap[
"prescaleListL2"] = std::move(prescaleListL2Vec);
95 myDataMap[
"itemListEF"] = std::move(itemListEFVec);
96 myDataMap[
"prescaleListEF"] = std::move(prescaleListEFVec);
97 myDataMap[
"passedTrigger"] = std::move(passedTrigger);
98 myDataMap[
"passedL1"] = std::move(passedL1);
99 myDataMap[
"passedL2"] = std::move(passedL2);
100 myDataMap[
"passedEF"] = std::move(passedEF);
101 myDataMap[
"energySumEt"] = std::move(energySumEt);
102 myDataMap[
"energyEx"] = std::move(energyEx);
103 myDataMap[
"energyEy"] = std::move(energyEy);
104 myDataMap[
"energyEtMiss"] = std::move(energyEtMiss);
109 return FormatTool->AddToEvent(
dataTypeName(),
"CTP_Decision", &myDataMap);