19 inputTag_(ps.getParameter<edm::InputTag>(
"inputTag"))
37 using namespace l1extra;
38 using namespace trigger;
41 cout <<
"TriggerSummaryAnalyzerRAW: content of TriggerEventWithRefs: " <<
inputTag_.
encode();
46 cout <<
"Used Processname: " <<
handle->usedProcessName() << endl;
48 cout <<
"Number of TriggerFilterObjects: " << nFO << endl;
49 cout <<
"The TriggerFilterObjects: #, tag" << endl;
51 cout << iFO <<
" " <<
handle->filterTag(iFO).encode() << endl;
52 cout <<
" # of objects:";
54 const unsigned int nPhotons(
handle->photonSlice(iFO).second-
55 handle->photonSlice(iFO).first);
56 if (nPhotons>0)
cout <<
" Photons: " << nPhotons;
58 const unsigned int nElectrons(
handle->electronSlice(iFO).second-
59 handle->electronSlice(iFO).first);
60 if (nElectrons>0)
cout <<
" Electrons: " << nElectrons;
62 const unsigned int nMuons(
handle->muonSlice(iFO).second-
63 handle->muonSlice(iFO).first);
64 if (nMuons>0)
cout <<
" Muons: " << nMuons;
66 const unsigned int nJets(
handle->jetSlice(iFO).second-
67 handle->jetSlice(iFO).first);
68 if (nJets>0)
cout <<
" Jets: " << nJets;
70 const unsigned int nComposites(
handle->compositeSlice(iFO).second-
71 handle->compositeSlice(iFO).first);
72 if (nComposites>0)
cout <<
" Composites: " << nComposites;
74 const unsigned int nBaseMETs(
handle->basemetSlice(iFO).second-
75 handle->basemetSlice(iFO).first);
76 if (nBaseMETs>0)
cout <<
" BaseMETs: " << nBaseMETs;
78 const unsigned int nCaloMETs(
handle->calometSlice(iFO).second-
79 handle->calometSlice(iFO).first);
80 if (nCaloMETs>0)
cout <<
" CaloMETs: " << nCaloMETs;
82 const unsigned int nPixTracks(
handle->pixtrackSlice(iFO).second-
83 handle->pixtrackSlice(iFO).first);
84 if (nPixTracks>0)
cout <<
" PixTracks: " << nPixTracks;
86 const unsigned int nL1EM(
handle->l1emSlice(iFO).second-
87 handle->l1emSlice(iFO).first);
88 if (nL1EM>0)
cout <<
" L1EM: " << nL1EM;
90 const unsigned int nL1Muon(
handle->l1muonSlice(iFO).second-
91 handle->l1muonSlice(iFO).first);
92 if (nL1Muon>0)
cout <<
" L1Muon: " << nL1Muon;
94 const unsigned int nL1Jet(
handle->l1jetSlice(iFO).second-
95 handle->l1jetSlice(iFO).first);
96 if (nL1Jet>0)
cout <<
" L1Jet: " << nL1Jet;
98 const unsigned int nL1EtMiss(
handle->l1etmissSlice(iFO).second-
99 handle->l1etmissSlice(iFO).first);
100 if (nL1EtMiss>0)
cout <<
" L1EtMiss: " << nL1EtMiss;
102 const unsigned int nL1HfRings(
handle->l1hfringsSlice(iFO).second-
103 handle->l1hfringsSlice(iFO).first);
104 if (nL1HfRings>0)
cout <<
" L1HfRings: " << nL1HfRings;
108 cout <<
"Elements in linearised collections of Refs: " << endl;
109 cout <<
" Photons: " <<
handle->photonSize() << endl;
110 cout <<
" Electrons: " <<
handle->electronSize() << endl;
111 cout <<
" Muons: " <<
handle->muonSize() << endl;
112 cout <<
" Jets: " <<
handle->jetSize() << endl;
113 cout <<
" Composites: " <<
handle->compositeSize() << endl;
114 cout <<
" BaseMETs: " <<
handle->basemetSize() << endl;
115 cout <<
" CaloMETs: " <<
handle->calometSize() << endl;
116 cout <<
" Pixtracks: " <<
handle->pixtrackSize() << endl;
117 cout <<
" L1EM: " <<
handle->l1emSize() << endl;
118 cout <<
" L1Muon: " <<
handle->l1muonSize() << endl;
119 cout <<
" L1Jet: " <<
handle->l1jetSize() << endl;
120 cout <<
" L1EtMiss: " <<
handle->l1etmissSize() << endl;
121 cout <<
" L1HfRings: " <<
handle->l1hfringsSize() << endl;
123 cout <<
"Handle invalid! Check InputTag provided." << endl;
TriggerSummaryAnalyzerRAW(const edm::ParameterSet &)
~TriggerSummaryAnalyzerRAW()
virtual void analyze(const edm::Event &, const edm::EventSetup &)
edm::InputTag inputTag_
InputTag of TriggerEventWithRefs to analyze.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const