CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources > edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

 RPCRecHitProbabilityClient (const edm::ParameterSet &ps)
 Constructor. More...
 
virtual ~RPCRecHitProbabilityClient ()
 Destructor. More...
 
- Public Member Functions inherited from DQMEDHarvester
virtual void analyze (edm::Event const &, edm::EventSetup const &) final
 
virtual void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
virtual void beginRun (edm::Run const &, edm::EventSetup const &)
 
 DQMEDHarvester (void)
 
virtual void endJob () final
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &) final
 
virtual void endRun (edm::Run const &, edm::EventSetup const &)
 
- Public Member Functions inherited from edm::one::EDAnalyzer< edm::one::WatchRuns, edm::one::WatchLuminosityBlocks, edm::one::SharedResources >
 EDAnalyzer ()=default
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
virtual ~EDAnalyzerBase ()
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
 EDConsumerBase ()
 
ProductHolderIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductHolderIndexAndSkipBit > &) const
 
std::vector
< ProductHolderIndexAndSkipBit >
const & 
itemsToGetFromEvent () const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesDependentUpon (const std::string &iProcessName, std::vector< const char * > &oModuleLabels) const
 
void modulesWhoseProductsAreConsumed (std::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Protected Member Functions

void beginJob ()
 
void dqmEndJob (DQMStore::IBooker &, DQMStore::IGetter &) override
 
void dqmEndLuminosityBlock (DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &)
 
- 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)
 

Private Attributes

std::string globalFolder_
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 

Detailed Description

Definition at line 10 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 
14  edm::LogVerbatim ("rpcdqmclient") << "[RPCRecHitProbabilityClient]: Constructor";
15 
16 
17  std::string subsystemFolder= iConfig.getUntrackedParameter<std::string>("RPCFolder", "RPC");
18  std::string recHitTypeFolder= iConfig.getUntrackedParameter<std::string>("MuonFolder", "Muon");
19 
20  std::string summaryFolder = iConfig.getUntrackedParameter<std::string>("GlobalFolder", "SummaryHistograms");
21 
22  globalFolder_ = subsystemFolder + "/"+ recHitTypeFolder + "/"+ summaryFolder ;
23 
24 }
RPCRecHitProbabilityClient::~RPCRecHitProbabilityClient ( )
virtual

Destructor.

Definition at line 26 of file RPCRechitProbabilityClient.cc.

26 {}

Member Function Documentation

void RPCRecHitProbabilityClient::beginJob ( void  )
protectedvirtual

Reimplemented from edm::one::EDAnalyzerBase.

Definition at line 28 of file RPCRechitProbabilityClient.cc.

28  {
29 
30  edm::LogVerbatim ("rpcrechitprobabilityclient") << "[RPCRecHitProbabilityClient]: Begin Job";
31 
32 }
void RPCRecHitProbabilityClient::dqmEndJob ( DQMStore::IBooker ibooker,
DQMStore::IGetter igetter 
)
overrideprotectedvirtual

Implements DQMEDHarvester.

Definition at line 39 of file RPCRechitProbabilityClient.cc.

References DQMStore::IGetter::get(), MonitorElement::getTH1F(), globalFolder_, i, mergeVDriftHistosByStation::name, and NULL.

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

Reimplemented from DQMEDHarvester.

Definition at line 35 of file RPCRechitProbabilityClient.cc.

35 {}

Member Data Documentation

std::string RPCRecHitProbabilityClient::globalFolder_
private

Definition at line 31 of file RPCRecHitProbabilityClient.h.

Referenced by dqmEndJob(), and RPCRecHitProbabilityClient().