CMS 3D CMS Logo

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

#include <EwkTauDQM.h>

Inheritance diagram for EwkTauDQM:
DQMEDAnalyzer edm::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &) override
 
void bookHistograms (DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
 
void endRun (const edm::Run &, const edm::EventSetup &) override
 
 EwkTauDQM (const edm::ParameterSet &)
 
 ~EwkTauDQM () override
 
- Public Member Functions inherited from DQMEDAnalyzer
void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
virtual void analyze (edm::Event const &, edm::EventSetup const &)
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &setup) override
 
void beginRun (edm::Run const &run, edm::EventSetup const &setup) final
 
virtual void dqmBeginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDAnalyzer ()
 
 DQMEDAnalyzer (DQMEDAnalyzer const &)=delete
 
 DQMEDAnalyzer (DQMEDAnalyzer &&)=delete
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) override
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &setup) final
 
void endRun (edm::Run const &run, edm::EventSetup const &setup) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) override
 
 ~DQMEDAnalyzer () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInLumis () const final
 
bool hasAbilityToProduceInRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
- Public Member Functions inherited from edm::one::EDProducerBase
 EDProducerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDProducerBase () override
 
- Public Member Functions inherited from edm::ProducerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
std::vector< edm::ProductResolverIndex > const & indiciesForPutProducts (BranchType iBranchType) const
 
 ProducerBase ()
 
std::vector< edm::ProductResolverIndex > const & putTokenIndexToProductResolverIndex () const
 
void registerProducts (ProducerBase *, ProductRegistry *, ModuleDescription const &)
 
std::function< void(BranchDescription const &)> registrationCallback () const
 used by the fwk to register list of products More...
 
void resolvePutIndicies (BranchType iBranchType, ModuleToResolverIndicies const &iIndicies, std::string const &moduleLabel)
 
 ~ProducerBase () noexcept(false) 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 Attributes

std::string dqmDirectory_
 
EwkElecTauHistManagerelecTauHistManager_
 
int maxNumWarnings_
 
EwkMuTauHistManagermuTauHistManager_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDProducerBase
typedef EDProducerBase ModuleType
 
- Public Types inherited from edm::ProducerBase
using ModuleToResolverIndicies = std::unordered_multimap< std::string, std::tuple< edm::TypeID const *, const char *, edm::ProductResolverIndex >>
 
typedef ProductRegistryHelper::TypeLabelList TypeLabelList
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDProducerBase
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)
 
- Protected Attributes inherited from DQMEDAnalyzer
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Booking and filling of histograms for data-quality monitoring purposes in EWK tau analyses; individual channels are implemented in separate Ewk..HistManager classes, so far: o Z –> electron + tau-jet channel (EwkElecTauHistManager) o Z –> muon + tau-jet channel (EwkMuTauHistManager)

Authors
Letizia Lusito, Joshua Swanson, Christian Veelken

Definition at line 27 of file EwkTauDQM.h.

Constructor & Destructor Documentation

EwkTauDQM::EwkTauDQM ( const edm::ParameterSet cfg)

Definition at line 22 of file EwkTauDQM.cc.

References edm::ParameterSet::addParameter(), dqmDirectory_, dqmDirectoryName(), elecTauHistManager_, edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), maxNumWarnings_, muTauHistManager_, and AlCaHLTBitMon_QueryRunRegistry::string.

23  : dqmDirectory_(cfg.getParameter<std::string>("dqmDirectory")) {
24  maxNumWarnings_ = cfg.exists("maxNumWarnings")
25  ? cfg.getParameter<int>("maxNumWarnings")
26  : 1;
27 
28  edm::ParameterSet cfgChannels =
29  cfg.getParameter<edm::ParameterSet>("channels");
30 
31  edm::ParameterSet cfgElecTauChannel =
32  cfgChannels.getParameter<edm::ParameterSet>("elecTauChannel");
33  std::string dqmSubDirectoryElecTauChannel =
34  cfgElecTauChannel.getParameter<std::string>("dqmSubDirectory");
35  cfgElecTauChannel.addParameter<std::string>(
36  "dqmDirectory",
37  dqmDirectoryName(dqmDirectory_, dqmSubDirectoryElecTauChannel));
38  cfgElecTauChannel.addParameter<int>("maxNumWarnings", maxNumWarnings_);
39  elecTauHistManager_ = new EwkElecTauHistManager(cfgElecTauChannel);
40 
41  edm::ParameterSet cfgMuTauChannel =
42  cfgChannels.getParameter<edm::ParameterSet>("muTauChannel");
43  std::string dqmSubDirectoryMuTauChannel =
44  cfgMuTauChannel.getParameter<std::string>("dqmSubDirectory");
45  cfgMuTauChannel.addParameter<std::string>(
46  "dqmDirectory",
47  dqmDirectoryName(dqmDirectory_, dqmSubDirectoryMuTauChannel));
48  cfgMuTauChannel.addParameter<int>("maxNumWarnings", maxNumWarnings_);
49  muTauHistManager_ = new EwkMuTauHistManager(cfgMuTauChannel);
50 }
T getParameter(std::string const &) const
std::string dqmDirectory_
Definition: EwkTauDQM.h:38
bool exists(std::string const &parameterName) const
checks if a parameter exists
std::string dqmDirectoryName(const std::string &dqmRootDirectory, const std::string &dqmSubDirectory)
Definition: EwkTauDQM.cc:10
EwkElecTauHistManager * elecTauHistManager_
Definition: EwkTauDQM.h:41
void addParameter(std::string const &name, T const &value)
Definition: ParameterSet.h:144
int maxNumWarnings_
Definition: EwkTauDQM.h:39
EwkMuTauHistManager * muTauHistManager_
Definition: EwkTauDQM.h:42
EwkTauDQM::~EwkTauDQM ( )
override

