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 Member Functions | Private Attributes
CentralityDQM Class Reference

#include <CentralityDQM.h>

Inheritance diagram for CentralityDQM:
edm::EDAnalyzer

Public Member Functions

 CentralityDQM (const edm::ParameterSet &ps)
 
virtual ~CentralityDQM ()
 
- Public Member Functions inherited from edm::EDAnalyzer
 EDAnalyzer ()
 
std::string workerType () const
 
virtual ~EDAnalyzer ()
 

Protected Member Functions

virtual void analyze (edm::Event const &e, edm::EventSetup const &eSetup)
 
virtual void beginJob ()
 
virtual void beginLuminosityBlock (edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &context)
 
virtual void beginRun (edm::Run const &run, edm::EventSetup const &eSetup)
 
virtual void endJob ()
 
virtual void endLuminosityBlock (edm::LuminosityBlock const &lumiSeg, edm::EventSetup const &c)
 
virtual void endRun (edm::Run const &run, edm::EventSetup const &eSetup)
 
- Protected Member Functions inherited from edm::EDAnalyzer
CurrentProcessingContext const * currentContext () const
 

Private Member Functions

void bookHistos (DQMStore *bei)
 

Private Attributes

DQMStorebei_
 
edm::InputTag centrality_
 
MonitorElementh_hiEB
 
MonitorElementh_hiEE
 
MonitorElementh_hiEEminus
 
MonitorElementh_hiEEplus
 
MonitorElementh_hiET
 
MonitorElementh_hiHF
 
MonitorElementh_hiHFhit
 
MonitorElementh_hiHFhitMinus
 
MonitorElementh_hiHFhitPlus
 
MonitorElementh_hiHFminus
 
MonitorElementh_hiHFminusEta4
 
MonitorElementh_hiHFplus
 
MonitorElementh_hiHFplusEta4
 
MonitorElementh_hiNpix
 
MonitorElementh_hiNpixelTracks
 
MonitorElementh_hiNtracks
 
MonitorElementh_hiNtracksEtaCut
 
MonitorElementh_hiNtracksEtaPtCut
 
MonitorElementh_hiNtracksPtCut
 
MonitorElementh_hiZDC
 
MonitorElementh_hiZDCminus
 
MonitorElementh_hiZDCplus
 
MonitorElementh_vertex_x
 
MonitorElementh_vertex_y
 
MonitorElementh_vertex_z
 
int nLumiSecs_
 
edm::InputTag vertex_
 

Additional Inherited Members

- Public Types inherited from edm::EDAnalyzer
typedef EDAnalyzer ModuleType
 
typedef WorkerT< EDAnalyzerWorkerType
 
- Static Public Member Functions inherited from edm::EDAnalyzer
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &)
 

Detailed Description

Definition at line 16 of file CentralityDQM.h.

Constructor & Destructor Documentation

CentralityDQM::CentralityDQM ( const edm::ParameterSet ps)

Definition at line 30 of file CentralityDQM.cc.

References bookHistos(), edm::ParameterSet::getParameter(), and cppFunctionSkipper::operator.

30  {
31 
32  edm::LogInfo("CentralityDQM") << " Starting CentralityDQM " << "\n" ;
33 
35  bei_->setCurrentFolder("Physics/Centrality");
37 
38  centrality_ = ps.getParameter<edm::InputTag>("centrality_");
39  vertex_ = ps.getParameter<edm::InputTag>("vertex_");
40 
41  // just to initialize
42 }
T getParameter(std::string const &) const
void bookHistos(DQMStore *bei)
DQMStore * bei_
Definition: CentralityDQM.h:39
edm::InputTag vertex_
Definition: CentralityDQM.h:42
edm::InputTag centrality_
Definition: CentralityDQM.h:41
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
CentralityDQM::~CentralityDQM ( )
virtual

Definition at line 48 of file CentralityDQM.cc.

48  {
49  edm::LogInfo("CentralityDQM") << " Deleting CentralityDQM " << "\n" ;
50 }

Member Function Documentation

void CentralityDQM::analyze ( edm::Event const &  e,
edm::EventSetup const &  eSetup 
)
protectedvirtual

Implements edm::EDAnalyzer.

Definition at line 123 of file CentralityDQM.cc.

References edm::Event::getByLabel().

