CMS 3D CMS Logo

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

#include <RPCRecHitProbabilityClient.h>

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

Public Member Functions

 RPCRecHitProbabilityClient (const edm::ParameterSet &ps)
 Constructor. More...
 
 ~RPCRecHitProbabilityClient () override
 Destructor. More...
 
- Public Member Functions inherited from DQMEDHarvester
void accumulate (edm::Event const &ev, edm::EventSetup const &es) final
 
void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void beginRun (edm::Run const &, edm::EventSetup const &) override
 
 DQMEDHarvester ()
 
void endJob () final
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
void endLuminosityBlockProduce (edm::LuminosityBlock &, edm::EventSetup const &) final
 
void endRun (edm::Run const &, edm::EventSetup const &) override
 
void endRunProduce (edm::Run &run, edm::EventSetup const &setup) override
 
 ~DQMEDHarvester () override=default
 
- Public Member Functions inherited from edm::one::EDProducer< edm::Accumulator, edm::EndLuminosityBlockProducer, edm::EndRunProducer, edm::one::WatchLuminosityBlocks, edm::one::WatchRuns, edm::one::SharedResources >
 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
 
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
 
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
 
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)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Protected Member Functions

void beginJob () override
 
void dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override
 
void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
 
- Protected Member Functions inherited from edm::ProducerBase
ProducesCollector producesCollector ()
 
- 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 ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
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)
 

Private Attributes

std::string globalFolder_
 

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 Attributes inherited from DQMEDHarvester
edm::EDPutTokenT< DQMTokenlumiToken_
 
edm::EDPutTokenT< DQMTokenrunToken_
 

Detailed Description

Definition at line 9 of file RPCRecHitProbabilityClient.h.

Constructor & Destructor Documentation

RPCRecHitProbabilityClient::RPCRecHitProbabilityClient ( const edm::ParameterSet ps)

Constructor.

Definition at line 12 of file RPCRechitProbabilityClient.cc.

References edm::ParameterSet::getUntrackedParameter(), globalFolder_, and AlCaHLTBitMon_QueryRunRegistry::string.

12  {
13  edm::LogVerbatim("rpcdqmclient") << "[RPCRecHitProbabilityClient]: Constructor";
14 
15  std::string subsystemFolder = iConfig.getUntrackedParameter<std::string>("RPCFolder", "RPC");
16  std::string recHitTypeFolder = iConfig.getUntrackedParameter<std::string>("MuonFolder", "Muon");
17 
18  std::string summaryFolder = iConfig.getUntrackedParameter<std::string>("GlobalFolder", "SummaryHistograms");
19 
20  globalFolder_ = subsystemFolder + "/" + recHitTypeFolder + "/" + summaryFolder;
21 }
RPCRecHitProbabilityClient::~RPCRecHitProbabilityClient ( )
override

Destructor.

Definition at line 23 of file RPCRechitProbabilityClient.cc.

23 {}

Member Function Documentation

void RPCRecHitProbabilityClient::beginJob ( void  )
overrideprotectedvirtual

Reimplemented from edm::one::EDProducerBase.

Definition at line 25 of file RPCRechitProbabilityClient.cc.

25  {
26  edm::LogVerbatim("rpcrechitprobabilityclient") << "[RPCRecHitProbabilityClient]: Begin Job";
27 }
void RPCRecHitProbabilityClient::dqmEndJob ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)
overrideprotectedvirtual

Implements DQMEDHarvester.

Definition at line 34 of file RPCRechitProbabilityClient.cc.

References dqm::dqmstoreimpl::DQMStore::IGetter::get(), dqm::legacy::MonitorElement::getTH1F(), globalFolder_, mps_fire::i, Skims_PA_cff::name, and rpcPointValidation_cfi::recHit.

