37 processName_(ps.getParameter<std::string>(
"processName")),
38 triggerName_(ps.getParameter<std::string>(
"triggerName")),
39 triggerResultsTag_(ps.getParameter<edm::InputTag>(
"triggerResults")),
40 triggerEventWithRefsTag_(ps.getParameter<edm::InputTag>(
"triggerEventWithRefs"))
45 cout <<
"HLTEventAnalyzerRAW configuration: " << endl
73 if (triggerIndex>=
n) {
74 cout <<
"HLTEventAnalyzerRAW::analyze:"
76 <<
" not available in (new) config!" << endl;
77 cout <<
"Available TriggerNames are: " << endl;
83 cout <<
"HLTEventAnalyzerRAW::analyze:"
84 <<
" config extraction failure with process name "
102 cout <<
"HLTEventAnalyzerRAW::analyze: Error in getting TriggerResults product from Event!" << endl;
107 cout <<
"HLTEventAnalyzerRAW::analyze: Error in getting TriggerEventWithRefs product from Event!" << endl;
116 for (
unsigned int i=0;
i!=
n; ++
i) {
131 using namespace reco;
132 using namespace trigger;
141 if (triggerIndex>=
n) {
142 cout <<
"HLTEventAnalyzerRAW::analyzeTrigger: path "
143 << triggerName <<
" - not found!" << endl;
147 cout <<
"HLTEventAnalyzerRAW::analyzeTrigger: path "
148 << triggerName <<
" [" << triggerIndex <<
"]" << endl;
154 cout <<
" Trigger path status:"
160 cout <<
" Last active module - label/type: "
162 <<
" [" << moduleIndex <<
" out of 0-" << (
m-1) <<
" on this path]"
164 assert (moduleIndex<
m);
196 for (
unsigned int j=0;
j<=moduleIndex; ++
j) {
201 if (filterIndex<triggerEventWithRefsHandle_->
size()) {
202 cout <<
" Filter in slot " << j <<
" - label/type " << moduleLabel <<
"/" << moduleType << endl;
203 cout <<
" Filter packed up at: " << filterIndex << endl;
204 cout <<
" Accepted objects:" << endl;
207 const unsigned int nPhotons(
photonIds_.size());
209 cout <<
" Photons: " << nPhotons <<
" - the objects: # id pt" << endl;
210 for (
unsigned int i=0;
i!=nPhotons; ++
i) {
220 cout <<
" Electrons: " << nElectrons <<
" - the objects: # id pt" << endl;
221 for (
unsigned int i=0;
i!=nElectrons; ++
i) {
229 const unsigned int nMuons(
muonIds_.size());
231 cout <<
" Muons: " << nMuons <<
" - the objects: # id pt" << endl;
232 for (
unsigned int i=0;
i!=nMuons; ++
i) {
240 const unsigned int nJets(
jetIds_.size());
242 cout <<
" Jets: " << nJets <<
" - the objects: # id pt" << endl;
243 for (
unsigned int i=0;
i!=nJets; ++
i) {
253 cout <<
" Composites: " << nComposites <<
" - the objects: # id pt" << endl;
254 for (
unsigned int i=0;
i!=nComposites; ++
i) {
264 cout <<
" BaseMETs: " << nBaseMETs <<
" - the objects: # id pt" << endl;
265 for (
unsigned int i=0;
i!=nBaseMETs; ++
i) {
275 cout <<
" CaloMETs: " << nCaloMETs <<
" - the objects: # id pt" << endl;
276 for (
unsigned int i=0;
i!=nCaloMETs; ++
i) {
286 cout <<
" PixTracks: " << nPixTracks <<
" - the objects: # id pt" << endl;
287 for (
unsigned int i=0;
i!=nPixTracks; ++
i) {
295 const unsigned int nL1EM(
l1emIds_.size());
297 cout <<
" L1EM: " << nL1EM <<
" - the objects: # id pt" << endl;
298 for (
unsigned int i=0;
i!=nL1EM; ++
i) {
306 const unsigned int nL1Muon(
l1muonIds_.size());
308 cout <<
" L1Muon: " << nL1Muon <<
" - the objects: # id pt" << endl;
309 for (
unsigned int i=0;
i!=nL1Muon; ++
i) {
317 const unsigned int nL1Jet(
l1jetIds_.size());
319 cout <<
" L1Jet: " << nL1Jet <<
" - the objects: # id pt" << endl;
320 for (
unsigned int i=0;
i!=nL1Jet; ++
i) {
330 cout <<
" L1EtMiss: " << nL1EtMiss <<
" - the objects: # id pt" << endl;
331 for (
unsigned int i=0;
i!=nL1EtMiss; ++
i) {
341 cout <<
" L1HfRings: " << nL1HfRings <<
" - the objects: # id 4 4" << endl;
342 for (
unsigned int i=0;
i!=nL1HfRings; ++
i) {
unsigned int size() const
number of trigger paths in trigger table
void dump(const std::string &what) const
Dumping config info to cout.
trigger::Vids compositeIds_
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
trigger::Vids calometIds_
const std::string moduleType(const std::string &module) const
C++ class name of module.
trigger::Vids l1etmissIds_
edm::Handle< edm::TriggerResults > triggerResultsHandle_
additional class data memebers
const std::string & triggerName(unsigned int triggerIndex) const
trigger::VRl1muon l1muonRefs_
trigger::Vids electronIds_
trigger::VRl1em l1emRefs_
HLTEventAnalyzerRAW(const edm::ParameterSet &)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
trigger::Vids photonIds_
payload extracted from TriggerEventWithRefs
trigger::VRl1jet l1jetRefs_
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
edm::InputTag triggerEventWithRefsTag_
trigger::VRcomposite compositeRefs_
trigger::VRphoton photonRefs_
trigger::Vids basemetIds_
unsigned int triggerIndex(std::string const &name) const
HLTConfigProvider hltConfig_
trigger::VRelectron electronRefs_
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
const std::vector< std::string > & moduleLabels(unsigned int trigger) const
label(s) of module(s) on a trigger path
trigger::Vids pixtrackIds_
trigger::Vids l1hfringsIds_
trigger::VRl1etmiss l1etmissRefs_
edm::Handle< trigger::TriggerEventWithRefs > triggerEventWithRefsHandle_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
trigger::VRl1hfrings l1hfringsRefs_
trigger::VRcalomet calometRefs_
virtual void analyzeTrigger(const edm::Event &, const edm::EventSetup &, const std::string &triggerName)
trigger::VRmuon muonRefs_
trigger::VRpixtrack pixtrackRefs_
edm::InputTag triggerResultsTag_
std::string processName_
module config parameters
trigger::VRbasemet basemetRefs_
tuple size
Write out results.
const std::string * moduleLabel() const