18 inputTag_(ps.getParameter<
edm::InputTag>(
"inputTag")),
19 inputToken_(consumes<
trigger::TriggerEventWithRefs>(inputTag_))
33 descriptions.
add(
"triggerSummaryAnalyzerRAW", desc);
48 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
"TriggerSummaryAnalyzerRAW: content of TriggerEventWithRefs: " <<
inputTag_.
encode();
55 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
"Number of TriggerFilterObjects: " << nFO << endl;
56 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
"The TriggerFilterObjects: #, tag" << endl;
59 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" # of objects:";
61 const unsigned int nPhotons(handle->
photonSlice(iFO).second-
63 if (nPhotons>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" Photons: " << nPhotons;
65 const unsigned int nElectrons(handle->
electronSlice(iFO).second-
67 if (nElectrons>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" Electrons: " << nElectrons;
69 const unsigned int nMuons(handle->
muonSlice(iFO).second-
71 if (nMuons>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" Muons: " << nMuons;
73 const unsigned int nJets(handle->
jetSlice(iFO).second-
75 if (nJets>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" Jets: " << nJets;
79 if (nComposites>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" Composites: " << nComposites;
81 const unsigned int nBaseMETs(handle->
basemetSlice(iFO).second-
83 if (nBaseMETs>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" BaseMETs: " << nBaseMETs;
85 const unsigned int nCaloMETs(handle->
calometSlice(iFO).second-
87 if (nCaloMETs>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" CaloMETs: " << nCaloMETs;
89 const unsigned int nPixTracks(handle->
pixtrackSlice(iFO).second-
91 if (nPixTracks>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" PixTracks: " << nPixTracks;
93 const unsigned int nL1EM(handle->
l1emSlice(iFO).second-
95 if (nL1EM>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1EM: " << nL1EM;
97 const unsigned int nL1Muon(handle->
l1muonSlice(iFO).second-
99 if (nL1Muon>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1Muon: " << nL1Muon;
101 const unsigned int nL1Jet(handle->
l1jetSlice(iFO).second-
103 if (nL1Jet>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1Jet: " << nL1Jet;
105 const unsigned int nL1EtMiss(handle->
l1etmissSlice(iFO).second-
107 if (nL1EtMiss>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1EtMiss: " << nL1EtMiss;
111 if (nL1HfRings>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1HfRings: " << nL1HfRings;
113 const unsigned int nPFJets(handle->
pfjetSlice(iFO).second-
115 if (nPFJets>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" PFJets: " << nPFJets;
117 const unsigned int nPFTaus(handle->
pftauSlice(iFO).second-
119 if (nPFTaus>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" PFTaus: " << nPFTaus;
121 const unsigned int nPFMETs(handle->
pfmetSlice(iFO).second-
123 if (nPFMETs>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" PFMETs: " << nPFMETs;
125 const unsigned int nL1TMuon(handle->
l1tmuonSlice(iFO).second-
127 if (nL1TMuon>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1TMuon: " << nL1TMuon;
131 if (nL1TEGamma>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1TEGamma: " << nL1TEGamma;
133 const unsigned int nL1TJet(handle->
l1tjetSlice(iFO).second-
135 if (nL1TJet>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1TJet: " << nL1TJet;
137 const unsigned int nL1TTau(handle->
l1ttauSlice(iFO).second-
139 if (nL1TTau>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1TTau: " << nL1TTau;
141 const unsigned int nL1TEtSum(handle->
l1tetsumSlice(iFO).second-
143 if (nL1TEtSum>0)
LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
" L1TEtSum: " << nL1TEtSum;
148 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
"Elements in linearised collections of Refs: " << endl;
171 LogVerbatim(
"TriggerSummaryAnalyzerRAW") <<
"Handle invalid! Check InputTag provided." << endl;
size_type basemetSize() const
std::pair< size_type, size_type > l1tmuonSlice(size_type filter) const
size_type l1ttauSize() const
std::pair< size_type, size_type > pftauSlice(size_type filter) const
size_type pfmetSize() const
TriggerSummaryAnalyzerRAW(const edm::ParameterSet &)
size_type pfjetSize() const
std::pair< size_type, size_type > l1tegammaSlice(size_type filter) const
std::pair< size_type, size_type > compositeSlice(size_type filter) const
size_type l1tjetSize() const
std::pair< size_type, size_type > l1etmissSlice(size_type filter) const
size_type pixtrackSize() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
size_type electronSize() const
size_type l1emSize() const
size_type pftauSize() const
virtual ~TriggerSummaryAnalyzerRAW()
std::pair< size_type, size_type > pfmetSlice(size_type filter) const
const std::string & usedProcessName() const
getters - for user access
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
size_type l1muonSize() const
const edm::InputTag filterTag(size_type filterIndex) const
tag from index
std::pair< size_type, size_type > calometSlice(size_type filter) const
size_type compositeSize() const
size_type jetSize() const
size_type l1jetSize() const
const edm::InputTag inputTag_
InputTag of TriggerEventWithRefs to analyze.
std::pair< size_type, size_type > jetSlice(size_type filter) const
std::pair< size_type, size_type > l1muonSlice(size_type filter) const
std::pair< size_type, size_type > muonSlice(size_type filter) const
size_type photonSize() const
low-level getters for data members
std::pair< size_type, size_type > l1jetSlice(size_type filter) const
ParameterDescriptionBase * add(U const &iLabel, T const &value)
size_type l1hfringsSize() const
std::pair< size_type, size_type > l1tjetSlice(size_type filter) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::pair< size_type, size_type > pfjetSlice(size_type filter) const
size_type l1tegammaSize() const
size_type calometSize() const
size_type size() const
number of filters
void add(std::string const &label, ParameterSetDescription const &psetDescription)
size_type muonSize() const
std::pair< size_type, size_type > l1ttauSlice(size_type filter) const
size_type l1tetsumSize() const
std::pair< size_type, size_type > photonSlice(size_type filter) const
slices of objects for a specific filter: [begin,end[
std::pair< size_type, size_type > l1emSlice(size_type filter) const
size_type l1tmuonSize() const
std::pair< size_type, size_type > pixtrackSlice(size_type filter) const
std::pair< size_type, size_type > l1hfringsSlice(size_type filter) const
size_type l1etmissSize() const
std::pair< size_type, size_type > l1tetsumSlice(size_type filter) const
const edm::EDGetTokenT< trigger::TriggerEventWithRefs > inputToken_
std::pair< size_type, size_type > basemetSlice(size_type filter) const
std::pair< size_type, size_type > electronSlice(size_type filter) const