CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
HLTEventAnalyzerRAW Class Reference

#include <HLTEventAnalyzerRAW.h>

Inheritance diagram for HLTEventAnalyzerRAW:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

virtual void analyze (const edm::Event &, const edm::EventSetup &)
 
virtual void analyzeTrigger (const edm::Event &, const edm::EventSetup &, const std::string &triggerName)
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &)
 
 HLTEventAnalyzerRAW (const edm::ParameterSet &)
 
 ~HLTEventAnalyzerRAW ()
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &descriptions)
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Private Attributes

trigger::Vids basemetIds_
 
trigger::VRbasemet basemetRefs_
 
trigger::Vids calometIds_
 
trigger::VRcalomet calometRefs_
 
trigger::Vids compositeIds_
 
trigger::VRcomposite compositeRefs_
 
trigger::Vids electronIds_
 
trigger::VRelectron electronRefs_
 
HLTConfigProvider hltConfig_
 
trigger::Vids jetIds_
 
trigger::VRjet jetRefs_
 
trigger::Vids l1emIds_
 
trigger::VRl1em l1emRefs_
 
trigger::Vids l1etmissIds_
 
trigger::VRl1etmiss l1etmissRefs_
 
trigger::Vids l1hfringsIds_
 
trigger::VRl1hfrings l1hfringsRefs_
 
trigger::Vids l1jetIds_
 
trigger::VRl1jet l1jetRefs_
 
trigger::Vids l1muonIds_
 
trigger::VRl1muon l1muonRefs_
 
trigger::Vids muonIds_
 
trigger::VRmuon muonRefs_
 
trigger::Vids pfjetIds_
 
trigger::VRpfjet pfjetRefs_
 
trigger::Vids pftauIds_
 
trigger::VRpftau pftauRefs_
 
trigger::Vids photonIds_
 payload extracted from TriggerEventWithRefs More...
 
trigger::VRphoton photonRefs_
 
trigger::Vids pixtrackIds_
 
trigger::VRpixtrack pixtrackRefs_
 
std::string processName_
 module config parameters More...
 
edm::Handle
< trigger::TriggerEventWithRefs
triggerEventWithRefsHandle_
 
edm::InputTag triggerEventWithRefsTag_
 
edm::EDGetTokenT
< trigger::TriggerEventWithRefs
triggerEventWithRefsToken_
 
std::string triggerName_
 
edm::Handle< edm::TriggerResultstriggerResultsHandle_
 additional class data memebers More...
 
edm::InputTag triggerResultsTag_
 
edm::EDGetTokenT
< edm::TriggerResults
triggerResultsToken_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 

Detailed Description

This class is an EDAnalyzer analyzing the combined HLT information for RAW

Author
Martin Grunewald

See header file for documentation

Author
Martin Grunewald

Definition at line 27 of file HLTEventAnalyzerRAW.h.

Constructor & Destructor Documentation

HLTEventAnalyzerRAW::HLTEventAnalyzerRAW ( const edm::ParameterSet ps)
explicit

Definition at line 37 of file HLTEventAnalyzerRAW.cc.

References gather_cfg::cout, edm::InputTag::encode(), processName_, triggerEventWithRefsTag_, triggerName_, and triggerResultsTag_.

37  :
38  processName_(ps.getParameter<std::string>("processName")),
39  triggerName_(ps.getParameter<std::string>("triggerName")),
40  triggerResultsTag_(ps.getParameter<edm::InputTag>("triggerResults")),
41  triggerResultsToken_(consumes<edm::TriggerResults>(triggerResultsTag_)),
42  triggerEventWithRefsTag_(ps.getParameter<edm::InputTag>("triggerEventWithRefs")),
43  triggerEventWithRefsToken_(consumes<trigger::TriggerEventWithRefs>(triggerEventWithRefsTag_))
44 {
45  using namespace std;
46  using namespace edm;
47 
48  cout << "HLTEventAnalyzerRAW configuration: " << endl
49  << " ProcessName = " << processName_ << endl
50  << " TriggerName = " << triggerName_ << endl
51  << " TriggerResultsTag = " << triggerResultsTag_.encode() << endl
52  << " TriggerEventWithRefsTag = " << triggerEventWithRefsTag_.encode() << endl;
53 
54 }
T getParameter(std::string const &) const
std::string encode() const
Definition: InputTag.cc:164
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
edm::InputTag triggerEventWithRefsTag_
edm::EDGetTokenT< trigger::TriggerEventWithRefs > triggerEventWithRefsToken_
tuple cout
Definition: gather_cfg.py:121
edm::InputTag triggerResultsTag_
std::string processName_
module config parameters
HLTEventAnalyzerRAW::~HLTEventAnalyzerRAW ( )

