CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
RPCRecHitProbabilityClient Class Reference

#include <RPCRecHitProbabilityClient.h>

Inheritance diagram for RPCRecHitProbabilityClient:
edm::EDAnalyzer edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &, const edm::EventSetup &)
 Analyze. More...
 
void beginJob ()
 BeginJob. More...
 
void beginLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 Begin Lumi block. More...
 
void beginRun (const edm::Run &, const edm::EventSetup &)
 
void endJob ()
 Endjob. More...
 
void endLuminosityBlock (edm::LuminosityBlock const &, edm::EventSetup const &)
 End Lumi Block. More...
 
void endRun (const edm::Run &, const edm::EventSetup &)
 
 RPCRecHitProbabilityClient (const edm::ParameterSet &ps)
 Constructor. More...
 
virtual ~RPCRecHitProbabilityClient ()
 Destructor. More...
 
- Public Member Functions inherited from edm::EDAnalyzer
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzer ()
 
ModuleDescription const & moduleDescription () const
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 
- Public Member Functions inherited from edm::EDConsumerBase
 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
 
bool registeredToConsume (ProductHolderIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void updateLookup (BranchType iBranchType, ProductHolderIndexHelper const &)
 
virtual ~EDConsumerBase ()
 

Private Attributes

DQMStoredbe_
 
std::string globalFolder_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 
- 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)
 

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.

References dbe_.

Member Function Documentation

void RPCRecHitProbabilityClient::analyze ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)
virtual

Analyze.

Implements edm::EDAnalyzer.

Definition at line 42 of file RPCRechitProbabilityClient.cc.

42 {}
void RPCRecHitProbabilityClient::beginJob ( void  )
virtual

BeginJob.

Reimplemented from edm::EDAnalyzer.

Definition at line 28 of file RPCRechitProbabilityClient.cc.

References dbe_, cppFunctionSkipper::operator, and DQMStore::setVerbose().

28  {
29 
30  edm::LogVerbatim ("rpcrechitprobabilityclient") << "[RPCRecHitProbabilityClient]: Begin Job";
31 
33  dbe_->setVerbose(0);
34 
35 }
void setVerbose(unsigned level)
Definition: DQMStore.cc:619
void RPCRecHitProbabilityClient::beginLuminosityBlock ( edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  context 
)
virtual

Begin Lumi block.

Reimplemented from edm::EDAnalyzer.

Definition at line 40 of file RPCRechitProbabilityClient.cc.

40 {}
void RPCRecHitProbabilityClient::beginRun ( const edm::Run r,
const edm::EventSetup c 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 38 of file RPCRechitProbabilityClient.cc.

38 {}
void RPCRecHitProbabilityClient::endJob ( void  )
virtual

Endjob.

Reimplemented from edm::EDAnalyzer.

Definition at line 169 of file RPCRechitProbabilityClient.cc.

169 {}
void RPCRecHitProbabilityClient::endLuminosityBlock ( edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  c 
)
virtual

End Lumi Block.

Reimplemented from edm::EDAnalyzer.

Definition at line 44 of file RPCRechitProbabilityClient.cc.

44 {}
void RPCRecHitProbabilityClient::endRun ( const edm::Run r,
const edm::EventSetup c 
)
virtual

Reimplemented from edm::EDAnalyzer.

Definition at line 46 of file RPCRechitProbabilityClient.cc.

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

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

Member Data Documentation

DQMStore* RPCRecHitProbabilityClient::dbe_
private

Definition at line 45 of file RPCRecHitProbabilityClient.h.

Referenced by beginJob(), endRun(), and ~RPCRecHitProbabilityClient().

std::string RPCRecHitProbabilityClient::globalFolder_
private

Definition at line 43 of file RPCRecHitProbabilityClient.h.

Referenced by endRun(), and RPCRecHitProbabilityClient().