18 inputTag_(ps.getParameter<edm::
InputTag>(
"inputTag")),
19 inputToken_(consumes<trigger::TriggerEventWithRefs>(inputTag_))
33 descriptions.
add(
"triggerSummaryAnalyzerRAW", desc);
43 using namespace l1extra;
44 using namespace trigger;
47 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
"TriggerSummaryAnalyzerRAW: content of TriggerEventWithRefs: " <<
inputTag_.
encode();
52 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
"Used Processname: " <<
handle->usedProcessName() << endl;
54 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
"Number of TriggerFilterObjects: " << nFO << endl;
55 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
"The TriggerFilterObjects: #, tag" << endl;
57 LogVerbatim(
"TriggerSummaryAnalyzerRAW") << iFO <<
" " <<
handle->filterTag(iFO).encode() << endl;
58 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" # of objects:";
60 const unsigned int nPhotons(
handle->photonSlice(iFO).second-
61 handle->photonSlice(iFO).first);
62 if (nPhotons>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" Photons: " << nPhotons;
64 const unsigned int nElectrons(
handle->electronSlice(iFO).second-
65 handle->electronSlice(iFO).first);
66 if (nElectrons>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" Electrons: " << nElectrons;
68 const unsigned int nMuons(
handle->muonSlice(iFO).second-
69 handle->muonSlice(iFO).first);
70 if (nMuons>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" Muons: " << nMuons;
72 const unsigned int nJets(
handle->jetSlice(iFO).second-
73 handle->jetSlice(iFO).first);
74 if (nJets>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" Jets: " << nJets;
76 const unsigned int nComposites(
handle->compositeSlice(iFO).second-
77 handle->compositeSlice(iFO).first);
78 if (nComposites>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" Composites: " << nComposites;
80 const unsigned int nBaseMETs(
handle->basemetSlice(iFO).second-
81 handle->basemetSlice(iFO).first);
82 if (nBaseMETs>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" BaseMETs: " << nBaseMETs;
84 const unsigned int nCaloMETs(
handle->calometSlice(iFO).second-
85 handle->calometSlice(iFO).first);
86 if (nCaloMETs>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" CaloMETs: " << nCaloMETs;
88 const unsigned int nPixTracks(
handle->pixtrackSlice(iFO).second-
89 handle->pixtrackSlice(iFO).first);
90 if (nPixTracks>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" PixTracks: " << nPixTracks;
92 const unsigned int nL1EM(
handle->l1emSlice(iFO).second-
93 handle->l1emSlice(iFO).first);
94 if (nL1EM>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1EM: " << nL1EM;
96 const unsigned int nL1Muon(
handle->l1muonSlice(iFO).second-
97 handle->l1muonSlice(iFO).first);
98 if (nL1Muon>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1Muon: " << nL1Muon;
100 const unsigned int nL1Jet(
handle->l1jetSlice(iFO).second-
101 handle->l1jetSlice(iFO).first);
102 if (nL1Jet>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1Jet: " << nL1Jet;
104 const unsigned int nL1EtMiss(
handle->l1etmissSlice(iFO).second-
105 handle->l1etmissSlice(iFO).first);
106 if (nL1EtMiss>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1EtMiss: " << nL1EtMiss;
108 const unsigned int nL1HfRings(
handle->l1hfringsSlice(iFO).second-
109 handle->l1hfringsSlice(iFO).first);
110 if (nL1HfRings>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1HfRings: " << nL1HfRings;
112 const unsigned int nPFJets(
handle->pfjetSlice(iFO).second-
113 handle->pfjetSlice(iFO).first);
114 if (nPFJets>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" PFJets: " << nPFJets;
116 const unsigned int nPFTaus(
handle->pftauSlice(iFO).second-
117 handle->pftauSlice(iFO).first);
118 if (nPFTaus>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" PFTaus: " << nPFTaus;
120 const unsigned int nPFMETs(
handle->pfmetSlice(iFO).second-
121 handle->pfmetSlice(iFO).first);
122 if (nPFMETs>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" PFMETs: " << nPFMETs;
126 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
"Elements in linearised collections of Refs: " << endl;
127 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" Photons: " <<
handle->photonSize() << endl;
128 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" Electrons: " <<
handle->electronSize() << endl;
129 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" Muons: " <<
handle->muonSize() << endl;
130 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" Jets: " <<
handle->jetSize() << endl;
131 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" Composites: " <<
handle->compositeSize() << endl;
132 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" BaseMETs: " <<
handle->basemetSize() << endl;
133 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" CaloMETs: " <<
handle->calometSize() << endl;
134 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" Pixtracks: " <<
handle->pixtrackSize() << endl;
135 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1EM: " <<
handle->l1emSize() << endl;
136 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1Muon: " <<
handle->l1muonSize() << endl;
137 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1Jet: " <<
handle->l1jetSize() << endl;
138 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1EtMiss: " <<
handle->l1etmissSize() << endl;
139 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1HfRings: " <<
handle->l1hfringsSize() << endl;
140 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" PFJets: " <<
handle->pfjetSize() << endl;
141 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" PFTaus: " <<
handle->pftauSize() << endl;
142 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" PFMETs: " <<
handle->pfmetSize() << endl;
144 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
"Handle invalid! Check InputTag provided." << endl;
TriggerSummaryAnalyzerRAW(const edm::ParameterSet &)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
virtual ~TriggerSummaryAnalyzerRAW()
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
const edm::InputTag inputTag_
InputTag of TriggerEventWithRefs to analyze.
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::EDGetTokenT< trigger::TriggerEventWithRefs > inputToken_