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.";
90 std::array<std::string, 5> bx_obj { {
"minus2",
"minus1",
"0",
"plus1",
"plus2"} };
94 auto muonPtCutStr = std::to_string(
muonPtCut_);
95 muonPtCutStr.resize(muonPtCutStr.size()-5);
97 auto jetPtCutStr = std::to_string(
jetPtCut_);
98 jetPtCutStr.resize(jetPtCutStr.size()-5);
101 egammaPtCutStr.resize(egammaPtCutStr.size()-5);
103 auto tauPtCutStr = std::to_string(
tauPtCut_);
104 tauPtCutStr.resize(tauPtCutStr.size()-5);
107 etsumPtCutStr.resize(etsumPtCutStr.size()-5);
112 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));
114 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);
118 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));
120 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);
124 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));
126 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);
130 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));
132 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);
136 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));
137 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));
138 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));
139 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));
141 denominator_etsum_MET = ibooker.
book1D(
"denominator_etsum_MET",
"Denominator for L1T EtSum MET p_{T}#geq"+etsumPtCutStr+
" GeV;#phi", 25, -3.2, 3.2);
142 denominator_etsum_METHF = ibooker.
book1D(
"denominator_etsum_METHF",
"Denominator for L1T EtSum METHF p_{T}#geq"+etsumPtCutStr+
" GeV;#phi", 25, -3.2, 3.2);
143 denominator_etsum_MHT = ibooker.
book1D(
"denominator_etsum_MHT",
"Denominator for L1T EtSum MHT p_{T}#geq"+etsumPtCutStr+
" GeV;#phi", 25, -3.2, 3.2);
144 denominator_etsum_MHTHF = ibooker.
book1D(
"denominator_etsum_MHTHF",
"Denominator for L1T EtSum MHTHF p_{T}#geq"+etsumPtCutStr+
" GeV;#phi", 25, -3.2, 3.2);
150 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));
152 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);
156 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));
158 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);
161 auto egammaPtCutStr = std::to_string(egammaPtCut);
162 egammaPtCutStr.resize(egammaPtCutStr.size()-5);
163 auto egammaPtCutStrAlpha = egammaPtCutStr;
164 std::replace(egammaPtCutStrAlpha.begin(), egammaPtCutStrAlpha.end(),
'.',
'p');
167 std::vector<MonitorElement*> vHelper;
169 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));
173 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));
175 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));
177 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));
182 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));
184 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);
188 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));
189 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));
190 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));
191 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));
193 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);
194 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);
195 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);
196 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);
202 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
203 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));
205 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);
208 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
209 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));
211 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);
214 auto egammaPtCutStr = std::to_string(egammaPtCut);
215 egammaPtCutStr.resize(egammaPtCutStr.size()-5);
216 auto egammaPtCutStrAlpha = egammaPtCutStr;
217 std::replace(egammaPtCutStrAlpha.begin(), egammaPtCutStrAlpha.end(),
'.',
'p');
220 std::vector<MonitorElement*> vHelper;
221 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
222 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));
226 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));
228 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));
230 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));
234 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
235 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));
237 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);
240 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
241 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));
242 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));
243 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));
244 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));
255 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
256 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));
258 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);
261 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
262 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));
264 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);
267 auto egammaPtCutStr = std::to_string(egammaPtCut);
268 egammaPtCutStr.resize(egammaPtCutStr.size()-5);
269 auto egammaPtCutStrAlpha = egammaPtCutStr;
270 std::replace(egammaPtCutStrAlpha.begin(), egammaPtCutStrAlpha.end(),
'.',
'p');
273 std::vector<MonitorElement*> vHelper;
274 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
275 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));
279 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));
281 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));
283 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));
287 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
288 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));
290 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);
293 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
294 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));
295 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));
296 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));
297 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));
299 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);
301 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);
331 for (
int itBX = MuonBxCollection->
getFirstBX(); itBX <= MuonBxCollection->
getLastBX(); ++itBX) {
342 for (
int itBX = JetBxCollection->
getFirstBX(); itBX <= JetBxCollection->
getLastBX(); ++itBX) {
353 for (
int itBX = EGammaBxCollection->
getFirstBX(); itBX <= EGammaBxCollection->
getLastBX(); ++itBX) {
364 for (
int itBX = TauBxCollection->
getFirstBX(); itBX <= TauBxCollection->
getLastBX(); ++itBX) {
375 for (
int itBX = EtSumBxCollection->
getFirstBX(); itBX <= EtSumBxCollection->
getLastBX(); ++itBX) {
404 int bxShiftFirst = -999;
405 int bxShiftIso = -999;
406 int bxShiftLast = -999;
467 if (bxShiftFirst > -999) {
502 if ((
bool)
egamma->hwIso()) {
559 if (bxShiftLast > -999) {
562 auto correctedBx = itBX - bxShiftLast;
574 auto correctedBx = itBX - bxShiftLast;
586 auto correctedBx = itBX - bxShiftLast;
594 if ((
bool)
egamma->hwIso()) {
604 auto correctedBx = itBX - bxShiftLast;
616 auto correctedBx = itBX - bxShiftLast;
617 if (correctedBx >= 0) {
651 if (bxShiftIso > -999) {
686 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
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
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