CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
HLTHiggsValidator Class Reference

#include <HLTHiggsValidator.h>

Inheritance diagram for HLTHiggsValidator:
DQMEDAnalyzer edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > > edm::stream::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 HLTHiggsValidator (const edm::ParameterSet &)
 Constructor. More...
 
 ~HLTHiggsValidator () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void beginRun (edm::Run const &, edm::EventSetup const &) final
 
void beginStream (edm::StreamID id) final
 
virtual void bookHistograms (DQMStore::IBooker &i, edm::Run const &, edm::EventSetup const &)=0
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
void endLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
void endRunSummary (edm::Run const &, edm::EventSetup const &, dqmDetails::NoCache *) const final
 
uint32_t streamId () const
 
- Public Member Functions inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::stream::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector< ProductResolverIndexAndSkipBit > const & itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void analyze (const edm::Event &iEvent, const edm::EventSetup &iSetup) override
 
void bookHistograms (DQMStore::IBooker &, const edm::Run &, const edm::EventSetup &) override
 
void dqmBeginRun (const edm::Run &iRun, const edm::EventSetup &iSetup) override
 
void endRun (const edm::Run &iRun, const edm::EventSetup &iSetup) override
 

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...
 
edm::ParameterSet _pset
 Input from configuration file. More...
 

Additional Inherited Members

- Public Types inherited from edm::stream::EDAnalyzer< edm::RunSummaryCache< dqmDetails::NoCache >, edm::LuminosityBlockSummaryCache< dqmDetails::NoCache > >
typedef CacheContexts< T... > CacheTypes
 
typedef CacheTypes::GlobalCache GlobalCache
 
typedef AbilityChecker< T... > HasAbility
 
typedef CacheTypes::LuminosityBlockCache LuminosityBlockCache
 
typedef LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCacheLuminosityBlockContext
 
typedef CacheTypes::LuminosityBlockSummaryCache LuminosityBlockSummaryCache
 
typedef CacheTypes::RunCache RunCache
 
typedef RunContextT< RunCache, GlobalCacheRunContext
 
typedef CacheTypes::RunSummaryCache RunSummaryCache
 
- Public Types inherited from edm::stream::EDAnalyzerBase
typedef EDAnalyzerAdaptorBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static std::shared_ptr< dqmDetails::NoCacheglobalBeginLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *)
 
static std::shared_ptr< dqmDetails::NoCacheglobalBeginRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *)
 
static void globalEndLuminosityBlockSummary (edm::LuminosityBlock const &, edm::EventSetup const &, LuminosityBlockContext const *, dqmDetails::NoCache *)
 
static void globalEndRunSummary (edm::Run const &, edm::EventSetup const &, RunContext const *, dqmDetails::NoCache *)
 
- Static Public Member Functions inherited from edm::stream::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- 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 mps_fire::i.

24  :
25  _pset(pset),
26  _analysisnames(pset.getParameter<std::vector<std::string> >("analyses")),
27  _collections(nullptr)
28 {
30 
31  //pass consumes list to the helper classes
32  for(size_t i = 0; i < _analysisnames.size() ; ++i)
33  {
35  _analyzers.push_back(analyzer);
36  }
37 
38 }
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.
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 ( )
override

Definition at line 40 of file HLTHiggsValidator.cc.

References _collections.

41 {
42  if( _collections != nullptr )
43  {
44  delete _collections;
45  _collections = nullptr;
46  }
47 }
EVTColContainer * _collections
The container with all the collections needed.

Member Function Documentation

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

Definition at line 69 of file HLTHiggsValidator.cc.

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

70 {
71  // Initialize the event collections
72  this->_collections->reset();
73 
74  for(std::vector<HLTHiggsSubAnalysis>::iterator iter = _analyzers.begin();
75  iter != _analyzers.end(); ++iter)
76  {
77  iter->analyze(iEvent, iSetup, this->_collections);
78  }
79 }
std::vector< HLTHiggsSubAnalysis > _analyzers
The instances of the class which do the real work.
EVTColContainer * _collections
The container with all the collections needed.
void reset()
Reset: clear all collections.
void HLTHiggsValidator::bookHistograms ( DQMStore::IBooker ibooker,
const edm::Run iRun,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 59 of file HLTHiggsValidator.cc.

References _analyzers.

59  {
60  // Call the Plotter bookHistograms (which stores the triggers paths..:)
61  for(std::vector<HLTHiggsSubAnalysis>::iterator iter = _analyzers.begin();
62  iter != _analyzers.end(); ++iter)
63  {
64  iter->bookHistograms(ibooker);
65  }
66 
67 }
std::vector< HLTHiggsSubAnalysis > _analyzers
The instances of the class which do the real work.
void HLTHiggsValidator::dqmBeginRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
overrideprivate

Definition at line 49 of file HLTHiggsValidator.cc.

References _analyzers.

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.
void HLTHiggsValidator::endRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
overrideprivate

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

Referenced by analyze(), bookHistograms(), dqmBeginRun(), and HLTHiggsValidator().

EVTColContainer* HLTHiggsValidator::_collections
private

The container with all the collections needed.

Definition at line 55 of file HLTHiggsValidator.h.

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

edm::ParameterSet HLTHiggsValidator::_pset
private

Input from configuration file.

Definition at line 47 of file HLTHiggsValidator.h.

Referenced by HLTHiggsValidator().