Definition at line 56 of file HLTEventAnalyzerRAW.cc.

57 {
58 }

Member Function Documentation

void HLTEventAnalyzerRAW::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

Implements edm::EDAnalyzer.

Definition at line 105 of file HLTEventAnalyzerRAW.cc.

References analyzeTrigger(), gather_cfg::cout, edm::Event::getByToken(), hltConfig_, i, edm::HandleBase::isValid(), n, HLTConfigProvider::size(), triggerEventWithRefsHandle_, triggerEventWithRefsToken_, HLTConfigProvider::triggerName(), triggerName_, triggerResultsHandle_, and triggerResultsToken_.

106 {
107  using namespace std;
108  using namespace edm;
109 
110  cout << endl;
111 
112  // get event products
115  cout << "HLTEventAnalyzerRAW::analyze: Error in getting TriggerResults product from Event!" << endl;
116  return;
117  }
120  cout << "HLTEventAnalyzerRAW::analyze: Error in getting TriggerEventWithRefs product from Event!" << endl;
121  return;
122  }
123  // sanity check
124  assert(triggerResultsHandle_->size()==hltConfig_.size());
125 
126  // analyze this event for the triggers requested
127  if (triggerName_=="@") {
128  const unsigned int n(hltConfig_.size());
129  for (unsigned int i=0; i!=n; ++i) {
130  analyzeTrigger(iEvent,iSetup,hltConfig_.triggerName(i));
131  }
132  } else {
133  analyzeTrigger(iEvent,iSetup,triggerName_);
134  }
135 
136  return;
137 
138 }
unsigned int size() const
number of trigger paths in trigger table
int i
Definition: DBlmapReader.cc:9
edm::Handle< edm::TriggerResults > triggerResultsHandle_
additional class data memebers
const std::string & triggerName(unsigned int triggerIndex) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Definition: Event.h:434
edm::EDGetTokenT< edm::TriggerResults > triggerResultsToken_
HLTConfigProvider hltConfig_
bool isValid() const
Definition: HandleBase.h:76
edm::EDGetTokenT< trigger::TriggerEventWithRefs > triggerEventWithRefsToken_
edm::Handle< trigger::TriggerEventWithRefs > triggerEventWithRefsHandle_
virtual void analyzeTrigger(const edm::Event &, const edm::EventSetup &, const std::string &triggerName)
tuple cout
Definition: gather_cfg.py:121
void HLTEventAnalyzerRAW::analyzeTrigger ( const edm::Event iEvent,
const edm::EventSetup iSetup,
const std::string &  triggerName 
)
virtual

Definition at line 140 of file HLTEventAnalyzerRAW.cc.

References basemetIds_, basemetRefs_, calometIds_, calometRefs_, compositeIds_, compositeRefs_, gather_cfg::cout, electronIds_, electronRefs_, hltConfig_, i, j, jetIds_, jetRefs_, l1extra::L1HFRings::kRing1NegEta, l1extra::L1HFRings::kRing1PosEta, l1extra::L1HFRings::kRing2NegEta, l1extra::L1HFRings::kRing2PosEta, l1emIds_, l1emRefs_, l1etmissIds_, l1etmissRefs_, l1hfringsIds_, l1hfringsRefs_, l1jetIds_, l1jetRefs_, l1muonIds_, l1muonRefs_, m, HLTConfigProvider::moduleLabels(), HLTConfigProvider::moduleType(), muonIds_, muonRefs_, n, pfjetIds_, pfjetRefs_, pftauIds_, pftauRefs_, photonIds_, photonRefs_, pixtrackIds_, pixtrackRefs_, processName_, dt_dqm_sourceclient_common_cff::reco, HLTConfigProvider::size(), findQualityFiles::size, triggerEventWithRefsHandle_, edm::TriggerNames::triggerIndex(), HLTConfigProvider::triggerIndex(), edm::Event::triggerNames(), and triggerResultsHandle_.