34  {
35  edm::LogVerbatim("rpcrechitprobabilityclient") << "[RPCRecHitProbabilityClient]: End Run";
36 
37  MonitorElement *NumberOfMuonEta = igetter.get(globalFolder_ + "/NumberOfMuonEta");
38  MonitorElement *NumberOfMuonPt_B = igetter.get(globalFolder_ + "/NumberOfMuonPt_Barrel");
39  MonitorElement *NumberOfMuonPt_EP = igetter.get(globalFolder_ + "/NumberOfMuonPt_EndcapP");
40  MonitorElement *NumberOfMuonPt_EM = igetter.get(globalFolder_ + "/NumberOfMuonPt_EndcapM");
41  MonitorElement *NumberOfMuonPhi_B = igetter.get(globalFolder_ + "/NumberOfMuonPhi_Barrel");
42  MonitorElement *NumberOfMuonPhi_EP = igetter.get(globalFolder_ + "/NumberOfMuonPhi_EndcapP");
43  MonitorElement *NumberOfMuonPhi_EM = igetter.get(globalFolder_ + "/NumberOfMuonPhi_EndcapM");
44 
45  if (NumberOfMuonEta == nullptr || NumberOfMuonPt_B == nullptr || NumberOfMuonPt_EP == nullptr ||
46  NumberOfMuonPt_EM == nullptr || NumberOfMuonPhi_B == nullptr || NumberOfMuonPhi_EP == nullptr ||
47  NumberOfMuonPhi_EM == nullptr)
48  return;
49 
50  TH1F *NumberOfMuonEtaTH1F = NumberOfMuonEta->getTH1F();
51  TH1F *NumberOfMuonPtBTH1F = NumberOfMuonPt_B->getTH1F();
52  TH1F *NumberOfMuonPtEPTH1F = NumberOfMuonPt_EP->getTH1F();
53  TH1F *NumberOfMuonPtEMTH1F = NumberOfMuonPt_EM->getTH1F();
54  TH1F *NumberOfMuonPhiBTH1F = NumberOfMuonPhi_B->getTH1F();
55  TH1F *NumberOfMuonPhiEPTH1F = NumberOfMuonPhi_EP->getTH1F();
56  TH1F *NumberOfMuonPhiEMTH1F = NumberOfMuonPhi_EM->getTH1F();
57 
59  TH1F *recHitTH1F;
60  std::stringstream name;
61 
62  for (int i = 1; i <= 6; i++) {
63  recHit = nullptr;
64  recHitTH1F = nullptr;
65 
66  name.str("");
67  name << globalFolder_ << "/" << i << "RecHitMuonEta";
68  recHit = igetter.get(name.str());
69 
70  if (recHit) {
71  recHitTH1F = recHit->getTH1F();
72  recHitTH1F->Divide(NumberOfMuonEtaTH1F);
73  }
74 
75  recHit = nullptr;
76  recHitTH1F = nullptr;
77 
78  name.str("");
79  name << globalFolder_ << "/" << i << "RecHitMuonPtB";
80  recHit = igetter.get(name.str());
81 
82  if (recHit) {
83  recHitTH1F = recHit->getTH1F();
84  recHitTH1F->Divide(NumberOfMuonPtBTH1F);
85  }
86 
87  recHit = nullptr;
88  recHitTH1F = nullptr;
89 
90  name.str("");
91  name << globalFolder_ << "/" << i << "RecHitMuonPhiB";
92  recHit = igetter.get(name.str());
93 
94  if (recHit) {
95  recHitTH1F = recHit->getTH1F();
96  recHitTH1F->Divide(NumberOfMuonPhiBTH1F);
97  }
98 
99  recHit = nullptr;
100  recHitTH1F = nullptr;
101 
102  name.str("");
103  name << globalFolder_ << "/" << i << "RecHitMuonPtEP";
104  recHit = igetter.get(name.str());
105 
106  if (recHit) {
107  recHitTH1F = recHit->getTH1F();
108  recHitTH1F->Divide(NumberOfMuonPtEPTH1F);
109  }
110 
111  recHit = nullptr;
112  recHitTH1F = nullptr;
113 
114  name.str("");
115  name << globalFolder_ << "/" << i << "RecHitMuonPhiEP";
116  recHit = igetter.get(name.str());
117 
118  if (recHit) {
119  recHitTH1F = recHit->getTH1F();
120  recHitTH1F->Divide(NumberOfMuonPhiEPTH1F);
121  }
122 
123  recHit = nullptr;
124  recHitTH1F = nullptr;
125 
126  name.str("");
127  name << globalFolder_ << "/" << i << "RecHitMuonPtEM";
128  recHit = igetter.get(name.str());
129 
130  if (recHit) {
131  recHitTH1F = recHit->getTH1F();
132  recHitTH1F->Divide(NumberOfMuonPtEMTH1F);
133  }
134 
135  recHit = nullptr;
136  recHitTH1F = nullptr;
137 
138  name.str("");
139  name << globalFolder_ << "/" << i << "RecHitMuonPhiEM";
140  recHit = igetter.get(name.str());
141 
142  if (recHit) {
143  recHitTH1F = recHit->getTH1F();
144  recHitTH1F->Divide(NumberOfMuonPhiEMTH1F);
145  }
146  }
147 }
virtual TH1F * getTH1F() const
void RPCRecHitProbabilityClient::dqmEndLuminosityBlock ( DQMStore::IBooker ,
DQMStore::IGetter ,
edm::LuminosityBlock const &  ,
edm::EventSetup const &   
)
overrideprotectedvirtual

Reimplemented from DQMEDHarvester.

Definition at line 29 of file RPCRechitProbabilityClient.cc.

32  {}

Member Data Documentation

std::string RPCRecHitProbabilityClient::globalFolder_
private

Definition at line 26 of file RPCRecHitProbabilityClient.h.

Referenced by dqmEndJob(), and RPCRecHitProbabilityClient().