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),
16 algoNameFirstBxInTrain_(ps.getUntrackedParameter<
std::
string>(
"firstBXInTrainAlgo",
"")),
17 algoNameLastBxInTrain_(ps.getUntrackedParameter<
std::
string>(
"lastBXInTrainAlgo",
"")),
62 desc.
add<
edm::InputTag>(
"stage2CaloLayer2JetProducer")->setComment(
"L1T jets");
63 desc.
add<
edm::InputTag>(
"stage2CaloLayer2EGammaProducer")->setComment(
"L1T egamma");
64 desc.
add<
edm::InputTag>(
"stage2CaloLayer2TauProducer")->setComment(
"L1T taus");
65 desc.
add<
edm::InputTag>(
"stage2CaloLayer2EtSumProducer")->setComment(
"L1T etsums");
67 desc.
addUntracked<
std::string>(
"monitorDir",
"")->setComment(
"Target directory in the DQM file. Will be created if not existing.");
69 desc.
addUntracked<
std::string>(
"firstBXInTrainAlgo",
"")->setComment(
"Pick the right algo name for L1 First Collision In Train");
70 desc.
addUntracked<
std::string>(
"lastBXInTrainAlgo",
"")->setComment(
"Pick the right algo name for L1 Last Collision In Train");
71 descriptions.
add(
"l1tObjectsTiming", desc);
94 std::string bx_obj[5]={
"minus2",
"minus1",
"0",
"plus1",
"plus2"};
98 muons_eta_phi.push_back(ibooker.
book2D(
"muons_eta_phi_bx_"+bx_obj[
i],
"L1T Muon #eta vs #phi BX="+bx_obj[i],25, -2.5, 2.5, 25, -3.2, 3.2));
105 jet_eta_phi.push_back(ibooker.
book2D(
"jet_eta_phi_bx_"+bx_obj[
i],
"L1T Jet #eta vs #phi BX="+bx_obj[i],25, -2.5, 2.5, 25, -3.2, 3.2));
112 egamma_eta_phi.push_back(ibooker.
book2D(
"egamma_eta_phi_bx_"+bx_obj[
i],
"L1T EGamma #eta vs #phi BX="+bx_obj[i],25, -2.5, 2.5, 25, -3.2, 3.2));
119 tau_eta_phi.push_back(ibooker.
book2D(
"tau_eta_phi_bx_"+bx_obj[
i],
"L1T Tau #eta vs #phi BX="+bx_obj[i],25, -2.5, 2.5, 25, -3.2, 3.2));
126 etsum_eta_phi_MET.push_back(ibooker.
book1D(
"etsum_phi_bx_MET_"+bx_obj[
i],
"L1T MET #phi BX="+bx_obj[i],25, -3.2, 3.2));
128 etsum_eta_phi_METHF.push_back(ibooker.
book1D(
"etsum_phi_bx_METHF_"+bx_obj[i],
"L1T METHF #phi BX="+bx_obj[i],25, -3.2, 3.2));
130 etsum_eta_phi_MHT.push_back(ibooker.
book1D(
"etsum_phi_bx_MHT_"+bx_obj[i],
"L1T MHT #phi BX="+bx_obj[i],25, -3.2, 3.2));
132 etsum_eta_phi_MHTHF.push_back(ibooker.
book1D(
"etsum_phi_bx_MHTHF_"+bx_obj[i],
"L1T MHTHF #phi BX="+bx_obj[i],25, -3.2, 3.2));
139 muons_eta_phi_isolated.push_back(ibooker.
book2D(
"muons_eta_phi_bx_isolated_"+bx_obj[
i],
"L1T Muon #eta vs #phi for isolated bunch BX="+bx_obj[i],25, -2.5, 2.5, 25, -3.2, 3.2));
146 jet_eta_phi_isolated.push_back(ibooker.
book2D(
"jet_eta_phi_bx_isolated_"+bx_obj[
i],
"L1T Jet #eta vs #phi for isolated bunch BX="+bx_obj[i],25, -2.5, 2.5, 25, -3.2, 3.2));
153 egamma_eta_phi_isolated.push_back(ibooker.
book2D(
"egamma_eta_phi_bx_isolated_"+bx_obj[
i],
"L1T EGamma #eta vs #phi for isolated bunch BX="+bx_obj[i],25, -2.5, 2.5, 25, -3.2, 3.2));
160 tau_eta_phi_isolated.push_back(ibooker.
book2D(
"tau_eta_phi_bx_isolated_"+bx_obj[
i],
"L1T Tau #eta vs #phi for isolated bunch BX="+bx_obj[i],25, -2.5, 2.5, 25, -3.2, 3.2));
180 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
181 muons_eta_phi_firstbunch.push_back(ibooker.
book2D(
"muons_eta_phi_bx_firstbunch_"+bx_obj[
i],
"L1T Muon #eta vs #phi for first bunch BX="+bx_obj[i],25, -2.5, 2.5, 25, -3.2, 3.2));
187 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
188 jet_eta_phi_firstbunch.push_back(ibooker.
book2D(
"jet_eta_phi_bx_firstbunch_"+bx_obj[
i],
"L1T Jet #eta vs #phi for first bunch BX="+bx_obj[i],25, -2.5, 2.5, 25, -3.2, 3.2));
194 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
195 egamma_eta_phi_firstbunch.push_back(ibooker.
book2D(
"egamma_eta_phi_bx_firstbunch_"+bx_obj[
i],
"L1T EGamma #eta vs #phi for first bunch BX="+bx_obj[i],25, -2.5, 2.5, 25, -3.2, 3.2));
201 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
202 tau_eta_phi_firstbunch.push_back(ibooker.
book2D(
"tau_eta_phi_bx_firstbunch_"+bx_obj[
i],
"L1T Tau #eta vs #phi for first bunch BX="+bx_obj[i],25, -2.5, 2.5, 25, -3.2, 3.2));
208 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
222 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
223 muons_eta_phi_lastbunch.push_back(ibooker.
book2D(
"muons_eta_phi_bx_lastbunch_"+bx_obj[
i+2],
"L1T Muon #eta vs #phi for last bunch BX="+bx_obj[
i+2],25, -2.5, 2.5, 25, -3.2, 3.2));
229 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
230 jet_eta_phi_lastbunch.push_back(ibooker.
book2D(
"jet_eta_phi_bx_lastbunch_"+bx_obj[
i+2],
"L1T Jet #eta vs #phi for last bunch BX="+bx_obj[
i+2],25, -2.5, 2.5, 25, -3.2, 3.2));
236 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
237 egamma_eta_phi_lastbunch.push_back(ibooker.
book2D(
"egamma_eta_phi_bx_lastbunch_"+bx_obj[
i+2],
"L1T EGamma #eta vs #phi for last bunch BX="+bx_obj[
i+2],25, -2.5, 2.5, 25, -3.2, 3.2));
243 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
244 tau_eta_phi_lastbunch.push_back(ibooker.
book2D(
"tau_eta_phi_bx_lastbunch_"+bx_obj[
i+2],
"L1T Tau #eta vs #phi for last bunch BX="+bx_obj[
i+2],25, -2.5, 2.5, 25, -3.2, 3.2));
250 for(
unsigned int i=0;
i<bxrange_-2; ++
i) {
293 for (
int itBX = MuonBxCollection->
getFirstBX(); itBX <= MuonBxCollection->
getLastBX(); ++itBX) {
301 for (
int itBX = JetBxCollection->
getFirstBX(); itBX <= JetBxCollection->
getLastBX(); ++itBX) {
309 for (
int itBX = EGammaBxCollection->
getFirstBX(); itBX <= EGammaBxCollection->
getLastBX(); ++itBX) {
317 for (
int itBX = TauBxCollection->
getFirstBX(); itBX <= TauBxCollection->
getLastBX(); ++itBX) {
325 for (
int itBX = EtSumBxCollection->
getFirstBX(); itBX <= EtSumBxCollection->
getLastBX(); ++itBX) {
346 for (
int itBX = MuonBxCollection->
getFirstBX(); itBX <= MuonBxCollection->
getLastBX(); ++itBX) {
352 for (
int itBX = JetBxCollection->
getFirstBX(); itBX <= JetBxCollection->
getLastBX(); ++itBX) {
358 for (
int itBX = EGammaBxCollection->
getFirstBX(); itBX <= EGammaBxCollection->
getLastBX(); ++itBX) {
364 for (
int itBX = TauBxCollection->
getFirstBX(); itBX <= TauBxCollection->
getLastBX(); ++itBX) {
370 for (
int itBX = EtSumBxCollection->
getFirstBX(); itBX <= EtSumBxCollection->
getLastBX(); ++itBX) {
391 for (
int itBX = MuonBxCollection->
getFirstBX(); itBX <= 0 ; ++itBX) {
397 for (
int itBX = JetBxCollection->
getFirstBX(); itBX <= 0; ++itBX) {
403 for (
int itBX = EGammaBxCollection->
getFirstBX(); itBX <= 0; ++itBX) {
409 for (
int itBX = TauBxCollection->
getFirstBX(); itBX <= 0; ++itBX) {
415 for (
int itBX = EtSumBxCollection->
getFirstBX(); itBX <= 0; ++itBX) {
435 for (
int itBX = 0; itBX <= MuonBxCollection->
getLastBX(); ++itBX) {
442 for (
int itBX = 0; itBX <= JetBxCollection->
getLastBX(); ++itBX) {
448 for (
int itBX = 0; itBX <= EGammaBxCollection->
getLastBX(); ++itBX) {
454 for (
int itBX = 0; itBX <= TauBxCollection->
getLastBX(); ++itBX) {
460 for (
int itBX = 0; itBX <= EtSumBxCollection->
getLastBX(); ++itBX) {
std::vector< MonitorElement * > egamma_eta_phi_isolated
BXVector< EGamma > EGammaBxCollection
const_iterator end(int bx) const
std::vector< MonitorElement * > jet_eta_phi_firstbunch
edm::EDGetTokenT< l1t::EGammaBxCollection > stage2CaloLayer2EGammaToken_
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
std::vector< MonitorElement * > egamma_eta_phi
bool getByToken(EDGetToken token, Handle< PROD > &result) const
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
const unsigned int bxrange_
BXVector< Tau > TauBxCollection
std::vector< MonitorElement * > etsum_eta_phi_MET_firstbunch
std::vector< MonitorElement * > etsum_eta_phi_MHT_lastbunch
std::vector< MonitorElement * > muons_eta_phi_lastbunch
std::vector< MonitorElement * > etsum_eta_phi_MHT
void bookHistograms(DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &) override
BXVector< EtSum > EtSumBxCollection
std::vector< MonitorElement * > etsum_eta_phi_MET_lastbunch
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
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_
std::vector< MonitorElement * > egamma_eta_phi_lastbunch
std::vector< MonitorElement * > muons_eta_phi_firstbunch
int algoBitLastBxInTrain_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::vector< MonitorElement * > etsum_eta_phi_MHTHF_lastbunch
edm::EDGetTokenT< l1t::EtSumBxCollection > stage2CaloLayer2EtSumToken_
int algoBitFirstBxInTrain_
edm::EDGetTokenT< l1t::JetBxCollection > stage2CaloLayer2JetToken_
edm::EDGetTokenT< l1t::TauBxCollection > stage2CaloLayer2TauToken_
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
std::vector< MonitorElement * > egamma_eta_phi_firstbunch
MonitorElement * book2D(Args &&...args)
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
const std::string algoNameLastBxInTrain_
std::vector< MonitorElement * > etsum_eta_phi_MET
~L1TObjectsTiming() override
std::vector< MonitorElement * > jet_eta_phi_isolated
std::vector< MonitorElement * > muons_eta_phi
const std::string algoNameFirstBxInTrain_
std::vector< MonitorElement * > etsum_eta_phi_MHT_firstbunch
const_iterator begin(int bx) const
std::shared_ptr< l1t::L1TGlobalUtil > gtUtil_
std::vector< Muon >::const_iterator const_iterator
std::vector< MonitorElement * > tau_eta_phi_firstbunch