CMS 3D CMS Logo

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

#include <MuonGEMDigisHarvestor.h>

Inheritance diagram for MuonGEMDigisHarvestor:
MuonGEMBaseHarvestor DQMEDHarvester edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator > edm::one::EDProducerBase edm::ProducerBase edm::EDConsumerBase edm::ProductRegistryHelper

Public Member Functions

void dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override
 
 MuonGEMDigisHarvestor (const edm::ParameterSet &)
 constructor More...
 
 ~MuonGEMDigisHarvestor () override
 destructor More...
 
- Public Member Functions inherited from MuonGEMBaseHarvestor
 MuonGEMBaseHarvestor (const edm::ParameterSet &, std::string)
 
- Public Member Functions inherited from DQMEDHarvester
void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
void beginJob () override
 
void beginLuminosityBlock (edm::LuminosityBlock const &lumi, edm::EventSetup const &) final
 
void beginRun (edm::Run const &run, edm::EventSetup const &) override
 
virtual void dqmAnalyze (DQMStore::IBooker &, DQMStore::IGetter &, edm::Event const &, edm::EventSetup const &)
 
 DQMEDHarvester ()
 
 DQMEDHarvester (edm::ParameterSet const &iConfig)
 
virtual void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
 
virtual void dqmEndRun (DQMStore::IBooker &, DQMStore::IGetter &, edm::Run const &, edm::EventSetup const &)
 
void endJob () final
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &es) final
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &es) final
 
 ~DQMEDHarvester () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndRuns () 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
 
std::vector< bool > const & recordProvenanceList () 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)
 
TypeLabelList const & typeLabelList () const
 used by the fwk to register the list of products of this module More...
 
 ~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 &&)=default
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
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
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Attributes

std::vector< Int_t > layer_ids_
 
std::vector< Int_t > region_ids_
 
std::vector< Int_t > station_ids_
 

Additional Inherited Members

- Public Types inherited from DQMEDHarvester
typedef dqm::harvesting::DQMStore DQMStore
 
typedef dqm::harvesting::MonitorElement MonitorElement
 
- 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 MuonGEMBaseHarvestor
void bookEff1D (DQMStore::IBooker &ibooker, DQMStore::IGetter &getter, const TString &passed_path, const TString &total_path, const TString &folder, const TString &eff_name, const TString &eff_title="Efficiency")
 
void bookEff2D (DQMStore::IBooker &ibooker, DQMStore::IGetter &getter, const TString &passed_path, const TString &total_path, const TString &folder, const TString &eff_name, const TString &eff_title="Efficiency")
 
TProfile * computeEfficiency (const TH1F &passed, const TH1F &total, const char *name, const char *title, Double_t confidence_level=0.683)
 
TH2F * computeEfficiency (const TH2F &passed, const TH2F &total, const char *name, const char *title)
 
template<typename T >
TgetElement (DQMStore::IGetter &getter, const TString &path)
 
- Protected Member Functions inherited from edm::ProducerBase
template<class ProductType >
BranchAliasSetterT< ProductType > produces ()
 declare what type of product will make and with which optional label More...
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces ()
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces ()
 
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<BranchType B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<Transition B>
BranchAliasSetter produces (const TypeID &id, std::string instanceName=std::string(), bool recordProvenance=true)
 
template<typename ProductType , Transition B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<class ProductType >
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
template<typename ProductType , BranchType B>
BranchAliasSetterT< ProductType > produces (std::string instanceName)
 
ProducesCollector producesCollector ()
 
- Protected Member Functions inherited from edm::EDConsumerBase
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
- Protected Attributes inherited from MuonGEMBaseHarvestor
const std::string kLogCategory_
 
- Protected Attributes inherited from DQMEDHarvester
DQMStoredqmstore_
 
edm::GetterOfProducts< DQMTokenlumimegetter_
 
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::GetterOfProducts< DQMTokenrunmegetter_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 6 of file MuonGEMDigisHarvestor.h.

Constructor & Destructor Documentation

◆ MuonGEMDigisHarvestor()

MuonGEMDigisHarvestor::MuonGEMDigisHarvestor ( const edm::ParameterSet pset)
explicit

constructor

Definition at line 4 of file MuonGEMDigisHarvestor.cc.

5  : MuonGEMBaseHarvestor(pset, "MuonGEMDigisHarvestor") {
6  // to make it compatible to both full geometry and slice test
7  region_ids_ = pset.getUntrackedParameter<std::vector<Int_t> >("regionIds");
8  station_ids_ = pset.getUntrackedParameter<std::vector<Int_t> >("stationIds");
9  layer_ids_ = pset.getUntrackedParameter<std::vector<Int_t> >("layerIds");
10 }

References layer_ids_, muonDTDigis_cfi::pset, region_ids_, and station_ids_.

◆ ~MuonGEMDigisHarvestor()

MuonGEMDigisHarvestor::~MuonGEMDigisHarvestor ( )
override

destructor

Definition at line 12 of file MuonGEMDigisHarvestor.cc.

12 {}

Member Function Documentation

◆ dqmEndJob()

void MuonGEMDigisHarvestor::dqmEndJob ( DQMStore::IBooker booker,
DQMStore::IGetter getter 
)
overridevirtual

Implements DQMEDHarvester.

Definition at line 14 of file MuonGEMDigisHarvestor.cc.

