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;
106 const unsigned int nPFJets(
handle->pfjetSlice(iFO).second-
107 handle->pfjetSlice(iFO).first);
108 if (nPFJets>0)
cout <<
" PFJets: " << nPFJets;
110 const unsigned int nPFTaus(
handle->pftauSlice(iFO).second-
111 handle->pftauSlice(iFO).first);
112 if (nPFTaus>0)
cout <<
" PFTaus: " << nPFTaus;
116 cout <<
"Elements in linearised collections of Refs: " << endl;
117 cout <<
" Photons: " <<
handle->photonSize() << endl;
118 cout <<
" Electrons: " <<
handle->electronSize() << endl;
119 cout <<
" Muons: " <<
handle->muonSize() << endl;
120 cout <<
" Jets: " <<
handle->jetSize() << endl;
121 cout <<
" Composites: " <<
handle->compositeSize() << endl;
122 cout <<
" BaseMETs: " <<
handle->basemetSize() << endl;
123 cout <<
" CaloMETs: " <<
handle->calometSize() << endl;
124 cout <<
" Pixtracks: " <<
handle->pixtrackSize() << endl;
125 cout <<
" L1EM: " <<
handle->l1emSize() << endl;
126 cout <<
" L1Muon: " <<
handle->l1muonSize() << endl;
127 cout <<
" L1Jet: " <<
handle->l1jetSize() << endl;
128 cout <<
" L1EtMiss: " <<
handle->l1etmissSize() << endl;
129 cout <<
" L1HfRings: " <<
handle->l1hfringsSize() << endl;
130 cout <<
" PFJets: " <<
handle->pfjetSize() << endl;
131 cout <<
" PFTaus: " <<
handle->pftauSize() << endl;
133 cout <<
"Handle invalid! Check InputTag provided." << endl;
edm::InputTag inputTag_
InputTag of TriggerEventWithRefs to analyze.
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const