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
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 ()
 

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
 
- 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::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

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 32 of file HLTHiggsValidator.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 24 of file HLTHiggsValidator.cc.

References _analysisnames, _analyzers, _collections, _pset, edm::EDConsumerBase::consumesCollector(), and i.

24  :
25  _pset(pset),
26  _analysisnames(pset.getParameter<std::vector<std::string> >("analysis")),
27  _collections(0),
28  _dbe(0)
29 {
31 
32  //pass consumes list to the helper classes
33  for(size_t i = 0; i < _analysisnames.size() ; ++i)
34  {
36  _analyzers.push_back(analyzer);
37  }
38 
39 }
T getParameter(std::string const &) const
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
container with all the objects needed
EVTColContainer * _collections
The container with all the collections needed.
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
std::vector< std::string > _analysisnames
the names of the subanalysis
HLTHiggsValidator::~HLTHiggsValidator ( )

Definition at line 41 of file HLTHiggsValidator.cc.

References _collections.

42 {
43  if( _collections != 0 )
44  {
45  delete _collections;
46  _collections = 0;
47  }
48 }
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 61 of file HLTHiggsValidator.cc.

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

62 {
63  static int eventNumber = 0;
64  eventNumber++;
65  LogTrace("HiggsValidation") << "In HLTHiggsSubAnalysis::analyze, "
66  << "Event: " << eventNumber;
67 
68  // Initialize the event collections
69  this->_collections->reset();
70 
71  for(std::vector<HLTHiggsSubAnalysis>::iterator iter = _analyzers.begin();
72  iter != _analyzers.end(); ++iter)
73  {
74  iter->analyze(iEvent, iSetup, this->_collections);
75  }
76 }
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 80 of file HLTHiggsValidator.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 50 of file HLTHiggsValidator.cc.

References _analyzers.

51 {
52  // Call the Plotter beginRun (which stores the triggers paths..:)
53  for(std::vector<HLTHiggsSubAnalysis>::iterator iter = _analyzers.begin();
54  iter != _analyzers.end(); ++iter)
55  {
56  iter->beginRun(iRun, iSetup);
57  }
58 }
std::vector< HLTHiggsSubAnalysis > _analyzers
The instances of the class which do the real work.
void HLTHiggsValidator::endJob ( void  )
privatevirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 95 of file HLTHiggsValidator.cc.

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

Reimplemented from edm::EDAnalyzer.

Definition at line 84 of file HLTHiggsValidator.cc.

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

Member Data Documentation

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

the names of the subanalysis

Definition at line 50 of file HLTHiggsValidator.h.

Referenced by HLTHiggsValidator().

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

The instances of the class which do the real work.

Definition at line 53 of file HLTHiggsValidator.h.

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

EVTColContainer* HLTHiggsValidator::_collections
private

The container with all the collections needed.

Definition at line 56 of file HLTHiggsValidator.h.

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

DQMStore* HLTHiggsValidator::_dbe
private

Definition at line 59 of file HLTHiggsValidator.h.

edm::ParameterSet HLTHiggsValidator::_pset
private

Input from configuration file.

Definition at line 48 of file HLTHiggsValidator.h.

Referenced by HLTHiggsValidator().