Referenced by analyze().

140  {
141 
142  using namespace std;
143  using namespace edm;
144  using namespace reco;
145  using namespace trigger;
146 
147  cout << endl;
148 
149  const unsigned int n(hltConfig_.size());
150  const unsigned int triggerIndex(hltConfig_.triggerIndex(triggerName));
151  assert(triggerIndex==iEvent.triggerNames(*triggerResultsHandle_).triggerIndex(triggerName));
152 
153  // abort on invalid trigger name
154  if (triggerIndex>=n) {
155  cout << "HLTEventAnalyzerRAW::analyzeTrigger: path "
156  << triggerName << " - not found!" << endl;
157  return;
158  }
159 
160  cout << "HLTEventAnalyzerRAW::analyzeTrigger: path "
161  << triggerName << " [" << triggerIndex << "]" << endl;
162  // modules on this trigger path
163  const unsigned int m(hltConfig_.size(triggerIndex));
164  const vector<string>& moduleLabels(hltConfig_.moduleLabels(triggerIndex));
165 
166  // Results from TriggerResults product
167  cout << " Trigger path status:"
168  << " WasRun=" << triggerResultsHandle_->wasrun(triggerIndex)
169  << " Accept=" << triggerResultsHandle_->accept(triggerIndex)
170  << " Error =" << triggerResultsHandle_->error(triggerIndex)
171  << endl;
172  const unsigned int moduleIndex(triggerResultsHandle_->index(triggerIndex));
173  cout << " Last active module - label/type: "
174  << moduleLabels[moduleIndex] << "/" << hltConfig_.moduleType(moduleLabels[moduleIndex])
175  << " [" << moduleIndex << " out of 0-" << (m-1) << " on this path]"
176  << endl;
177  assert (moduleIndex<m);
178 
179  // Results from TriggerEventWithRefs product
180  photonIds_.clear();
181  photonRefs_.clear();
182  electronIds_.clear();
183  electronRefs_.clear();
184  muonIds_.clear();
185  muonRefs_.clear();
186  jetIds_.clear();
187  jetRefs_.clear();
188  compositeIds_.clear();
189  compositeRefs_.clear();
190  basemetIds_.clear();
191  basemetRefs_.clear();
192  calometIds_.clear();
193  calometRefs_.clear();
194  pixtrackIds_.clear();
195  pixtrackRefs_.clear();
196  l1emIds_.clear();
197  l1emRefs_.clear();
198  l1muonIds_.clear();
199  l1muonRefs_.clear();
200  l1jetIds_.clear();
201  l1jetRefs_.clear();
202  l1etmissIds_.clear();
203  l1etmissRefs_.clear();
204  l1hfringsIds_.clear();
205  l1hfringsRefs_.clear();
206  pfjetIds_.clear();
207  pfjetRefs_.clear();
208  pftauIds_.clear();
209  pftauRefs_.clear();
210 
211  // Attention: must look only for modules actually run in this path
212  // for this event!
213  for (unsigned int j=0; j<=moduleIndex; ++j) {
214  const string& moduleLabel(moduleLabels[j]);
215  const string moduleType(hltConfig_.moduleType(moduleLabel));
216  // check whether the module is packed up in TriggerEventWithRef product
217  const unsigned int filterIndex(triggerEventWithRefsHandle_->filterIndex(InputTag(moduleLabel,"",processName_)));
218  if (filterIndex<triggerEventWithRefsHandle_->size()) {
219  cout << " Filter in slot " << j << " - label/type " << moduleLabel << "/" << moduleType << endl;
220  cout << " Filter packed up at: " << filterIndex << endl;
221  cout << " Accepted objects:" << endl;
222 
223  triggerEventWithRefsHandle_->getObjects(filterIndex,photonIds_,photonRefs_);
224  const unsigned int nPhotons(photonIds_.size());
225  if (nPhotons>0) {
226  cout << " Photons: " << nPhotons << " - the objects: # id pt" << endl;
227  for (unsigned int i=0; i!=nPhotons; ++i) {
228  cout << " " << i << " " << photonIds_[i]
229  << " " << photonRefs_[i]->pt()
230  << endl;
231  }
232  }
233 
234  triggerEventWithRefsHandle_->getObjects(filterIndex,electronIds_,electronRefs_);
235  const unsigned int nElectrons(electronIds_.size());
236  if (nElectrons>0) {
237  cout << " Electrons: " << nElectrons << " - the objects: # id pt" << endl;
238  for (unsigned int i=0; i!=nElectrons; ++i) {
239  cout << " " << i << " " << electronIds_[i]
240  << " " << electronRefs_[i]->pt()
241  << endl;
242  }
243  }
244 
245  triggerEventWithRefsHandle_->getObjects(filterIndex,muonIds_,muonRefs_);
246  const unsigned int nMuons(muonIds_.size());
247  if (nMuons>0) {
248  cout << " Muons: " << nMuons << " - the objects: # id pt" << endl;
249  for (unsigned int i=0; i!=nMuons; ++i) {
250  cout << " " << i << " " << muonIds_[i]
251  << " " << muonRefs_[i]->pt()
252  << endl;
253  }
254  }
255 
256  triggerEventWithRefsHandle_->getObjects(filterIndex,jetIds_,jetRefs_);
257  const unsigned int nJets(jetIds_.size());
258  if (nJets>0) {
259  cout << " Jets: " << nJets << " - the objects: # id pt" << endl;
260  for (unsigned int i=0; i!=nJets; ++i) {
261  cout << " " << i << " " << jetIds_[i]
262  << " " << jetRefs_[i]->pt()
263  << endl;
264  }
265  }
266 
268  const unsigned int nComposites(compositeIds_.size());
269  if (nComposites>0) {
270  cout << " Composites: " << nComposites << " - the objects: # id pt" << endl;
271  for (unsigned int i=0; i!=nComposites; ++i) {
272  cout << " " << i << " " << compositeIds_[i]
273  << " " << compositeRefs_[i]->pt()
274  << endl;
275  }
276  }
277 
278  triggerEventWithRefsHandle_->getObjects(filterIndex,basemetIds_,basemetRefs_);
279  const unsigned int nBaseMETs(basemetIds_.size());
280  if (nBaseMETs>0) {
281  cout << " BaseMETs: " << nBaseMETs << " - the objects: # id pt" << endl;
282  for (unsigned int i=0; i!=nBaseMETs; ++i) {
283  cout << " " << i << " " << basemetIds_[i]
284  << " " << basemetRefs_[i]->pt()
285  << endl;
286  }
287  }
288 
289  triggerEventWithRefsHandle_->getObjects(filterIndex,calometIds_,calometRefs_);
290  const unsigned int nCaloMETs(calometIds_.size());
291  if (nCaloMETs>0) {
292  cout << " CaloMETs: " << nCaloMETs << " - the objects: # id pt" << endl;
293  for (unsigned int i=0; i!=nCaloMETs; ++i) {
294  cout << " " << i << " " << calometIds_[i]
295  << " " << calometRefs_[i]->pt()
296  << endl;
297  }
298  }
299 
300  triggerEventWithRefsHandle_->getObjects(filterIndex,pixtrackIds_,pixtrackRefs_);
301  const unsigned int nPixTracks(pixtrackIds_.size());
302  if (nPixTracks>0) {
303  cout << " PixTracks: " << nPixTracks << " - the objects: # id pt" << endl;
304  for (unsigned int i=0; i!=nPixTracks; ++i) {
305  cout << " " << i << " " << pixtrackIds_[i]
306  << " " << pixtrackRefs_[i]->pt()
307  << endl;
308  }
309  }
310 
311  triggerEventWithRefsHandle_->getObjects(filterIndex,l1emIds_,l1emRefs_);
312  const unsigned int nL1EM(l1emIds_.size());
313  if (nL1EM>0) {
314  cout << " L1EM: " << nL1EM << " - the objects: # id pt" << endl;
315  for (unsigned int i=0; i!=nL1EM; ++i) {
316  cout << " " << i << " " << l1emIds_[i]
317  << " " << l1emRefs_[i]->pt()
318  << endl;
319  }
320  }
321 
322  triggerEventWithRefsHandle_->getObjects(filterIndex,l1muonIds_,l1muonRefs_);
323  const unsigned int nL1Muon(l1muonIds_.size());
324  if (nL1Muon>0) {
325  cout << " L1Muon: " << nL1Muon << " - the objects: # id pt" << endl;
326  for (unsigned int i=0; i!=nL1Muon; ++i) {
327  cout << " " << i << " " << l1muonIds_[i]
328  << " " << l1muonRefs_[i]->pt()
329  << endl;
330  }
331  }
332 
333  triggerEventWithRefsHandle_->getObjects(filterIndex,l1jetIds_,l1jetRefs_);
334  const unsigned int nL1Jet(l1jetIds_.size());
335  if (nL1Jet>0) {
336  cout << " L1Jet: " << nL1Jet << " - the objects: # id pt" << endl;
337  for (unsigned int i=0; i!=nL1Jet; ++i) {
338  cout << " " << i << " " << l1jetIds_[i]
339  << " " << l1jetRefs_[i]->pt()
340  << endl;
341  }
342  }
343 
344  triggerEventWithRefsHandle_->getObjects(filterIndex,l1etmissIds_,l1etmissRefs_);
345  const unsigned int nL1EtMiss(l1etmissIds_.size());
346  if (nL1EtMiss>0) {
347  cout << " L1EtMiss: " << nL1EtMiss << " - the objects: # id pt" << endl;
348  for (unsigned int i=0; i!=nL1EtMiss; ++i) {
349  cout << " " << i << " " << l1etmissIds_[i]
350  << " " << l1etmissRefs_[i]->pt()
351  << endl;
352  }
353  }
354 
356  const unsigned int nL1HfRings(l1hfringsIds_.size());
357  if (nL1HfRings>0) {
358  cout << " L1HfRings: " << nL1HfRings << " - the objects: # id 4 4" << endl;
359  for (unsigned int i=0; i!=nL1HfRings; ++i) {
360  cout << " " << i << " " << l1hfringsIds_[i]
365  << " " << l1hfringsRefs_[i]->hfBitCount(l1extra::L1HFRings::kRing1PosEta)
366  << " " << l1hfringsRefs_[i]->hfBitCount(l1extra::L1HFRings::kRing1NegEta)
367  << " " << l1hfringsRefs_[i]->hfBitCount(l1extra::L1HFRings::kRing2PosEta)
368  << " " << l1hfringsRefs_[i]->hfBitCount(l1extra::L1HFRings::kRing2NegEta)
369  << endl;
370  }
371  }
372 
373  triggerEventWithRefsHandle_->getObjects(filterIndex,pfjetIds_,pfjetRefs_);
374  const unsigned int nPFJets(pfjetIds_.size());
375  if (nPFJets>0) {
376  cout << " PFJets: " << nPFJets << " - the objects: # id pt" << endl;
377  for (unsigned int i=0; i!=nPFJets; ++i) {
378  cout << " " << i << " " << pfjetIds_[i]
379  << " " << pfjetRefs_[i]->pt()
380  << endl;
381  }
382  }
383 
384  triggerEventWithRefsHandle_->getObjects(filterIndex,pftauIds_,pftauRefs_);
385  const unsigned int nPFTaus(pftauIds_.size());
386  if (nPFTaus>0) {
387  cout << " PFTaus: " << nPFTaus << " - the objects: # id pt" << endl;
388  for (unsigned int i=0; i!=nPFTaus; ++i) {
389  cout << " " << i << " " << pftauIds_[i]
390  << " " << pftauRefs_[i]->pt()
391  << endl;
392  }
393  }
394 
395  }
396  }
397 
398  return;
399 }
unsigned int size() const
number of trigger paths in trigger table
int i
Definition: DBlmapReader.cc:9
trigger::Vids compositeIds_
virtual edm::TriggerNames const & triggerNames(edm::TriggerResults const &triggerResults) const
Definition: Event.cc:204
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
trigger::VRl1muon l1muonRefs_
trigger::Vids electronIds_
trigger::VRl1em l1emRefs_
trigger::VRpftau pftauRefs_
trigger::VRpfjet pfjetRefs_
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)
trigger::VRcomposite compositeRefs_
trigger::VRphoton photonRefs_
unsigned int triggerIndex(std::string const &name) const
Definition: TriggerNames.cc:32
HLTConfigProvider hltConfig_
int j
Definition: DBlmapReader.cc:9
trigger::VRelectron electronRefs_
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_
trigger::VRl1hfrings l1hfringsRefs_
trigger::VRcalomet calometRefs_
trigger::VRmuon muonRefs_
tuple cout
Definition: gather_cfg.py:121
trigger::VRpixtrack pixtrackRefs_
std::string processName_
module config parameters
trigger::VRbasemet basemetRefs_
tuple size
Write out results.
void HLTEventAnalyzerRAW::beginRun ( edm::Run const &  iRun,
edm::EventSetup const &  iSetup 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 74 of file HLTEventAnalyzerRAW.cc.

References gather_cfg::cout, HLTConfigProvider::dump(), hltConfig_, HLTConfigProvider::init(), n, processName_, HLTConfigProvider::size(), HLTConfigProvider::triggerIndex(), and triggerName_.

75 {
76  using namespace std;
77  using namespace edm;
78 
79  bool changed(true);
80  if (hltConfig_.init(iRun,iSetup,processName_,changed)) {
81  if (changed) {
82  // check if trigger name in (new) config
83  if (triggerName_!="@") { // "@" means: analyze all triggers in config
84  const unsigned int n(hltConfig_.size());
85  const unsigned int triggerIndex(hltConfig_.triggerIndex(triggerName_));
86  if (triggerIndex>=n) {
87  cout << "HLTEventAnalyzerRAW::analyze:"
88  << " TriggerName " << triggerName_
89  << " not available in (new) config!" << endl;
90  cout << "Available TriggerNames are: " << endl;
91  hltConfig_.dump("Triggers");
92  }
93  }
94  }
95  } else {
96  cout << "HLTEventAnalyzerRAW::analyze:"
97  << " config extraction failure with process name "
98  << processName_ << endl;
99  }
100 
101 }
unsigned int size() const
number of trigger paths in trigger table
void dump(const std::string &what) const
Dumping config info to cout.
unsigned int triggerIndex(const std::string &triggerName) const
slot position of trigger path in trigger table (0 to size-1)
HLTConfigProvider hltConfig_
bool init(const edm::Run &iRun, const edm::EventSetup &iSetup, const std::string &processName, bool &changed)
d&#39;tor
tuple cout
Definition: gather_cfg.py:121
std::string processName_
module config parameters
void HLTEventAnalyzerRAW::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 64 of file HLTEventAnalyzerRAW.cc.

References edm::ConfigurationDescriptions::add(), edm::ParameterSetDescription::add(), and AlCaHLTBitMon_QueryRunRegistry::string.

64  {
66  desc.add<std::string>("processName","HLT");
67  desc.add<std::string>("triggerName","@");
68  desc.add<edm::InputTag>("triggerResults",edm::InputTag("TriggerResults","","HLT"));
69  desc.add<edm::InputTag>("triggerEventWithRefs",edm::InputTag("hltTriggerSummaryRAW","","HLT"));
70  descriptions.add("hltEventAnalyzerRAW", desc);
71 }
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)