Definition at line 52 of file EwkTauDQM.cc.

References elecTauHistManager_, and muTauHistManager_.

52  {
53  delete elecTauHistManager_;
54  delete muTauHistManager_;
55 }
EwkElecTauHistManager * elecTauHistManager_
Definition: EwkTauDQM.h:41
EwkMuTauHistManager * muTauHistManager_
Definition: EwkTauDQM.h:42

Member Function Documentation

void EwkTauDQM::analyze ( const edm::Event evt,
const edm::EventSetup es 
)
override

Definition at line 64 of file EwkTauDQM.cc.

References elecTauHistManager_, EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), and muTauHistManager_.

64  {
67 }
void fillHistograms(const edm::Event &, const edm::EventSetup &)
Definition: EwkTauDQM.cc:676
void fillHistograms(const edm::Event &, const edm::EventSetup &)
Definition: EwkTauDQM.cc:210
EwkElecTauHistManager * elecTauHistManager_
Definition: EwkTauDQM.h:41
EwkMuTauHistManager * muTauHistManager_
Definition: EwkTauDQM.h:42
void EwkTauDQM::bookHistograms ( DQMStore::IBooker iBooker,
edm::Run const &  ,
edm::EventSetup const &   
)
overridevirtual

Implements DQMEDAnalyzer.

Definition at line 57 of file EwkTauDQM.cc.

References EwkElecTauHistManager::bookHistograms(), EwkMuTauHistManager::bookHistograms(), elecTauHistManager_, and muTauHistManager_.

59  {
62 }
void bookHistograms(DQMStore::IBooker &)
Definition: EwkTauDQM.cc:165
EwkElecTauHistManager * elecTauHistManager_
Definition: EwkTauDQM.h:41
EwkMuTauHistManager * muTauHistManager_
Definition: EwkTauDQM.h:42
void bookHistograms(DQMStore::IBooker &)
Definition: EwkTauDQM.cc:611
void EwkTauDQM::endRun ( const edm::Run ,
const edm::EventSetup  
)
override

Definition at line 69 of file EwkTauDQM.cc.

References elecTauHistManager_, EwkElecTauHistManager::finalizeHistograms(), EwkMuTauHistManager::finalizeHistograms(), and muTauHistManager_.

69  {
72 }
EwkElecTauHistManager * elecTauHistManager_
Definition: EwkTauDQM.h:41
void finalizeHistograms()
Definition: EwkTauDQM.cc:991
EwkMuTauHistManager * muTauHistManager_
Definition: EwkTauDQM.h:42

Member Data Documentation

std::string EwkTauDQM::dqmDirectory_
private

Definition at line 38 of file EwkTauDQM.h.

Referenced by EwkTauDQM().

EwkElecTauHistManager* EwkTauDQM::elecTauHistManager_
private

Definition at line 41 of file EwkTauDQM.h.

Referenced by analyze(), bookHistograms(), endRun(), EwkTauDQM(), and ~EwkTauDQM().

int EwkTauDQM::maxNumWarnings_
private

Definition at line 39 of file EwkTauDQM.h.

Referenced by EwkTauDQM().

EwkMuTauHistManager* EwkTauDQM::muTauHistManager_
private

Definition at line 42 of file EwkTauDQM.h.

Referenced by analyze(), bookHistograms(), endRun(), EwkTauDQM(), and ~EwkTauDQM().