123  {
124  using namespace edm;
126  iEvent.getByLabel(centrality_, cent); //_centralitytag comes from the cfg as an inputTag and is "hiCentrality"
127 
128  if (!cent.isValid()) return;
129 
130  h_hiNpix->Fill(cent->multiplicityPixel());
131  h_hiNpixelTracks ->Fill( cent->NpixelTracks());
132  h_hiNtracks ->Fill( cent->Ntracks()); //
133 
134  h_hiNtracksPtCut->Fill(cent->NtracksPtCut());
135  h_hiNtracksEtaCut->Fill(cent->NtracksEtaCut());
136  h_hiNtracksEtaPtCut->Fill(cent->NtracksEtaPtCut());
137 
138  h_hiHF->Fill( cent->EtHFtowerSum());
139  h_hiHFplus->Fill( cent->EtHFtowerSumPlus());
140  h_hiHFminus->Fill( cent->EtHFtowerSumMinus());
141  h_hiHFplusEta4->Fill( cent->EtHFtruncatedPlus());
142  h_hiHFminusEta4->Fill( cent->EtHFtruncatedMinus());
143 
144  h_hiHFhit->Fill(cent->EtHFhitSum());
145  h_hiHFhitPlus->Fill(cent->EtHFhitSumPlus());
146  h_hiHFhitMinus->Fill(cent->EtHFhitSumMinus());
147 
148  h_hiZDC ->Fill( cent->zdcSum());
149  h_hiZDCplus ->Fill( cent->zdcSumPlus());
150  h_hiZDCminus ->Fill( cent->zdcSumMinus());
151 
152  h_hiEEplus->Fill( cent->EtEESumPlus());
153  h_hiEEminus->Fill( cent->EtEESumMinus());
154  h_hiEE->Fill( cent->EtEESum());
155  h_hiEB->Fill( cent->EtEBSum());
156  h_hiET->Fill( cent->EtMidRapiditySum());
157 
159  iEvent.getByLabel(vertex_, vertex);
160  h_vertex_x->Fill(vertex->begin()->x());
161  h_vertex_y->Fill(vertex->begin()->y());
162  h_vertex_z->Fill(vertex->begin()->z());
163 
164 }
MonitorElement * h_hiZDC
Definition: CentralityDQM.h:67
MonitorElement * h_hiZDCplus
Definition: CentralityDQM.h:68
MonitorElement * h_vertex_x
Definition: CentralityDQM.h:71
MonitorElement * h_vertex_z
Definition: CentralityDQM.h:73
MonitorElement * h_hiET
Definition: CentralityDQM.h:63
MonitorElement * h_hiNpix
Definition: CentralityDQM.h:48
MonitorElement * h_hiNtracksEtaCut
Definition: CentralityDQM.h:52
MonitorElement * h_hiNpixelTracks
Definition: CentralityDQM.h:49
MonitorElement * h_hiNtracksEtaPtCut
Definition: CentralityDQM.h:53
MonitorElement * h_hiHFminusEta4
Definition: CentralityDQM.h:58
MonitorElement * h_vertex_y
Definition: CentralityDQM.h:72
MonitorElement * h_hiEB
Definition: CentralityDQM.h:62
MonitorElement * h_hiHFplusEta4
Definition: CentralityDQM.h:57
MonitorElement * h_hiEEminus
Definition: CentralityDQM.h:66
void Fill(long long x)
MonitorElement * h_hiHF
Definition: CentralityDQM.h:54
MonitorElement * h_hiHFhit
Definition: CentralityDQM.h:59
int iEvent
Definition: GenABIO.cc:243
MonitorElement * h_hiHFhitPlus
Definition: CentralityDQM.h:60
MonitorElement * h_hiHFminus
Definition: CentralityDQM.h:56
MonitorElement * h_hiNtracks
Definition: CentralityDQM.h:50
MonitorElement * h_hiHFhitMinus
Definition: CentralityDQM.h:61
MonitorElement * h_hiNtracksPtCut
Definition: CentralityDQM.h:51
MonitorElement * h_hiZDCminus
Definition: CentralityDQM.h:69
MonitorElement * h_hiHFplus
Definition: CentralityDQM.h:55
edm::InputTag vertex_
Definition: CentralityDQM.h:42
MonitorElement * h_hiEEplus
Definition: CentralityDQM.h:65
MonitorElement * h_hiEE
Definition: CentralityDQM.h:64
edm::InputTag centrality_
Definition: CentralityDQM.h:41
void CentralityDQM::beginJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 56 of file CentralityDQM.cc.