Member Data Documentation

trigger::Vids HLTEventAnalyzerRAW::basemetIds_
private

Definition at line 65 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::VRbasemet HLTEventAnalyzerRAW::basemetRefs_
private

Definition at line 66 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::Vids HLTEventAnalyzerRAW::calometIds_
private

Definition at line 67 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::VRcalomet HLTEventAnalyzerRAW::calometRefs_
private

Definition at line 68 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::Vids HLTEventAnalyzerRAW::compositeIds_
private

Definition at line 63 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::VRcomposite HLTEventAnalyzerRAW::compositeRefs_
private

Definition at line 64 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::Vids HLTEventAnalyzerRAW::electronIds_
private

Definition at line 57 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::VRelectron HLTEventAnalyzerRAW::electronRefs_
private

Definition at line 58 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

HLTConfigProvider HLTEventAnalyzerRAW::hltConfig_
private

Definition at line 51 of file HLTEventAnalyzerRAW.h.

Referenced by analyze(), analyzeTrigger(), and beginRun().

trigger::Vids HLTEventAnalyzerRAW::jetIds_
private

Definition at line 61 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::VRjet HLTEventAnalyzerRAW::jetRefs_
private

Definition at line 62 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::Vids HLTEventAnalyzerRAW::l1emIds_
private

