CMS 3D CMS Logo

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

#include <MuonGEMRecHitsHarvestor.h>

Inheritance diagram for MuonGEMRecHitsHarvestor:
MuonGEMBaseHarvestor DQMEDHarvester edm::one::EDProducer< edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::EndProcessBlockProducer, 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
 
 MuonGEMRecHitsHarvestor (const edm::ParameterSet &)
 
 ~MuonGEMRecHitsHarvestor () override
 
- 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 endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &lumi, edm::EventSetup const &es) final
 
void endProcessBlockProduce (edm::ProcessBlock &) 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::EndProcessBlockProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources, edm::Accumulator >
 EDProducer ()=default
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
bool hasAbilityToProduceInBeginLumis () const final
 
bool hasAbilityToProduceInBeginProcessBlocks () const final
 
bool hasAbilityToProduceInBeginRuns () const final
 
bool hasAbilityToProduceInEndLumis () const final
 
bool hasAbilityToProduceInEndProcessBlocks () const final
 
bool hasAbilityToProduceInEndRuns () const final
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () 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
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex > const & esGetTokenRecordIndicesVector (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 = InEvent>
EDConsumerBaseAdaptor< B > consumes (edm::InputTag tag) noexcept
 
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<Transition Tr = Transition::Event>
constexpr auto esConsumes () noexcept
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag) noexcept
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
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< DQMTokenjobmegetter_
 
edm::EDPutTokenT< DQMTokenjobToken_
 
edm::GetterOfProducts< DQMTokenlumimegetter_
 
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::GetterOfProducts< DQMTokenrunmegetter_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 6 of file MuonGEMRecHitsHarvestor.h.

Constructor & Destructor Documentation

◆ MuonGEMRecHitsHarvestor()

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

Definition at line 6 of file MuonGEMRecHitsHarvestor.cc.

7  : MuonGEMBaseHarvestor(pset, "MuonGEMRecHitsHarvestor") {
8  region_ids_ = pset.getUntrackedParameter<std::vector<Int_t> >("regionIds");
9  station_ids_ = pset.getUntrackedParameter<std::vector<Int_t> >("stationIds");
10  layer_ids_ = pset.getUntrackedParameter<std::vector<Int_t> >("layerIds");
11 }

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

◆ ~MuonGEMRecHitsHarvestor()

MuonGEMRecHitsHarvestor::~MuonGEMRecHitsHarvestor ( )
override

Definition at line 13 of file MuonGEMRecHitsHarvestor.cc.

13 {}

Member Function Documentation

◆ dqmEndJob()

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

Implements DQMEDHarvester.

Definition at line 15 of file MuonGEMRecHitsHarvestor.cc.

15  {
16  TString occ_folder = "MuonGEMRecHitsV/GEMRecHitsTask/Occupancy/";
17  TString eff_folder = "MuonGEMRecHitsV/GEMRecHitsTask/Efficiency/";
18 
19  for (const auto& region_id : region_ids_) {
20  TString name_suf_re = GEMUtils::getSuffixName(region_id);
21  TString title_suf_re = GEMUtils::getSuffixTitle(region_id);
22 
23  // NOTE Eta
24  TString rechit_eta_path = occ_folder + "matched_rechit_occ_eta" + name_suf_re;
25  TString simhit_eta_path = occ_folder + "muon_simhit_occ_eta" + name_suf_re;
26 
27  TString eff_eta_name = "eff_eta" + name_suf_re;
28  TString eff_eta_title = "Eta Efficiency :" + title_suf_re;
29 
30  bookEff1D(booker, getter, rechit_eta_path, simhit_eta_path, eff_folder, eff_eta_name, eff_eta_title);
31 
32  for (const auto& station_id : station_ids_) {
33  TString name_suf_re_st = GEMUtils::getSuffixName(region_id, station_id);
34  TString title_suf_re_st = GEMUtils::getSuffixTitle(region_id, station_id);
35 
36  // NOTE Phi
37  TString rechit_phi_path = occ_folder + "matched_rechit_occ_phi" + name_suf_re_st;
38  TString simhit_phi_path = occ_folder + "muon_simhit_occ_phi" + name_suf_re_st;
39 
40  TString eff_phi_name = "eff_phi" + name_suf_re_st;
41  TString eff_phi_title = "Phi Efficiency :" + title_suf_re_st;
42 
43  bookEff1D(booker, getter, rechit_phi_path, simhit_phi_path, eff_folder, eff_phi_name, eff_phi_title);
44 
45  // NOTE Detector Component
46  TString rechit_det_path = occ_folder + "matched_rechit_occ_det" + name_suf_re_st;
47  TString simhit_det_path = occ_folder + "muon_simhit_occ_det" + name_suf_re_st;
48 
49  TString eff_det_name = "eff_det" + name_suf_re_st;
50  TString eff_det_title = "Detector Component Efficiency :" + title_suf_re_st;
51 
52  bookEff2D(booker, getter, rechit_det_path, simhit_det_path, eff_folder, eff_det_name, eff_det_title);
53 
54  } // station loop
55  } // region loop
56 }

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

Member Data Documentation

◆ layer_ids_

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

Definition at line 14 of file MuonGEMRecHitsHarvestor.h.

Referenced by MuonGEMRecHitsHarvestor().

◆ region_ids_

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

Definition at line 14 of file MuonGEMRecHitsHarvestor.h.

Referenced by dqmEndJob(), and MuonGEMRecHitsHarvestor().

◆ station_ids_

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

Definition at line 14 of file MuonGEMRecHitsHarvestor.h.

Referenced by dqmEndJob(), and MuonGEMRecHitsHarvestor().

GEMUtils::getSuffixName
TString getSuffixName(Int_t region_id)
Definition: GEMValidationUtils.cc:5
MuonGEMRecHitsHarvestor::region_ids_
std::vector< Int_t > region_ids_
Definition: MuonGEMRecHitsHarvestor.h:14
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
MuonGEMRecHitsHarvestor::station_ids_
std::vector< Int_t > station_ids_
Definition: MuonGEMRecHitsHarvestor.h:14
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
MuonGEMRecHitsHarvestor::layer_ids_
std::vector< Int_t > layer_ids_
Definition: MuonGEMRecHitsHarvestor.h:14
GEMUtils::getSuffixTitle
TString getSuffixTitle(Int_t region_id)
Definition: GEMValidationUtils.cc:34
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27