CMS 3D CMS Logo

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

#include <HLTHiggsValidator.h>

Inheritance diagram for HLTHiggsValidator:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

 HLTHiggsValidator (const edm::ParameterSet &)
 Constructor. More...
 
 ~HLTHiggsValidator ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 EDConsumerBase ()
 
ProductHolderIndex indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndex > &) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Member Functions

virtual void analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup)
 
virtual void beginJob ()
 
virtual void beginRun (const edm::Run &iRun, const edm::EventSetup &iSetup)
 
virtual void endJob ()
 
virtual void endRun (const edm::Run &iRun, const edm::EventSetup &iSetup)
 

Private Attributes

std::vector< std::string > _analysisnames
 the names of the subanalysis More...
 
std::vector< HLTHiggsSubAnalysis_analyzers
 The instances of the class which do the real work. More...
 
EVTColContainer_collections
 The container with all the collections needed. More...
 
DQMStore_dbe
 
edm::ParameterSet _pset
 Input from configuration file. More...
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- Protected Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
CurrentProcessingContext const * currentContext () const
 
- 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

Generate histograms for trigger efficiencies Higgs related Documentation available on the CMS TWiki: https://twiki.cern.ch/twiki/bin/view/CMS/HiggsWGHLTValidate

Date:
2012/03/23 11:50:56
Revision:
1.7
Author
J. Duarte Campderros (based and adapted on J. Klukas, M. Vander Donckt and J. Alcaraz code from the HLTriggerOffline/Muon package)

Definition at line 34 of file HLTHiggsValidator.h.

Constructor & Destructor Documentation

HLTHiggsValidator::HLTHiggsValidator ( const edm::ParameterSet pset)

Constructor.

Definition at line 25 of file HLTHiggsValidator.cc.

References _collections.

25  :
26  _pset(pset),
27  _analysisnames(pset.getParameter<std::vector<std::string> >("analysis")),
28  _collections(0),
29  _dbe(0)
30 {
32 }
T getParameter(std::string const &) const
edm::ParameterSet _pset
Input from configuration file.
container with all the objects needed
EVTColContainer * _collections
The container with all the collections needed.
std::vector< std::string > _analysisnames
the names of the subanalysis
HLTHiggsValidator::~HLTHiggsValidator ( )

Definition at line 34 of file HLTHiggsValidator.cc.

References _collections.

35 {
36  if( _collections != 0 )
37  {
38  delete _collections;
39  _collections = 0;
40  }
41 }
EVTColContainer * _collections
The container with all the collections needed.

Member Function Documentation

void HLTHiggsValidator::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
privatevirtual

Implements edm::EDAnalyzer.

Definition at line 60 of file HLTHiggsValidator.cc.

References _analyzers, _collections, LogTrace, and EVTColContainer::reset().

61 {
62  static int eventNumber = 0;
63  eventNumber++;
64  LogTrace("HiggsValidation") << "In HLTHiggsSubAnalysis::analyze, "
65  << "Event: " << eventNumber;
66 
67  // Initialize the event collections
68  this->_collections->reset();
69 
70  for(std::vector<HLTHiggsSubAnalysis>::iterator iter = _analyzers.begin();
71  iter != _analyzers.end(); ++iter)
72  {
73  iter->analyze(iEvent, iSetup, this->_collections);
74  }
75 }
std::vector< HLTHiggsSubAnalysis > _analyzers
The instances of the class which do the real work.
EVTColContainer * _collections
The container with all the collections needed.
#define LogTrace(id)
void HLTHiggsValidator::beginJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 79 of file HLTHiggsValidator.cc.

80 {
81 }
void HLTHiggsValidator::beginRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 44 of file HLTHiggsValidator.cc.

References _analysisnames, _analyzers, _pset, and i.

45 {
46  for(size_t i = 0; i < _analysisnames.size() ; ++i)
47  {
49  _analyzers.push_back(analyzer);
50  }
51  // Call the Plotter beginRun (which stores the triggers paths..:)
52  for(std::vector<HLTHiggsSubAnalysis>::iterator iter = _analyzers.begin();
53  iter != _analyzers.end(); ++iter)
54  {
55  iter->beginRun(iRun, iSetup);
56  }
57 }
std::vector< HLTHiggsSubAnalysis > _analyzers
The instances of the class which do the real work.
edm::ParameterSet _pset
Input from configuration file.
int i
Definition: DBlmapReader.cc:9
std::vector< std::string > _analysisnames
the names of the subanalysis
void HLTHiggsValidator::endJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 94 of file HLTHiggsValidator.cc.

95 {
96 }
void HLTHiggsValidator::endRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 83 of file HLTHiggsValidator.cc.

84 {
85  // vector<HLTMuonPlotter>::iterator iter;
86  // for(std::vector<HLTHiggsPlotter>::iterator iter = _analyzers.begin();
87  // iter != analyzers_.end(); ++iter)
88  // {
89  // iter->endRun(iRun, iSetup);
90  // }
91 }

Member Data Documentation

std::vector<std::string> HLTHiggsValidator::_analysisnames
private

the names of the subanalysis

Definition at line 52 of file HLTHiggsValidator.h.

Referenced by beginRun().

std::vector<HLTHiggsSubAnalysis> HLTHiggsValidator::_analyzers
private

The instances of the class which do the real work.

Definition at line 55 of file HLTHiggsValidator.h.

Referenced by analyze(), and beginRun().

EVTColContainer* HLTHiggsValidator::_collections
private

The container with all the collections needed.

Definition at line 58 of file HLTHiggsValidator.h.

Referenced by analyze(), HLTHiggsValidator(), and ~HLTHiggsValidator().

DQMStore* HLTHiggsValidator::_dbe
private

Definition at line 61 of file HLTHiggsValidator.h.

edm::ParameterSet HLTHiggsValidator::_pset
private

Input from configuration file.

Definition at line 50 of file HLTHiggsValidator.h.

Referenced by beginRun().