Definition at line 72 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::VRl1em HLTEventAnalyzerRAW::l1emRefs_
private

Definition at line 73 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::Vids HLTEventAnalyzerRAW::l1etmissIds_
private

Definition at line 78 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::VRl1etmiss HLTEventAnalyzerRAW::l1etmissRefs_
private

Definition at line 79 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::Vids HLTEventAnalyzerRAW::l1hfringsIds_
private

Definition at line 80 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::VRl1hfrings HLTEventAnalyzerRAW::l1hfringsRefs_
private

Definition at line 81 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::Vids HLTEventAnalyzerRAW::l1jetIds_
private

Definition at line 76 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::VRl1jet HLTEventAnalyzerRAW::l1jetRefs_
private

Definition at line 77 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::Vids HLTEventAnalyzerRAW::l1muonIds_
private

Definition at line 74 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::VRl1muon HLTEventAnalyzerRAW::l1muonRefs_
private

Definition at line 75 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::Vids HLTEventAnalyzerRAW::muonIds_
private

Definition at line 59 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::VRmuon HLTEventAnalyzerRAW::muonRefs_
private

Definition at line 60 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::Vids HLTEventAnalyzerRAW::pfjetIds_
private

Definition at line 83 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::VRpfjet HLTEventAnalyzerRAW::pfjetRefs_
private