56  {
57  nLumiSecs_ = 0;
58 }
void CentralityDQM::beginLuminosityBlock ( edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  context 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 71 of file CentralityDQM.cc.

71  {
72  //edm::LogInfo ("CentralityDQM") <<"[CentralityDQM]: Begin of LS transition";
73 }
void CentralityDQM::beginRun ( edm::Run const &  run,
edm::EventSetup const &  eSetup 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 64 of file CentralityDQM.cc.

64  {
65  edm::LogInfo ("CentralityDQM") <<"[CentralityDQM]: Begining of Run";
66 }
void CentralityDQM::bookHistos ( DQMStore bei)
private

Definition at line 79 of file CentralityDQM.cc.

References DQMStore::book1D(), DQMStore::cd(), and DQMStore::setCurrentFolder().

79  {
80 
81  bei->cd();
82 
83  bei->setCurrentFolder("Physics/Centrality");
84 
85  h_hiNpix= bei->book1D("h_hiNpix", "h_hiNpix", 500,0,50000);
86  h_hiNpixelTracks= bei->book1D("h_hiNpixelTracks", "hiNpixelTracks", 300,0,3000);
87  h_hiNtracks= bei->book1D("h_hiNtracks", "h_hiNtracks",200,0,2000);
88  h_hiNtracksPtCut= bei->book1D("h_hiNtracksPtCut", "h_hiNtracksPtCut", 200,0,2000);
89  h_hiNtracksEtaCut= bei->book1D("h_hiNtracksEtaCut", "h_hiNtracksEtaCut",200,0,2000);
90  h_hiNtracksEtaPtCut= bei->book1D("h_hiNtracksEtaPtCut", "h_hiNtracksEtaPtCut",200,0,2000);
91 
92  h_hiHF= bei->book1D("h_hiHF", "h_hiHF", 600,0,6000 );
93  h_hiHFplus= bei->book1D("h_hiHFplus", "h_hiHFplus", 600,0,6000 );
94  h_hiHFminus= bei->book1D("h_hiHFminus", "h_hiHFminus", 600,0,6000 );
95  h_hiHFplusEta4= bei->book1D("h_hiHFplusEta4", "h_hiHFplusEta4", 600,0,6000 );
96  h_hiHFminusEta4= bei->book1D("h_hiHFminusEta4", "h_hiHFminusEta4", 600,0,6000 );
97 
98  h_hiHFhit= bei->book1D("h_hiHFhit", "h_hiHFhit",2000,0,200000);
99  h_hiHFhitPlus= bei->book1D("h_hiHFhitPlus", "h_hiHFhitPlus",2000,0,100000);
100  h_hiHFhitMinus= bei->book1D("h_hiHFhitMinus", "h_hiHFhitMinus",2000,0,100000 );
101 
102  h_hiEB= bei->book1D("h_hiEB", "h_hiEB",400,0,4000 );
103  h_hiET= bei->book1D("h_hiET", "h_hiET",400,0,4000 );
104  h_hiEE= bei->book1D("h_hiEE", "h_hiEE",400,0,4000);
105  h_hiEEplus= bei->book1D("h_hiEEplus", "h_hiEEplus", 400,0,4000);
106  h_hiEEminus= bei->book1D("h_hiEEminus", "h_hiEEminus",400,0,4000 );
107  h_hiZDC= bei->book1D("h_hiZDC", "h_hiZDC",400,0,4000 );
108  h_hiZDCplus= bei->book1D("h_hiZDCplus", "h_hiZDCplus",400,0,4000 );
109  h_hiZDCminus= bei->book1D("h_hiZDCminus", "h_hiZDCminus", 400,0,4000);
110 
111  h_vertex_x = bei->book1D("h_vertex_x", "h_vertex_x", 400,-4,4);
112  h_vertex_y = bei->book1D("h_vertex_y", "h_vertex_y", 400,-4,4);
113  h_vertex_z = bei->book1D("h_vertex_z", "h_vertex_z", 400,-40,40);
114 
115  bei->cd();
116 
117 }
MonitorElement * h_hiZDC
Definition: CentralityDQM.h:67
MonitorElement * h_hiZDCplus
Definition: CentralityDQM.h:68
MonitorElement * h_vertex_x
Definition: CentralityDQM.h:71
MonitorElement * book1D(const char *name, const char *title, int nchX, double lowX, double highX)
Book 1D histogram.
Definition: DQMStore.cc:717
void cd(void)
go to top directory (ie. root)
Definition: DQMStore.cc:406
MonitorElement * h_vertex_z
Definition: CentralityDQM.h:73
MonitorElement * h_hiET
Definition: CentralityDQM.h:63
MonitorElement * h_hiNpix
Definition: CentralityDQM.h:48
MonitorElement * h_hiNtracksEtaCut
Definition: CentralityDQM.h:52
MonitorElement * h_hiNpixelTracks
Definition: CentralityDQM.h:49
MonitorElement * h_hiNtracksEtaPtCut
Definition: CentralityDQM.h:53
MonitorElement * h_hiHFminusEta4
Definition: CentralityDQM.h:58
MonitorElement * h_vertex_y
Definition: CentralityDQM.h:72
MonitorElement * h_hiEB
Definition: CentralityDQM.h:62
MonitorElement * h_hiHFplusEta4
Definition: CentralityDQM.h:57
MonitorElement * h_hiEEminus
Definition: CentralityDQM.h:66
MonitorElement * h_hiHF
Definition: CentralityDQM.h:54
MonitorElement * h_hiHFhit
Definition: CentralityDQM.h:59
MonitorElement * h_hiHFhitPlus
Definition: CentralityDQM.h:60
MonitorElement * h_hiHFminus
Definition: CentralityDQM.h:56
MonitorElement * h_hiNtracks
Definition: CentralityDQM.h:50
MonitorElement * h_hiHFhitMinus
Definition: CentralityDQM.h:61
MonitorElement * h_hiNtracksPtCut
Definition: CentralityDQM.h:51
MonitorElement * h_hiZDCminus
Definition: CentralityDQM.h:69
MonitorElement * h_hiHFplus
Definition: CentralityDQM.h:55
MonitorElement * h_hiEEplus
Definition: CentralityDQM.h:65
MonitorElement * h_hiEE
Definition: CentralityDQM.h:64
void setCurrentFolder(const std::string &fullpath)
Definition: DQMStore.cc:429
void CentralityDQM::endJob ( void  )
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 181 of file CentralityDQM.cc.

181  {
182  //edm::LogInfo("CentralityDQM") <<"[CentralityDQM]: endjob called!";
183 }
void CentralityDQM::endLuminosityBlock ( edm::LuminosityBlock const &  lumiSeg,
edm::EventSetup const &  c 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 168 of file CentralityDQM.cc.

168 { nLumiSecs_++;}
void CentralityDQM::endRun ( edm::Run const &  run,
edm::EventSetup const &  eSetup 
)
protectedvirtual

Reimplemented from edm::EDAnalyzer.

Definition at line 173 of file CentralityDQM.cc.

173  {
174 }

Member Data Documentation

DQMStore* CentralityDQM::bei_
private

Definition at line 39 of file CentralityDQM.h.

edm::InputTag CentralityDQM::centrality_
private

Definition at line 41 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiEB
private

Definition at line 62 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiEE
private

Definition at line 64 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiEEminus
private

Definition at line 66 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiEEplus
private

Definition at line 65 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiET
private

Definition at line 63 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiHF
private

Definition at line 54 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiHFhit
private

Definition at line 59 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiHFhitMinus
private

Definition at line 61 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiHFhitPlus
private

Definition at line 60 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiHFminus
private

Definition at line 56 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiHFminusEta4
private

Definition at line 58 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiHFplus
private

Definition at line 55 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiHFplusEta4
private

Definition at line 57 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiNpix
private

Definition at line 48 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiNpixelTracks
private

Definition at line 49 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiNtracks
private

Definition at line 50 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiNtracksEtaCut
private

Definition at line 52 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiNtracksEtaPtCut
private

Definition at line 53 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiNtracksPtCut
private

Definition at line 51 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiZDC
private

Definition at line 67 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiZDCminus
private

Definition at line 69 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_hiZDCplus
private

Definition at line 68 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_vertex_x
private

Definition at line 71 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_vertex_y
private

Definition at line 72 of file CentralityDQM.h.

MonitorElement* CentralityDQM::h_vertex_z
private

Definition at line 73 of file CentralityDQM.h.

int CentralityDQM::nLumiSecs_
private

Definition at line 37 of file CentralityDQM.h.

edm::InputTag CentralityDQM::vertex_
private

Definition at line 42 of file CentralityDQM.h.