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::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >

Public Member Functions

 HLTHiggsValidator (const edm::ParameterSet &)
 Constructor. More...
 
 ~HLTHiggsValidator () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &event, edm::EventSetup const &setup) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
void beginStream (edm::StreamID id) final
 
 DQMEDAnalyzer ()
 
void endLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual bool getCanSaveByLumi ()
 
- Public Member Functions inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
 EDProducer ()=default
 
 EDProducer (const EDProducer &)=delete
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
const EDProduceroperator= (const EDProducer &)=delete
 

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
 

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 DQMEDAnalyzer
typedef dqm::reco::DQMStore DQMStore
 
typedef dqm::reco::MonitorElement MonitorElement
 
- Public Types inherited from edm::stream::EDProducer< edm::GlobalCache< DQMEDAnalyzerGlobalCache >, edm::EndRunProducer, edm::EndLuminosityBlockProducer, edm::Accumulator >
using CacheTypes = CacheContexts< T... >
 
using GlobalCache = typename CacheTypes::GlobalCache
 
using HasAbility = AbilityChecker< T... >
 
using InputProcessBlockCache = typename CacheTypes::InputProcessBlockCache
 
using LuminosityBlockCache = typename CacheTypes::LuminosityBlockCache
 
using LuminosityBlockContext = LuminosityBlockContextT< LuminosityBlockCache, RunCache, GlobalCache >
 
using LuminosityBlockSummaryCache = typename CacheTypes::LuminosityBlockSummaryCache
 
using RunCache = typename CacheTypes::RunCache
 
using RunContext = RunContextT< RunCache, GlobalCache >
 
using RunSummaryCache = typename CacheTypes::RunSummaryCache
 
- Static Public Member Functions inherited from DQMEDAnalyzer
static void globalEndJob (DQMEDAnalyzerGlobalCache const *)
 
static void globalEndLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup, LuminosityBlockContext const *context)
 
static void globalEndRunProduce (edm::Run &run, edm::EventSetup const &setup, RunContext const *context)
 
static std::unique_ptr< DQMEDAnalyzerGlobalCacheinitializeGlobalCache (edm::ParameterSet const &)
 
- Protected Member Functions inherited from DQMEDAnalyzer
uint64_t meId () const
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 
unsigned int streamId_
 

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

Constructor & Destructor Documentation

◆ HLTHiggsValidator()

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

Constructor.

Definition at line 24 of file HLTHiggsValidator.cc.

References _analysisnames, _analyzers, _collections, _pset, ramdisk_dqm_sourceclient-live_cfg::analyzer, and mps_fire::i.

25  : _pset(pset), _analysisnames(pset.getParameter<std::vector<std::string> >("analyses")), _collections(nullptr) {
27 
28  //pass consumes list to the helper classes
29  for (size_t i = 0; i < _analysisnames.size(); ++i) {
30  HLTHiggsSubAnalysis analyzer(_pset, _analysisnames.at(i), consumesCollector());
31  _analyzers.push_back(analyzer);
32  }
33 }
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.
std::vector< std::string > _analysisnames
the names of the subanalysis

◆ ~HLTHiggsValidator()

HLTHiggsValidator::~HLTHiggsValidator ( )
override

Definition at line 35 of file HLTHiggsValidator.cc.

References _collections.

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

Member Function Documentation

◆ analyze()

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

Reimplemented from DQMEDAnalyzer.

Definition at line 58 of file HLTHiggsValidator.cc.

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

58  {
59  // Initialize the event collections
60  this->_collections->reset();
61 
62  for (std::vector<HLTHiggsSubAnalysis>::iterator iter = _analyzers.begin(); iter != _analyzers.end(); ++iter) {
63  iter->analyze(iEvent, iSetup, this->_collections);
64  }
65 }
std::vector< HLTHiggsSubAnalysis > _analyzers
The instances of the class which do the real work.
int iEvent
Definition: GenABIO.cc:224
EVTColContainer * _collections
The container with all the collections needed.
void reset()
Reset: clear all collections.

◆ bookHistograms()

void HLTHiggsValidator::bookHistograms ( DQMStore::IBooker ibooker,
const edm::Run iRun,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Implements DQMEDAnalyzer.

Definition at line 49 of file HLTHiggsValidator.cc.

References _analyzers.

51  {
52  // Call the Plotter bookHistograms (which stores the triggers paths..:)
53  for (std::vector<HLTHiggsSubAnalysis>::iterator iter = _analyzers.begin(); iter != _analyzers.end(); ++iter) {
54  iter->bookHistograms(ibooker);
55  }
56 }
std::vector< HLTHiggsSubAnalysis > _analyzers
The instances of the class which do the real work.

◆ dqmBeginRun()

void HLTHiggsValidator::dqmBeginRun ( const edm::Run iRun,
const edm::EventSetup iSetup 
)
overrideprivatevirtual

Reimplemented from DQMEDAnalyzer.

Definition at line 42 of file HLTHiggsValidator.cc.

References _analyzers.

42  {
43  // Call the Plotter beginRun (which stores the triggers paths..:)
44  for (std::vector<HLTHiggsSubAnalysis>::iterator iter = _analyzers.begin(); iter != _analyzers.end(); ++iter) {
45  iter->beginRun(iRun, iSetup);
46  }
47 }
std::vector< HLTHiggsSubAnalysis > _analyzers
The instances of the class which do the real work.

Member Data Documentation

◆ _analysisnames

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

the names of the subanalysis

Definition at line 46 of file HLTHiggsValidator.h.

Referenced by HLTHiggsValidator().

◆ _analyzers

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

The instances of the class which do the real work.

Definition at line 49 of file HLTHiggsValidator.h.

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

◆ _collections

EVTColContainer* HLTHiggsValidator::_collections
private

The container with all the collections needed.

Definition at line 52 of file HLTHiggsValidator.h.

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

◆ _pset

edm::ParameterSet HLTHiggsValidator::_pset
private

Input from configuration file.

Definition at line 44 of file HLTHiggsValidator.h.

Referenced by HLTHiggsValidator().