CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
V0Validator.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: V0Validator
4 // Class: V0Validator
5 //
13 //
14 // Original Author: Brian Drell
15 // Created: Wed Feb 18 17:21:04 MST 2009
16 //
17 //
18 
19 
20 // system include files
21 #include <memory>
22 
23 // user include files
25 
28 
32 
36 
38 
49 
54 
57 
64 
67 
70 
71 
72 #include "HepMC/GenVertex.h"
73 #include "HepMC/GenParticle.h"
74 
75 #include "TROOT.h"
76 #include "TMath.h"
77 #include "TH1F.h"
78 #include "TH1I.h"
79 #include "TH2F.h"
80 
81 class V0Validator : public DQMEDAnalyzer {
82 
83 public:
84  explicit V0Validator(const edm::ParameterSet&);
85  ~V0Validator();
86 
87 
88 private:
89  virtual void analyze(const edm::Event&, const edm::EventSetup&) override;
90  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
91 
92  //Quantities that are to be histogrammed
97  unsigned int K0sPiCandStatus[2], LamPiCandStatus[2], K0sPiEff[2], LamPiEff[2];
98 
99  //Bookkeeping quantities
102 
103  // MonitorElements for final histograms
116 
129 
136 
143 
156 
169 
178 
181 
184 
189 
192 
193 
196 
197 
205 };
206 
MonitorElement * ksTkFakeVsPt
Definition: V0Validator.h:115
MonitorElement * nLam
Definition: V0Validator.h:180
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: V0Validator.cc:47
MonitorElement * lamTkFakeVsR_num
Definition: V0Validator.h:166
MonitorElement * ksEffVsR
Definition: V0Validator.h:104
unsigned int K0sCandStatus
Definition: V0Validator.h:96
edm::EDGetTokenT< reco::SimToRecoCollection > recoSimToRecoCollectionToken_
Definition: V0Validator.h:201
V0Validator(const edm::ParameterSet &)
Definition: V0Validator.cc:28
edm::EDGetTokenT< reco::VertexCompositeCandidateCollection > recoVertexCompositeCandidateCollection_k0s_Token_
Definition: V0Validator.h:204
float LamGenR
Definition: V0Validator.h:93
MonitorElement * ksFakeVsPt_denom
Definition: V0Validator.h:132
float LamCandR
Definition: V0Validator.h:95
MonitorElement * lamTkEffVsR
Definition: V0Validator.h:147
MonitorElement * lamFakeVsPt
Definition: V0Validator.h:152
MonitorElement * ksTkFakeVsEta
Definition: V0Validator.h:114
MonitorElement * ksFakeVsR_denom
Definition: V0Validator.h:130
MonitorElement * ksFakeVsEta_num
Definition: V0Validator.h:124
unsigned int LamPiCandStatus[2]
Definition: V0Validator.h:97
MonitorElement * lamEffVsEta_num
Definition: V0Validator.h:158
MonitorElement * lamFakeVsPt_denom
Definition: V0Validator.h:139
float KsGenX
Definition: V0Validator.h:94
MonitorElement * ksEffVsR_num
Definition: V0Validator.h:117
MonitorElement * ksFakeVsPt_num
Definition: V0Validator.h:125
MonitorElement * lamFakeVsR_denom
Definition: V0Validator.h:137
MonitorElement * lamEffVsPt_denom
Definition: V0Validator.h:142
unsigned int K0sPiCandStatus[2]
Definition: V0Validator.h:97
MonitorElement * lamEffVsPt_num
Definition: V0Validator.h:159
float KsGenY
Definition: V0Validator.h:94
MonitorElement * lamTkFakeVsR
Definition: V0Validator.h:153
MonitorElement * lamFakeVsR
Definition: V0Validator.h:150
MonitorElement * ksFakeVsEta
Definition: V0Validator.h:111
MonitorElement * lamZResolution
Definition: V0Validator.h:176
unsigned int LamPiEff[2]
Definition: V0Validator.h:97
MonitorElement * lamFakeDauRadDist
Definition: V0Validator.h:195
MonitorElement * lamTkEffVsEta
Definition: V0Validator.h:148
MonitorElement * lamEffVsR
Definition: V0Validator.h:144
MonitorElement * ksFakeVsEta_denom
Definition: V0Validator.h:131
MonitorElement * fakeLamMass
Definition: V0Validator.h:187
MonitorElement * ksFakeDauRadDist
Definition: V0Validator.h:194
MonitorElement * lamTkFakeVsEta_num
Definition: V0Validator.h:167
MonitorElement * lamTkFakeVsPt
Definition: V0Validator.h:155
MonitorElement * ksEffVsPt_denom
Definition: V0Validator.h:135
int lamCandFound
Definition: V0Validator.h:101
MonitorElement * ksTkFakeVsEta_num
Definition: V0Validator.h:127
int k0sCandFound
Definition: V0Validator.h:101
int noTPforLamCand
Definition: V0Validator.h:101
MonitorElement * ksTkEffVsR_num
Definition: V0Validator.h:120
MonitorElement * lamFakeVsEta_denom
Definition: V0Validator.h:138
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: V0Validator.cc:262
MonitorElement * lamXResolution
Definition: V0Validator.h:174
MonitorElement * ksEffVsEta_denom
Definition: V0Validator.h:134
MonitorElement * lamTkEffVsPt
Definition: V0Validator.h:149
float K0sCandEta
Definition: V0Validator.h:95
MonitorElement * goodKsMass
Definition: V0Validator.h:186
float LamGenpT
Definition: V0Validator.h:93
float LamGenY
Definition: V0Validator.h:94
int realLamFound
Definition: V0Validator.h:100
MonitorElement * fakeKsMass
Definition: V0Validator.h:185
edm::EDGetTokenT< std::vector< reco::Vertex > > vec_recoVertex_Token_
Definition: V0Validator.h:203
MonitorElement * ksTkEffVsPt
Definition: V0Validator.h:109
MonitorElement * goodLamMass
Definition: V0Validator.h:188
MonitorElement * ksFakeVsPt
Definition: V0Validator.h:112
unsigned int LamGenStatus
Definition: V0Validator.h:96
MonitorElement * lamTkFakeVsEta
Definition: V0Validator.h:154
unsigned int K0sGenStatus
Definition: V0Validator.h:96
MonitorElement * ksMassAll
Definition: V0Validator.h:190
MonitorElement * lamTkEffVsR_num
Definition: V0Validator.h:160
MonitorElement * ksTkEffVsR
Definition: V0Validator.h:107
MonitorElement * nKs
Definition: V0Validator.h:179
MonitorElement * lamTkEffVsEta_num
Definition: V0Validator.h:161
int noTPforK0sCand
Definition: V0Validator.h:101
float K0sGenEta
Definition: V0Validator.h:93
MonitorElement * ksXResolution
Definition: V0Validator.h:170
float K0sCandpT
Definition: V0Validator.h:95
float K0sGenpT
Definition: V0Validator.h:93
MonitorElement * lamEffVsEta_denom
Definition: V0Validator.h:141
MonitorElement * lamFakeVsEta
Definition: V0Validator.h:151
MonitorElement * ksAbsoluteDistResolution
Definition: V0Validator.h:173
edm::EDGetTokenT< TrackingParticleCollection > trackingParticleCollection_Eff_Token_
Definition: V0Validator.h:202
MonitorElement * ksCandStatus
Definition: V0Validator.h:182
MonitorElement * lamCandStatus
Definition: V0Validator.h:183
MonitorElement * lamEffVsEta
Definition: V0Validator.h:145
float LamGenX
Definition: V0Validator.h:94
MonitorElement * lamTkFakeVsPt_num
Definition: V0Validator.h:168
MonitorElement * lamFakeVsEta_num
Definition: V0Validator.h:164
std::string theDQMRootFileName
Definition: V0Validator.h:198
MonitorElement * ksTkEffVsPt_num
Definition: V0Validator.h:122
MonitorElement * lamFakeVsPt_num
Definition: V0Validator.h:165
MonitorElement * lamMassAll
Definition: V0Validator.h:191
float K0sCandR
Definition: V0Validator.h:95
MonitorElement * lamFakeVsR_num
Definition: V0Validator.h:163
float LamGenEta
Definition: V0Validator.h:93
float LamCandEta
Definition: V0Validator.h:95
MonitorElement * lamEffVsR_num
Definition: V0Validator.h:157
MonitorElement * ksFakeVsR
Definition: V0Validator.h:110
MonitorElement * ksEffVsEta
Definition: V0Validator.h:105
MonitorElement * lamTkEffVsPt_num
Definition: V0Validator.h:162
edm::EDGetTokenT< reco::RecoToSimCollection > recoRecoToSimCollectionToken_
Definition: V0Validator.h:200
edm::EDGetTokenT< reco::VertexCompositeCandidateCollection > recoVertexCompositeCandidateCollection_lambda_Token_
Definition: V0Validator.h:204
MonitorElement * lamAbsoluteDistResolution
Definition: V0Validator.h:177
float LamGenZ
Definition: V0Validator.h:94
int lamTracksFound
Definition: V0Validator.h:101
MonitorElement * ksZResolution
Definition: V0Validator.h:172
float KsGenZ
Definition: V0Validator.h:94
unsigned int LamCandStatus
Definition: V0Validator.h:96
MonitorElement * ksEffVsPt_num
Definition: V0Validator.h:119
MonitorElement * ksTkEffVsEta_num
Definition: V0Validator.h:121
MonitorElement * lamEffVsPt
Definition: V0Validator.h:146
MonitorElement * ksEffVsR_denom
Definition: V0Validator.h:133
MonitorElement * ksTkFakeVsPt_num
Definition: V0Validator.h:128
int realK0sFoundEff
Definition: V0Validator.h:100
MonitorElement * ksTkEffVsEta
Definition: V0Validator.h:108
MonitorElement * ksFakeVsR_num
Definition: V0Validator.h:123
MonitorElement * ksEffVsEta_num
Definition: V0Validator.h:118
MonitorElement * lamYResolution
Definition: V0Validator.h:175
std::string dirName
Definition: V0Validator.h:199
MonitorElement * ksEffVsPt
Definition: V0Validator.h:106
unsigned int K0sPiEff[2]
Definition: V0Validator.h:97
int k0sTracksFound
Definition: V0Validator.h:101
int realLamFoundEff
Definition: V0Validator.h:100
float K0sGenR
Definition: V0Validator.h:93
MonitorElement * ksTkFakeVsR
Definition: V0Validator.h:113
MonitorElement * ksYResolution
Definition: V0Validator.h:171
MonitorElement * lamEffVsR_denom
Definition: V0Validator.h:140
Definition: Run.h:41
int realK0sFound
Definition: V0Validator.h:100
float LamCandpT
Definition: V0Validator.h:95
MonitorElement * ksTkFakeVsR_num
Definition: V0Validator.h:126