Definition at line 84 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::Vids HLTEventAnalyzerRAW::pftauIds_
private

Definition at line 85 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::VRpftau HLTEventAnalyzerRAW::pftauRefs_
private

Definition at line 86 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::Vids HLTEventAnalyzerRAW::photonIds_
private

payload extracted from TriggerEventWithRefs

Definition at line 55 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::VRphoton HLTEventAnalyzerRAW::photonRefs_
private

Definition at line 56 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::Vids HLTEventAnalyzerRAW::pixtrackIds_
private

Definition at line 69 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

trigger::VRpixtrack HLTEventAnalyzerRAW::pixtrackRefs_
private

Definition at line 70 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger().

std::string HLTEventAnalyzerRAW::processName_
private

module config parameters

Definition at line 41 of file HLTEventAnalyzerRAW.h.

Referenced by analyzeTrigger(), beginRun(), and HLTEventAnalyzerRAW().

edm::Handle<trigger::TriggerEventWithRefs> HLTEventAnalyzerRAW::triggerEventWithRefsHandle_
private

Definition at line 50 of file HLTEventAnalyzerRAW.h.

Referenced by analyze(), and analyzeTrigger().

edm::InputTag HLTEventAnalyzerRAW::triggerEventWithRefsTag_
private

Definition at line 45 of file HLTEventAnalyzerRAW.h.

Referenced by HLTEventAnalyzerRAW().

edm::EDGetTokenT<trigger::TriggerEventWithRefs> HLTEventAnalyzerRAW::triggerEventWithRefsToken_
private

Definition at line 46 of file HLTEventAnalyzerRAW.h.

Referenced by analyze().

std::string HLTEventAnalyzerRAW::triggerName_
private

Definition at line 42 of file HLTEventAnalyzerRAW.h.

Referenced by analyze(), beginRun(), and HLTEventAnalyzerRAW().

edm::Handle<edm::TriggerResults> HLTEventAnalyzerRAW::triggerResultsHandle_
private

additional class data memebers

Definition at line 49 of file HLTEventAnalyzerRAW.h.

Referenced by analyze(), and analyzeTrigger().

edm::InputTag HLTEventAnalyzerRAW::triggerResultsTag_
private

Definition at line 43 of file HLTEventAnalyzerRAW.h.

Referenced by HLTEventAnalyzerRAW().

edm::EDGetTokenT<edm::TriggerResults> HLTEventAnalyzerRAW::triggerResultsToken_
private

Definition at line 44 of file HLTEventAnalyzerRAW.h.

Referenced by analyze().