14  {
15  TString occ_folder = "MuonGEMDigisV/GEMDigisTask/Strip/Occupancy/";
16  TString eff_folder = "MuonGEMDigisV/GEMDigisTask/Strip/Efficiency/";
17 
18  for (Int_t region_id : region_ids_) {
19  TString name_suffix_re = GEMUtils::getSuffixName(region_id);
20  TString title_suffix_re = GEMUtils::getSuffixTitle(region_id);
21 
22  // NOTE eta efficiency
23  TString strip_eta_name = "matched_strip_occ_eta" + name_suffix_re;
24  TString simhit_eta_name = "muon_simhit_occ_eta" + name_suffix_re;
25  TString strip_eta_path = occ_folder + strip_eta_name;
26  TString simhit_eta_path = occ_folder + simhit_eta_name;
27  TString eff_eta_name = "eff_eta" + name_suffix_re;
28  TString eff_eta_title = "Eta Efficiency (Muon Only) :" + title_suffix_re;
29 
30  bookEff1D(booker, getter, strip_eta_path, simhit_eta_path, eff_folder, eff_eta_name, eff_eta_title);
31 
32  for (Int_t station_id : station_ids_) {
33  TString name_suffix_re_st = GEMUtils::getSuffixName(region_id, station_id);
34  TString title_suffix_re_st = GEMUtils::getSuffixTitle(region_id, station_id);
35 
36  // NOTE phi efficiency
37  TString strip_phi_name = "matched_strip_occ_phi" + name_suffix_re_st;
38  TString simhit_phi_name = "muon_simhit_occ_phi" + name_suffix_re_st;
39  TString strip_phi_path = occ_folder + strip_phi_name;
40  TString simhit_phi_path = occ_folder + simhit_phi_name;
41  TString eff_phi_name = "eff_phi" + name_suffix_re_st;
42  TString eff_phi_title = "Phi Efficiency (Muon Only) :" + title_suffix_re;
43 
44  bookEff1D(booker, getter, strip_phi_path, simhit_phi_path, eff_folder, eff_phi_name, eff_phi_title);
45 
46  // NOTE Detector Component efficiency
47  TString strip_det_name = "matched_strip_occ_det" + name_suffix_re_st;
48  TString simhit_det_name = "muon_simhit_occ_det" + name_suffix_re_st;
49  TString strip_det_path = occ_folder + strip_det_name;
50  TString simhit_det_path = occ_folder + simhit_det_name;
51  TString eff_det_name = "eff_det" + name_suffix_re_st;
52  TString eff_det_title = "Detector Component Efficiency (Muon Only) :" + title_suffix_re_st;
53 
54  bookEff2D(booker, getter, strip_det_path, simhit_det_path, eff_folder, eff_det_name, eff_det_title);
55 
56  } // statino loop
57  } // region loop
58 }

References MuonGEMBaseHarvestor::bookEff1D(), MuonGEMBaseHarvestor::bookEff2D(), GEMUtils::getSuffixName(), GEMUtils::getSuffixTitle(), region_ids_, and station_ids_.

Member Data Documentation

◆ layer_ids_

std::vector<Int_t> MuonGEMDigisHarvestor::layer_ids_
private

Definition at line 16 of file MuonGEMDigisHarvestor.h.

Referenced by MuonGEMDigisHarvestor().

◆ region_ids_

std::vector<Int_t> MuonGEMDigisHarvestor::region_ids_
private

Definition at line 16 of file MuonGEMDigisHarvestor.h.

Referenced by dqmEndJob(), and MuonGEMDigisHarvestor().

◆ station_ids_

std::vector<Int_t> MuonGEMDigisHarvestor::station_ids_
private

Definition at line 16 of file MuonGEMDigisHarvestor.h.

Referenced by dqmEndJob(), and MuonGEMDigisHarvestor().

MuonGEMDigisHarvestor::station_ids_
std::vector< Int_t > station_ids_
Definition: MuonGEMDigisHarvestor.h:16
MuonGEMDigisHarvestor::region_ids_
std::vector< Int_t > region_ids_
Definition: MuonGEMDigisHarvestor.h:16
MuonGEMDigisHarvestor::layer_ids_
std::vector< Int_t > layer_ids_
Definition: MuonGEMDigisHarvestor.h:16
GEMUtils::getSuffixName
TString getSuffixName(Int_t region_id)
Definition: GEMValidationUtils.cc:5
MuonGEMBaseHarvestor::bookEff2D
void bookEff2D(DQMStore::IBooker &ibooker, DQMStore::IGetter &getter, const TString &passed_path, const TString &total_path, const TString &folder, const TString &eff_name, const TString &eff_title="Efficiency")
Definition: MuonGEMBaseHarvestor.cc:100
MuonGEMBaseHarvestor::MuonGEMBaseHarvestor
MuonGEMBaseHarvestor(const edm::ParameterSet &, std::string)
Definition: MuonGEMBaseHarvestor.cc:5
MuonGEMBaseHarvestor::bookEff1D
void bookEff1D(DQMStore::IBooker &ibooker, DQMStore::IGetter &getter, const TString &passed_path, const TString &total_path, const TString &folder, const TString &eff_name, const TString &eff_title="Efficiency")
Definition: MuonGEMBaseHarvestor.cc:75
GEMUtils::getSuffixTitle
TString getSuffixTitle(Int_t region_id)
Definition: GEMValidationUtils.cc:34
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27