6 stage2CaloLayer2JetToken_(consumes<
l1t::
JetBxCollection>(ps.getParameter<
edm::InputTag>(
"stage2CaloLayer2JetProducer"))),
7 stage2CaloLayer2EGammaToken_(consumes<
l1t::
EGammaBxCollection>(ps.getParameter<
edm::InputTag>(
"stage2CaloLayer2EGammaProducer"))),
8 stage2CaloLayer2TauToken_(consumes<
l1t::
TauBxCollection>(ps.getParameter<
edm::InputTag>(
"stage2CaloLayer2TauProducer"))),
9 stage2CaloLayer2EtSumToken_(consumes<
l1t::
EtSumBxCollection>(ps.getParameter<
edm::InputTag>(
"stage2CaloLayer2EtSumProducer"))),
11 monitorDir_(ps.getUntrackedParameter<
std::
string>(
"monitorDir")),
12 verbose_(ps.getUntrackedParameter<
bool>(
"verbose")),
13 gtUtil_(new
l1t::L1TGlobalUtil(ps, consumesCollector(), *this, ps.getParameter<
edm::InputTag>(
"ugtProducer"), ps.getParameter<
edm::InputTag>(
"ugtProducer"))),
14 algoBitFirstBxInTrain_(-1),
15 algoBitLastBxInTrain_(-1),
17 algoNameFirstBxInTrain_(ps.getUntrackedParameter<
std::
string>(
"firstBXInTrainAlgo",
"")),
18 algoNameLastBxInTrain_(ps.getUntrackedParameter<
std::
string>(
"lastBXInTrainAlgo",
"")),
19 algoNameIsoBx_(ps.getUntrackedParameter<
std::
string>(
"isoBXAlgo",
"")),
21 egammaPtCuts_(ps.getUntrackedParameter<
std::vector<double>>(
"egammaPtCuts")),
22 jetPtCut_(ps.getUntrackedParameter<double>(
"jetPtCut")),
24 tauPtCut_(ps.getUntrackedParameter<double>(
"tauPtCut")),
25 etsumPtCut_(ps.getUntrackedParameter<double>(
"etsumPtCut")),
26 muonPtCut_(ps.getUntrackedParameter<double>(
"muonPtCut")),
27 muonQualCut_(ps.getUntrackedParameter<
int>(
"muonQualCut"))
48 desc.
add<
edm::InputTag>(
"stage2CaloLayer2JetProducer")->setComment(
"L1T jets");
49 desc.
add<
edm::InputTag>(
"stage2CaloLayer2EGammaProducer")->setComment(
"L1T egamma");
50 desc.
add<
edm::InputTag>(
"stage2CaloLayer2TauProducer")->setComment(
"L1T taus");
51 desc.
add<
edm::InputTag>(
"stage2CaloLayer2EtSumProducer")->setComment(
"L1T etsums");
53 desc.
addUntracked<
std::string>(
"monitorDir",
"")->setComment(
"Target directory in the DQM file. Will be created if not existing.");
55 desc.
addUntracked<
std::string>(
"firstBXInTrainAlgo",
"")->setComment(
"Pick the right algo name for L1 First Collision In Train");
56 desc.
addUntracked<
std::string>(
"lastBXInTrainAlgo",
"")->setComment(
"Pick the right algo name for L1 Last Collision In Train");
58 desc.
addUntracked<
std::string>(
"useAlgoDecision",
"initial")->setComment(
"Which algo decision should be checked [initial, intermediate, final].");
59 desc.
addUntracked<std::vector<double>>(
"egammaPtCuts", {20., 10., 30.})->setComment(
"List if min egamma pT vaules");
64 desc.
addUntracked<
int>(
"muonQualCut", 12)->setComment(
"Min muon quality");
65 descriptions.
add(
"l1tObjectsTiming", desc);
82 edm::LogWarning(
"L1TObjectsTiming") <<
"Algo \"" <<
algoNameIsoBx_ <<
"\" not found in the trigger menu " <<
gtUtil_->gtTriggerMenuName() <<
". Could not retrieve algo bit number.";
89 std::array<std::string, 5> bx_obj { {
"minus2",
"minus1",
"0",
"plus1",
"plus2"} };
93 auto muonPtCutStr = std::to_string(
muonPtCut_);
94 muonPtCutStr.resize(muonPtCutStr.size()-5);
96 auto jetPtCutStr = std::to_string(
jetPtCut_);
97 jetPtCutStr.resize(jetPtCutStr.size()-5);
100 egammaPtCutStr.resize(egammaPtCutStr.size()-5);
102 auto tauPtCutStr = std::to_string(
tauPtCut_);
103 tauPtCutStr.resize(tauPtCutStr.size()-5);
106 etsumPtCutStr.resize(etsumPtCutStr.size()-5);
111 muons_eta_phi.push_back(ibooker.
book2D(
"muons_eta_phi_bx_"+bx_obj[
i],
"L1T Muon p_{T}#geq"+muonPtCutStr+
" GeV qual#geq"+muonQualCutStr+
" #eta vs #phi BX="+bx_obj[i]+
";#eta;#phi", 25, -2.5, 2.5, 25, -3.2, 3.2));
113 denominator_muons = ibooker.
book2D(
"denominator_muons",
"Denominator for L1T Muon p_{T}#geq"+muonPtCutStr+
" GeV qual#geq"+muonQualCutStr+
";#eta;#phi", 25, -2.5, 2.5, 25, -3.2, 3.2);
117 jet_eta_phi.push_back(ibooker.
book2D(
"jet_eta_phi_bx_"+bx_obj[
i],
"L1T Jet p_{T}#geq"+jetPtCutStr+
" GeV #eta vs #phi BX="+bx_obj[i]+
";#eta;#phi", 50, -5., 5., 25, -3.2, 3.2));
119 denominator_jet = ibooker.
book2D(
"denominator_jet",
"Denominator for L1T Jet p_{T}#geq"+jetPtCutStr+
" GeV;#eta;#phi", 50, -5., 5., 25, -3.2, 3.2);
123 egamma_eta_phi.push_back(ibooker.
book2D(
"egamma_eta_phi_bx_"+bx_obj[
i],
"L1T EGamma p_{T}#geq"+egammaPtCutStr+
" GeV #eta vs #phi BX="+bx_obj[i]+
";#eta;#phi", 30, -3., 3., 25, -3.2, 3.2));
125 denominator_egamma = ibooker.
book2D(
"denominator_egamma",
"Denominator for L1T EGamma p_{T}#geq"+egammaPtCutStr+
" GeV;#eta;#phi", 30, -3., 3., 25, -3.2, 3.2);
129 tau_eta_phi.push_back(ibooker.
book2D(
"tau_eta_phi_bx_"+bx_obj[
i],
"L1T Tau p_{T}#geq"+tauPtCutStr+
" GeV #eta vs #phi BX="+bx_obj[i]+
";#eta;#phi", 30, -3., 3., 25, -3.2, 3.2));
131 denominator_tau = ibooker.
book2D(
"denominator_tau",
"Denominator for L1T Tau p_{T}#geq"+tauPtCutStr+
" GeV;#eta;#phi", 30, -3., 3., 25, -3.2, 3.2);
135 etsum_eta_phi_MET.push_back(ibooker.
book1D(
"etsum_phi_bx_MET_"+bx_obj[
i],
"L1T EtSum MET p_{T}#geq"+etsumPtCutStr+
" GeV #phi BX="+bx_obj[i]+
";#phi", 25, -3.2, 3.2));
136 etsum_eta_phi_METHF.push_back(ibooker.
book1D(
"etsum_phi_bx_METHF_"+bx_obj[i],
"L1T EtSum METHF p_{T}#geq"+etsumPtCutStr+
" GeV #phi BX="+bx_obj[i]+
";#phi", 25, -3.2, 3.2));
137 etsum_eta_phi_MHT.push_back(ibooker.
book1D(
"etsum_phi_bx_MHT_"+bx_obj[i],
"L1T EtSum MHT p_{T}#geq"+etsumPtCutStr+
" GeV #phi BX="+bx_obj[i]+
";#phi", 25, -3.2, 3.2));
138 etsum_eta_phi_MHTHF.push_back(ibooker.
book1D(
"etsum_phi_bx_MHTHF_"+bx_obj[i],
"L1T EtSum MHTHF p_{T}#geq"+etsumPtCutStr+
" GeV #phi BX="+bx_obj[i]+
";#phi", 25, -3.2, 3.2));
140 denominator_etsum_MET = ibooker.
book1D(
"denominator_etsum_MET",
"Denominator for L1T EtSum MET p_{T}#geq"+etsumPtCutStr+
" GeV;#phi", 25, -3.2, 3.2);
141 denominator_etsum_METHF = ibooker.
book1D(
"denominator_etsum_METHF",
"Denominator for L1T EtSum METHF p_{T}#geq"+etsumPtCutStr+
" GeV;#phi", 25, -3.2, 3.2);
142 denominator_etsum_MHT = ibooker.
book1D(
"denominator_etsum_MHT",
"Denominator for L1T EtSum MHT p_{T}#geq"+etsumPtCutStr+
" GeV;#phi", 25, -3.2, 3.2);
143 denominator_etsum_MHTHF = ibooker.
book1D(
"denominator_etsum_MHTHF",
"Denominator for L1T EtSum MHTHF p_{T}#geq"+etsumPtCutStr+
" GeV;#phi", 25, -3.2, 3.2);
149 muons_eta_phi_isolated.push_back(ibooker.
book2D(
"muons_eta_phi_bx_isolated_"+bx_obj[
i],
"L1T Muon p_{T}#geq"+muonPtCutStr+
" GeV qual#geq"+muonQualCutStr+
" #eta vs #phi for isolated bunch BX="+bx_obj[i]+
";#eta;#phi", 25, -2.5, 2.5, 25, -3.2, 3.2));
151 denominator_muons_isolated = ibooker.
book2D(
"denominator_muons_isolated",
"Denominator for Isolated Bunch for L1T Muon p_{T}#geq"+muonPtCutStr+
" GeV qual#geq"+muonQualCutStr, 25, -2.5, 2.5, 25, -3.2, 3.2);
155 jet_eta_phi_isolated.push_back(ibooker.
book2D(
"jet_eta_phi_bx_isolated_"+bx_obj[
i],
"L1T Jet p_{T}#geq"+jetPtCutStr+
" GeV #eta vs #phi for isolated bunch BX="+bx_obj[i]+
";#eta;#phi", 50, -5., 5., 25, -3.2, 3.2));
157 denominator_jet_isolated = ibooker.
book2D(
"denominator_jet_isolated",
"Denominator for Isolated Bunch for L1T Jet p_{T}#geq"+jetPtCutStr+
" GeV;#eta;#phi", 50, -5., 5., 25, -3.2, 3.2);
160 auto egammaPtCutStr = std::to_string(egammaPtCut);
161 egammaPtCutStr.resize(egammaPtCutStr.size()-5);
162 auto egammaPtCutStrAlpha = egammaPtCutStr;
163 std::replace(egammaPtCutStrAlpha.begin(), egammaPtCutStrAlpha.end(),
'.',
'p');
166 std::vector<MonitorElement*> vHelper;
168 vHelper.push_back(ibooker.
book2D(
"egamma_eta_phi_bx_isolated_"+bx_obj[
i],
"L1T EGamma p_{T}#geq"+egammaPtCutStr+
" GeV #eta vs #phi for first bunch BX="+bx_obj[i]+
";#eta;#phi", 30, -3., 3., 25, -3.2, 3.2));
172 denominator_egamma_isolated.push_back(ibooker.
book2D(
"denominator_egamma_isolated",
"Denominator for Isolated Bunch for L1T EGamma p_{T}#geq"+egammaPtCutStr+
" GeV;#eta;#phi", 30, -3., 3., 25, -3.2, 3.2));
174 egamma_iso_bx_ieta_isolated.push_back(ibooker.
book2D(
"egamma_iso_bx_ieta_isolated_ptmin"+egammaPtCutStrAlpha,
"L1T EGamma iso with pT#geq"+egammaPtCutStr+
" GeV BX vs. i#eta for first bunch in train;BX in event (corrected);i#eta", 5, -2.5, 2.5, 70, -70, 70));
176 egamma_noniso_bx_ieta_isolated.push_back(ibooker.
book2D(
"egamma_noniso_bx_ieta_isolated_ptmin"+egammaPtCutStrAlpha,
"L1T EGamma non iso with pT#geq"+egammaPtCutStr+
" GeV BX vs. i#eta for first bunch in train;BX in event (corrected);i#eta", 5, -2.5, 2.5, 70, -70, 70));
181 tau_eta_phi_isolated.push_back(ibooker.
book2D(
"tau_eta_phi_bx_isolated_"+bx_obj[
i],
"L1T Tau p_{T}#geq"+tauPtCutStr+
" GeV #eta vs #phi for isolated bunch BX="+bx_obj[i]+
";#eta;#phi", 30, -3., 3., 25, -3.2, 3.2));
183 denominator_tau_isolated = ibooker.
book2D(
"denominator_tau_isolated",
"Denominator for Isolated Bunch for L1T Tau p_{T}#geq"+tauPtCutStr+
" GeV;#eta;#phi", 30, -3., 3., 25, -3.2, 3.2);
187 etsum_eta_phi_MET_isolated.push_back(ibooker.
book1D(
"etsum_phi_bx_MET_isolated_"+bx_obj[
i],
"L1T EtSum MET p_{T}#geq"+etsumPtCutStr+
" GeV #phi for isolated bunch BX="+bx_obj[i]+
";#phi", 25, -3.2, 3.2));
188 etsum_eta_phi_METHF_isolated.push_back(ibooker.
book1D(
"etsum_phi_bx_METHF_isolated_"+bx_obj[i],
"L1T EtSum METHF p_{T}#geq"+etsumPtCutStr+
" GeV #phi for isolated bunch BX="+bx_obj[i]+
";#phi", 25, -3.2, 3.2));
189 etsum_eta_phi_MHT_isolated.push_back(ibooker.
book1D(
"etsum_phi_bx_MHT_isolated_"+bx_obj[i],
"L1T EtSum MHT p_{T}#geq"+etsumPtCutStr+
" GeV #phi for isolated bunch BX="+bx_obj[i]+
";#phi", 25, -3.2, 3.2));
190 etsum_eta_phi_MHTHF_isolated.push_back(ibooker.
book1D(
"etsum_phi_bx_MHTHF_isolated_"+bx_obj[i],
"L1T EtSum MHTHF p_{T}#geq"+etsumPtCutStr+
" GeV #phi for isolated bunch BX="+bx_obj[i]+
";#phi", 25, -3.2, 3.2));
192 denominator_etsum_isolated_MET = ibooker.
book1D(
"denominator_etsum_isolated_MET",
"Denominator for Isolated Bunch for L1T EtSum MET p_{T}#geq"+etsumPtCutStr+
" GeV;#phi", 25, -3.2, 3.2);
193 denominator_etsum_isolated_METHF = ibooker.
book1D(
"denominator_etsum_isolated_METHF",
"Denominator for Isolated Bunch for L1T EtSum METHF p_{T}#geq"+etsumPtCutStr+
" GeV;#phi", 25, -3.2, 3.2);
194 denominator_etsum_isolated_MHT = ibooker.
book1D(
"denominator_etsum_isolated_MHT",
"Denominator for Isolated Bunch for L1T EtSum MHT p_{T}#geq"+etsumPtCutStr+
" GeV;#phi", 25, -3.2, 3.2);
195 denominator_etsum_isolated_MHTHF = ibooker.
book1D(
"denominator_etsum_isolated_MHTHF",
"Denominator for Isolated Bunch for L1T EtSum MHTHF p_{T}#geq"+etsumPtCutStr+
" GeV;#phi", 25, -3.2, 3.2);
201 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
202 muons_eta_phi_firstbunch.push_back(ibooker.
book2D(
"muons_eta_phi_bx_firstbunch_"+bx_obj[
i],
"L1T Muon p_{T}#geq"+muonPtCutStr+
" GeV qual#geq"+muonQualCutStr+
" #eta vs #phi for first bunch BX="+bx_obj[i]+
";#eta;#phi", 25, -2.5, 2.5, 25, -3.2, 3.2));
204 denominator_muons_firstbunch = ibooker.
book2D(
"denominator_muons_firstbunch",
"Denominator for First Bunch for L1T Muon p_{T}#geq"+muonPtCutStr+
" GeV qual#geq"+muonQualCutStr, 25, -2.5, 2.5, 25, -3.2, 3.2);
207 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
208 jet_eta_phi_firstbunch.push_back(ibooker.
book2D(
"jet_eta_phi_bx_firstbunch_"+bx_obj[
i],
"L1T Jet p_{T}#geq"+jetPtCutStr+
" GeV #eta vs #phi for first bunch BX="+bx_obj[i]+
";#eta;#phi", 50, -5., 5., 25, -3.2, 3.2));
210 denominator_jet_firstbunch = ibooker.
book2D(
"denominator_jet_firstbunch",
"Denominator for First Bunch for L1T Jet p_{T}#geq"+jetPtCutStr+
" GeV;#eta;#phi", 50, -5., 5., 25, -3.2, 3.2);
213 auto egammaPtCutStr = std::to_string(egammaPtCut);
214 egammaPtCutStr.resize(egammaPtCutStr.size()-5);
215 auto egammaPtCutStrAlpha = egammaPtCutStr;
216 std::replace(egammaPtCutStrAlpha.begin(), egammaPtCutStrAlpha.end(),
'.',
'p');
219 std::vector<MonitorElement*> vHelper;
220 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
221 vHelper.push_back(ibooker.
book2D(
"egamma_eta_phi_bx_firstbunch_"+bx_obj[
i],
"L1T EGamma p_{T}#geq"+egammaPtCutStr+
" GeV #eta vs #phi for first bunch BX="+bx_obj[i]+
";#eta;#phi", 30, -3., 3., 25, -3.2, 3.2));
225 denominator_egamma_firstbunch.push_back(ibooker.
book2D(
"denominator_egamma_firstbunch",
"Denominator for First Bunch for L1T EGamma p_{T}#geq"+egammaPtCutStr+
" GeV;#eta;#phi", 30, -3., 3., 25, -3.2, 3.2));
227 egamma_iso_bx_ieta_firstbunch.push_back(ibooker.
book2D(
"egamma_iso_bx_ieta_firstbunch_ptmin"+egammaPtCutStrAlpha,
"L1T EGamma iso with pT#geq"+egammaPtCutStr+
" GeV BX vs. i#eta for first bunch in train;BX in event (corrected);i#eta", 5, -2.5, 2.5, 70, -70, 70));
229 egamma_noniso_bx_ieta_firstbunch.push_back(ibooker.
book2D(
"egamma_noniso_bx_ieta_firstbunch_ptmin"+egammaPtCutStrAlpha,
"L1T EGamma non iso with pT#geq"+egammaPtCutStr+
" GeV BX vs. i#eta for first bunch in train;BX in event (corrected);i#eta", 5, -2.5, 2.5, 70, -70, 70));
233 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
234 tau_eta_phi_firstbunch.push_back(ibooker.
book2D(
"tau_eta_phi_bx_firstbunch_"+bx_obj[
i],
"L1T Tau p_{T}#geq"+tauPtCutStr+
" GeV #eta vs #phi for first bunch BX="+bx_obj[i]+
";#eta;#phi", 30, -3., 3., 25, -3.2, 3.2));
236 denominator_tau_firstbunch = ibooker.
book2D(
"denominator_tau_firstbunch",
"Denominator for First Bunch for L1T Tau p_{T}#geq"+tauPtCutStr+
" GeV;#eta;#phi", 30, -3., 3., 25, -3.2, 3.2);
239 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
240 etsum_eta_phi_MET_firstbunch.push_back(ibooker.
book1D(
"etsum_phi_bx_MET_firstbunch_"+bx_obj[
i],
"L1T EtSum MET p_{T}#geq"+etsumPtCutStr+
" GeV #phi for firstbunch bunch BX="+bx_obj[i]+
";#phi", 25, -3.2, 3.2));
241 etsum_eta_phi_METHF_firstbunch.push_back(ibooker.
book1D(
"etsum_phi_bx_METHF_firstbunch_"+bx_obj[i],
"L1T EtSum METHF p_{T}#geq"+etsumPtCutStr+
" GeV #phi for firstbunch bunch BX="+bx_obj[i]+
";#phi", 25, -3.2, 3.2));
242 etsum_eta_phi_MHT_firstbunch.push_back(ibooker.
book1D(
"etsum_phi_bx_MHT_firstbunch_"+bx_obj[i],
"L1T EtSum MHT p_{T}#geq"+etsumPtCutStr+
" GeV #phi for firstbunch bunch BX="+bx_obj[i]+
";#phi", 25, -3.2, 3.2));
243 etsum_eta_phi_MHTHF_firstbunch.push_back(ibooker.
book1D(
"etsum_phi_bx_MHTHF_firstbunch_"+bx_obj[i],
"L1T EtSum MHTHF p_{T}#geq"+etsumPtCutStr+
" GeV #phi for firstbunch bunch BX="+bx_obj[i]+
";#phi", 25, -3.2, 3.2));
254 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
255 muons_eta_phi_lastbunch.push_back(ibooker.
book2D(
"muons_eta_phi_bx_lastbunch_"+bx_obj[
i+2],
"L1T Muon p_{T}#geq"+muonPtCutStr+
" GeV qual#geq"+muonQualCutStr+
" #eta vs #phi for last bunch BX="+bx_obj[
i]+
";#eta;#phi", 25, -2.5, 2.5, 25, -3.2, 3.2));
257 denominator_muons_lastbunch = ibooker.
book2D(
"denominator_muons_lastbunch",
"Denominator for Last Bunch for L1T Muon p_{T}#geq"+muonPtCutStr+
" GeV qual#geq"+muonQualCutStr, 25, -2.5, 2.5, 25, -3.2, 3.2);
260 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
261 jet_eta_phi_lastbunch.push_back(ibooker.
book2D(
"jet_eta_phi_bx_lastbunch_"+bx_obj[
i+2],
"L1T Jet p_{T}#geq"+jetPtCutStr+
" GeV #eta vs #phi for last bunch BX="+bx_obj[
i]+
";#eta;#phi", 50, -5., 5., 25, -3.2, 3.2));
263 denominator_jet_lastbunch = ibooker.
book2D(
"denominator_jet_lastbunch",
"Denominator for Last Bunch for L1T Jet p_{T}#geq"+jetPtCutStr+
" GeV;#eta;#phi", 50, -5., 5., 25, -3.2, 3.2);
266 auto egammaPtCutStr = std::to_string(egammaPtCut);
267 egammaPtCutStr.resize(egammaPtCutStr.size()-5);
268 auto egammaPtCutStrAlpha = egammaPtCutStr;
269 std::replace(egammaPtCutStrAlpha.begin(), egammaPtCutStrAlpha.end(),
'.',
'p');
272 std::vector<MonitorElement*> vHelper;
273 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
274 vHelper.push_back(ibooker.
book2D(
"egamma_eta_phi_bx_lastbunch_"+bx_obj[
i+2],
"L1T EGamma p_{T}#geq"+egammaPtCutStr+
" GeV #eta vs #phi for first bunch BX="+bx_obj[
i]+
";#eta;#phi", 30, -3., 3., 25, -3.2, 3.2));
278 denominator_egamma_lastbunch.push_back(ibooker.
book2D(
"denominator_egamma_lastbunch",
"Denominator for Last Bunch for L1T EGamma p_{T}#geq"+egammaPtCutStr+
" GeV;#eta;#phi", 30, -3., 3., 25, -3.2, 3.2));
280 egamma_iso_bx_ieta_lastbunch.push_back(ibooker.
book2D(
"egamma_iso_bx_ieta_lastbunch_ptmin"+egammaPtCutStrAlpha,
"L1T EGamma iso with pT#geq"+egammaPtCutStr+
" GeV BX vs. i#eta for first bunch in train;BX in event (corrected);i#eta", 5, -2.5, 2.5, 70, -70, 70));
282 egamma_noniso_bx_ieta_lastbunch.push_back(ibooker.
book2D(
"egamma_noniso_bx_ieta_lastbunch_ptmin"+egammaPtCutStrAlpha,
"L1T EGamma non iso with pT#geq"+egammaPtCutStr+
" GeV BX vs. i#eta for first bunch in train;BX in event (corrected);i#eta", 5, -2.5, 2.5, 70, -70, 70));
286 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
287 tau_eta_phi_lastbunch.push_back(ibooker.
book2D(
"tau_eta_phi_bx_lastbunch_"+bx_obj[
i+2],
"L1T Tau p_{T}#geq"+tauPtCutStr+
" GeV #eta vs #phi for last bunch BX="+bx_obj[
i]+
";#eta;#phi", 30, -3., 3., 25, -3.2, 3.2));
289 denominator_tau_lastbunch = ibooker.
book2D(
"denominator_tau_lastbunch",
"Denominator for Last Bunch for L1T Tau p_{T}#geq"+tauPtCutStr+
" GeV;#eta;#phi", 30, -3., 3., 25, -3.2, 3.2);
292 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
293 etsum_eta_phi_MET_lastbunch.push_back(ibooker.
book1D(
"etsum_phi_bx_MET_lastbunch_"+bx_obj[
i+2],
"L1T EtSum MET p_{T}#geq"+etsumPtCutStr+
" GeV #phi for lastbunch bunch BX="+bx_obj[
i]+
";#phi", 25, -3.2, 3.2));
294 etsum_eta_phi_METHF_lastbunch.push_back(ibooker.
book1D(
"etsum_phi_bx_METHF_lastbunch_"+bx_obj[
i+2],
"L1T EtSum METHF p_{T}#geq"+etsumPtCutStr+
" GeV #phi for lastbunch bunch BX="+bx_obj[
i]+
";#phi", 25, -3.2, 3.2));
295 etsum_eta_phi_MHT_lastbunch.push_back(ibooker.
book1D(
"etsum_phi_bx_MHT_lastbunch_"+bx_obj[
i+2],
"L1T EtSum MHT p_{T}#geq"+etsumPtCutStr+
" GeV #phi for lastbunch bunch BX="+bx_obj[
i]+
";#phi", 25, -3.2, 3.2));
296 etsum_eta_phi_MHTHF_lastbunch.push_back(ibooker.
book1D(
"etsum_phi_bx_MHTHF_lastbunch_"+bx_obj[
i+2],
"L1T EtSum MHTHF p_{T}#geq"+etsumPtCutStr+
" GeV #phi for lastbunch bunch BX="+bx_obj[
i]+
";#phi", 25, -3.2, 3.2));
298 denominator_etsum_lastbunch_MET = ibooker.
book1D(
"denominator_etsum_lastbunch_MET",
"Denominator for Last Bunch for L1T EtSum MET p_{T}#geq"+etsumPtCutStr+
" GeV;#phi", 25, -3.2, 3.2);
300 denominator_etsum_lastbunch_MHT = ibooker.
book1D(
"denominator_etsum_lastbunch_MHT",
"Denominator for Last Bunch for L1T EtSum MHT p_{T}#geq"+etsumPtCutStr+
" GeV;#phi", 25, -3.2, 3.2);
330 for (
int itBX = MuonBxCollection->
getFirstBX(); itBX <= MuonBxCollection->
getLastBX(); ++itBX) {
341 for (
int itBX = JetBxCollection->
getFirstBX(); itBX <= JetBxCollection->
getLastBX(); ++itBX) {
352 for (
int itBX = EGammaBxCollection->
getFirstBX(); itBX <= EGammaBxCollection->
getLastBX(); ++itBX) {
363 for (
int itBX = TauBxCollection->
getFirstBX(); itBX <= TauBxCollection->
getLastBX(); ++itBX) {
374 for (
int itBX = EtSumBxCollection->
getFirstBX(); itBX <= EtSumBxCollection->
getLastBX(); ++itBX) {
403 int bxShiftFirst = -999;
404 int bxShiftIso = -999;
405 int bxShiftLast = -999;
466 if (bxShiftFirst > -999) {
501 if ((
bool)
egamma->hwIso()) {
558 if (bxShiftLast > -999) {
561 auto correctedBx = itBX - bxShiftLast;
573 auto correctedBx = itBX - bxShiftLast;
585 auto correctedBx = itBX - bxShiftLast;
593 if ((
bool)
egamma->hwIso()) {
603 auto correctedBx = itBX - bxShiftLast;
615 auto correctedBx = itBX - bxShiftLast;
616 if (correctedBx >= 0) {
650 if (bxShiftIso > -999) {
685 if ((
bool)
egamma->hwIso()) {
MonitorElement * denominator_etsum_METHF
BXVector< EGamma > EGammaBxCollection
const_iterator end(int bx) const
std::vector< MonitorElement * > jet_eta_phi_firstbunch
void setComment(std::string const &value)
T getUntrackedParameter(std::string const &, T const &) const
MonitorElement * denominator_etsum_lastbunch_MHT
edm::EDGetTokenT< l1t::EGammaBxCollection > stage2CaloLayer2EGammaToken_
MonitorElement * denominator_muons_isolated
edm::EDGetTokenT< GlobalAlgBlkBxCollection > l1tStage2uGtProducer_
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
std::vector< MonitorElement * > etsum_eta_phi_MET_isolated
std::vector< MonitorElement * > etsum_eta_phi_METHF_isolated
std::vector< MonitorElement * > muons_eta_phi_isolated
MonitorElement * denominator_etsum_MET
std::vector< MonitorElement * > egamma_eta_phi
std::vector< std::vector< MonitorElement * > > egamma_eta_phi_lastbunch
MonitorElement * denominator_etsum_isolated_MHTHF
bool getByToken(EDGetToken token, Handle< PROD > &result) const
MonitorElement * denominator_muons_firstbunch
std::vector< MonitorElement * > jet_eta_phi_lastbunch
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override
std::vector< MonitorElement * > tau_eta_phi_lastbunch
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< MonitorElement * > denominator_egamma_isolated
MonitorElement * denominator_etsum_MHT
const unsigned int bxrange_
def replace(string, replacements)
BXVector< Tau > TauBxCollection
std::vector< MonitorElement * > etsum_eta_phi_MET_firstbunch
MonitorElement * denominator_etsum_isolated_METHF
std::vector< std::vector< MonitorElement * > > egamma_eta_phi_isolated
std::vector< MonitorElement * > egamma_iso_bx_ieta_firstbunch
MonitorElement * denominator_tau_isolated
std::vector< MonitorElement * > etsum_eta_phi_MHT_lastbunch
MonitorElement * denominator_etsum_firstbunch_MET
MonitorElement * denominator_etsum_firstbunch_MHT
std::vector< MonitorElement * > muons_eta_phi_lastbunch
MonitorElement * denominator_etsum_MHTHF
std::vector< MonitorElement * > etsum_eta_phi_MHT
void bookHistograms(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &) override
BXVector< EtSum > EtSumBxCollection
MonitorElement * denominator_egamma
std::vector< MonitorElement * > etsum_eta_phi_MET_lastbunch
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< MonitorElement * > denominator_egamma_firstbunch
MonitorElement * denominator_tau_lastbunch
std::vector< MonitorElement * > jet_eta_phi
std::vector< MonitorElement * > etsum_eta_phi_METHF_firstbunch
std::vector< MonitorElement * > etsum_eta_phi_MHTHF_isolated
MonitorElement * book1D(Args &&...args)
L1TObjectsTiming(const edm::ParameterSet &ps)
edm::EDGetTokenT< l1t::MuonBxCollection > ugmtMuonToken_
MonitorElement * denominator_tau_firstbunch
std::vector< std::vector< MonitorElement * > > egamma_eta_phi_firstbunch
const std::string algoNameIsoBx_
MonitorElement * denominator_etsum_lastbunch_MHTHF
MonitorElement * denominator_muons
std::vector< MonitorElement * > muons_eta_phi_firstbunch
int algoBitLastBxInTrain_
std::vector< MonitorElement * > egamma_noniso_bx_ieta_lastbunch
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< MonitorElement * > etsum_eta_phi_MHTHF_lastbunch
edm::EDGetTokenT< l1t::EtSumBxCollection > stage2CaloLayer2EtSumToken_
int algoBitFirstBxInTrain_
unsigned int useAlgoDecision_
edm::EDGetTokenT< l1t::JetBxCollection > stage2CaloLayer2JetToken_
edm::EDGetTokenT< l1t::TauBxCollection > stage2CaloLayer2TauToken_
std::vector< MonitorElement * > egamma_noniso_bx_ieta_firstbunch
std::vector< MonitorElement * > tau_eta_phi_isolated
std::vector< MonitorElement * > etsum_eta_phi_METHF
std::vector< MonitorElement * > etsum_eta_phi_MHTHF
BXVector< Muon > MuonBxCollection
std::vector< MonitorElement * > etsum_eta_phi_MHTHF_firstbunch
std::vector< MonitorElement * > tau_eta_phi
void setCurrentFolder(const std::string &fullpath)
BXVector< Jet > JetBxCollection
MonitorElement * denominator_etsum_firstbunch_METHF
MonitorElement * denominator_jet_lastbunch
MonitorElement * book2D(Args &&...args)
MonitorElement * denominator_jet
std::vector< double > egammaPtCuts_
std::vector< MonitorElement * > egamma_noniso_bx_ieta_isolated
std::vector< MonitorElement * > etsum_eta_phi_MHT_isolated
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< MonitorElement * > etsum_eta_phi_METHF_lastbunch
std::vector< MonitorElement * > egamma_iso_bx_ieta_lastbunch
MonitorElement * denominator_muons_lastbunch
const std::string algoNameLastBxInTrain_
std::vector< MonitorElement * > etsum_eta_phi_MET
MonitorElement * denominator_tau
~L1TObjectsTiming() override
std::vector< MonitorElement * > jet_eta_phi_isolated
std::vector< MonitorElement * > egamma_iso_bx_ieta_isolated
MonitorElement * denominator_etsum_isolated_MET
MonitorElement * denominator_etsum_firstbunch_MHTHF
std::vector< MonitorElement * > denominator_egamma_lastbunch
std::vector< MonitorElement * > muons_eta_phi
MonitorElement * denominator_etsum_lastbunch_METHF
MonitorElement * denominator_etsum_isolated_MHT
const std::string algoNameFirstBxInTrain_
std::vector< MonitorElement * > etsum_eta_phi_MHT_firstbunch
const_iterator begin(int bx) const
std::shared_ptr< l1t::L1TGlobalUtil > gtUtil_
MonitorElement * denominator_jet_firstbunch
MonitorElement * denominator_jet_isolated
MonitorElement * denominator_etsum_lastbunch_MET
std::vector< Muon >::const_iterator const_iterator
std::vector< MonitorElement * > tau_eta_phi_firstbunch