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 
55 
60 
63 
70 
73 
76 
77 
78 #include "HepMC/GenVertex.h"
79 #include "HepMC/GenParticle.h"
80 
81 #include "TROOT.h"
82 #include "TMath.h"
83 #include "TH1F.h"
84 #include "TH1I.h"
85 #include "TH2F.h"
86 
87 class V0Validator : public DQMEDAnalyzer {
88 
89 public:
90  explicit V0Validator(const edm::ParameterSet&);
91  ~V0Validator();
92 
93 
94 private:
95  virtual void analyze(const edm::Event&, const edm::EventSetup&);
96  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
97 
98  //Quantities that are to be histogrammed
103  unsigned int K0sPiCandStatus[2], LamPiCandStatus[2], K0sPiEff[2], LamPiEff[2];
104 
105  //Bookkeeping quantities
108 
109  // MonitorElements for final histograms
122 
135 
142 
149 
162 
175 
184 
187 
190 
195 
198 
199 
202 
203 
214 };
215 
MonitorElement * ksTkFakeVsPt
Definition: V0Validator.h:121
edm::EDGetTokenT< edm::SimVertexContainer > edmSimVertexContainerToken_
Definition: V0Validator.h:211
MonitorElement * nLam
Definition: V0Validator.h:186
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Definition: V0Validator.cc:58
MonitorElement * lamTkFakeVsR_num
Definition: V0Validator.h:172
MonitorElement * ksEffVsR
Definition: V0Validator.h:110
unsigned int K0sCandStatus
Definition: V0Validator.h:102
edm::EDGetTokenT< reco::SimToRecoCollection > recoSimToRecoCollectionToken_
Definition: V0Validator.h:207
V0Validator(const edm::ParameterSet &)
Definition: V0Validator.cc:28
edm::EDGetTokenT< reco::VertexCompositeCandidateCollection > recoVertexCompositeCandidateCollection_k0s_Token_
Definition: V0Validator.h:213
float LamGenR
Definition: V0Validator.h:99
MonitorElement * ksFakeVsPt_denom
Definition: V0Validator.h:138
float LamCandR
Definition: V0Validator.h:101
MonitorElement * lamTkEffVsR
Definition: V0Validator.h:153
MonitorElement * lamFakeVsPt
Definition: V0Validator.h:158
MonitorElement * ksTkFakeVsEta
Definition: V0Validator.h:120
MonitorElement * ksFakeVsR_denom
Definition: V0Validator.h:136
MonitorElement * ksFakeVsEta_num
Definition: V0Validator.h:130
unsigned int LamPiCandStatus[2]
Definition: V0Validator.h:103
MonitorElement * lamEffVsEta_num
Definition: V0Validator.h:164
MonitorElement * lamFakeVsPt_denom
Definition: V0Validator.h:145
float KsGenX
Definition: V0Validator.h:100
MonitorElement * ksEffVsR_num
Definition: V0Validator.h:123
MonitorElement * ksFakeVsPt_num
Definition: V0Validator.h:131
MonitorElement * lamFakeVsR_denom
Definition: V0Validator.h:143
MonitorElement * lamEffVsPt_denom
Definition: V0Validator.h:148
unsigned int K0sPiCandStatus[2]
Definition: V0Validator.h:103
MonitorElement * lamEffVsPt_num
Definition: V0Validator.h:165
float KsGenY
Definition: V0Validator.h:100
MonitorElement * lamTkFakeVsR
Definition: V0Validator.h:159
MonitorElement * lamFakeVsR
Definition: V0Validator.h:156
virtual void analyze(const edm::Event &, const edm::EventSetup &)
Definition: V0Validator.cc:273
MonitorElement * ksFakeVsEta
Definition: V0Validator.h:117
MonitorElement * lamZResolution
Definition: V0Validator.h:182
unsigned int LamPiEff[2]
Definition: V0Validator.h:103
MonitorElement * lamFakeDauRadDist
Definition: V0Validator.h:201
MonitorElement * lamTkEffVsEta
Definition: V0Validator.h:154
MonitorElement * lamEffVsR
Definition: V0Validator.h:150
MonitorElement * ksFakeVsEta_denom
Definition: V0Validator.h:137
edm::EDGetTokenT< TrackingParticleCollection > trackingParticleCollectionToken_
Definition: V0Validator.h:208
MonitorElement * fakeLamMass
Definition: V0Validator.h:193
MonitorElement * ksFakeDauRadDist
Definition: V0Validator.h:200
MonitorElement * lamTkFakeVsEta_num
Definition: V0Validator.h:173
MonitorElement * lamTkFakeVsPt
Definition: V0Validator.h:161
MonitorElement * ksEffVsPt_denom
Definition: V0Validator.h:141
int lamCandFound
Definition: V0Validator.h:107
MonitorElement * ksTkFakeVsEta_num
Definition: V0Validator.h:133
int k0sCandFound
Definition: V0Validator.h:107
int noTPforLamCand
Definition: V0Validator.h:107
MonitorElement * ksTkEffVsR_num
Definition: V0Validator.h:126
MonitorElement * lamFakeVsEta_denom
Definition: V0Validator.h:144
MonitorElement * lamXResolution
Definition: V0Validator.h:180
MonitorElement * ksEffVsEta_denom
Definition: V0Validator.h:140
MonitorElement * lamTkEffVsPt
Definition: V0Validator.h:155
float K0sCandEta
Definition: V0Validator.h:101
MonitorElement * goodKsMass
Definition: V0Validator.h:192
float LamGenpT
Definition: V0Validator.h:99
float LamGenY
Definition: V0Validator.h:100
int realLamFound
Definition: V0Validator.h:106
MonitorElement * fakeKsMass
Definition: V0Validator.h:191
edm::EDGetTokenT< std::vector< reco::Vertex > > vec_recoVertex_Token_
Definition: V0Validator.h:212
MonitorElement * ksTkEffVsPt
Definition: V0Validator.h:115
MonitorElement * goodLamMass
Definition: V0Validator.h:194
MonitorElement * ksFakeVsPt
Definition: V0Validator.h:118
unsigned int LamGenStatus
Definition: V0Validator.h:102
edm::EDGetTokenT< edm::SimTrackContainer > edmSimTrackContainerToken_
Definition: V0Validator.h:210
MonitorElement * lamTkFakeVsEta
Definition: V0Validator.h:160
unsigned int K0sGenStatus
Definition: V0Validator.h:102
MonitorElement * ksMassAll
Definition: V0Validator.h:196
MonitorElement * lamTkEffVsR_num
Definition: V0Validator.h:166
MonitorElement * ksTkEffVsR
Definition: V0Validator.h:113
MonitorElement * nKs
Definition: V0Validator.h:185
MonitorElement * lamTkEffVsEta_num
Definition: V0Validator.h:167
int noTPforK0sCand
Definition: V0Validator.h:107
float K0sGenEta
Definition: V0Validator.h:99
MonitorElement * ksXResolution
Definition: V0Validator.h:176
float K0sCandpT
Definition: V0Validator.h:101
float K0sGenpT
Definition: V0Validator.h:99
MonitorElement * lamEffVsEta_denom
Definition: V0Validator.h:147
MonitorElement * lamFakeVsEta
Definition: V0Validator.h:157
MonitorElement * ksAbsoluteDistResolution
Definition: V0Validator.h:179
edm::EDGetTokenT< TrackingParticleCollection > trackingParticleCollection_Eff_Token_
Definition: V0Validator.h:208
MonitorElement * ksCandStatus
Definition: V0Validator.h:188
MonitorElement * lamCandStatus
Definition: V0Validator.h:189
MonitorElement * lamEffVsEta
Definition: V0Validator.h:151
float LamGenX
Definition: V0Validator.h:100
MonitorElement * lamTkFakeVsPt_num
Definition: V0Validator.h:174
MonitorElement * lamFakeVsEta_num
Definition: V0Validator.h:170
std::string theDQMRootFileName
Definition: V0Validator.h:204
MonitorElement * ksTkEffVsPt_num
Definition: V0Validator.h:128
MonitorElement * lamFakeVsPt_num
Definition: V0Validator.h:171
MonitorElement * lamMassAll
Definition: V0Validator.h:197
float K0sCandR
Definition: V0Validator.h:101
MonitorElement * lamFakeVsR_num
Definition: V0Validator.h:169
edm::EDGetTokenT< edm::View< reco::Track > > edmView_recoTrack_Token_
Definition: V0Validator.h:209
float LamGenEta
Definition: V0Validator.h:99
float LamCandEta
Definition: V0Validator.h:101
MonitorElement * lamEffVsR_num
Definition: V0Validator.h:163
MonitorElement * ksFakeVsR
Definition: V0Validator.h:116
MonitorElement * ksEffVsEta
Definition: V0Validator.h:111
MonitorElement * lamTkEffVsPt_num
Definition: V0Validator.h:168
edm::EDGetTokenT< reco::RecoToSimCollection > recoRecoToSimCollectionToken_
Definition: V0Validator.h:206
edm::EDGetTokenT< reco::VertexCompositeCandidateCollection > recoVertexCompositeCandidateCollection_lambda_Token_
Definition: V0Validator.h:213
MonitorElement * lamAbsoluteDistResolution
Definition: V0Validator.h:183
float LamGenZ
Definition: V0Validator.h:100
int lamTracksFound
Definition: V0Validator.h:107
MonitorElement * ksZResolution
Definition: V0Validator.h:178
float KsGenZ
Definition: V0Validator.h:100
unsigned int LamCandStatus
Definition: V0Validator.h:102
MonitorElement * ksEffVsPt_num
Definition: V0Validator.h:125
MonitorElement * ksTkEffVsEta_num
Definition: V0Validator.h:127
MonitorElement * lamEffVsPt
Definition: V0Validator.h:152
MonitorElement * ksEffVsR_denom
Definition: V0Validator.h:139
MonitorElement * ksTkFakeVsPt_num
Definition: V0Validator.h:134
int realK0sFoundEff
Definition: V0Validator.h:106
MonitorElement * ksTkEffVsEta
Definition: V0Validator.h:114
MonitorElement * ksFakeVsR_num
Definition: V0Validator.h:129
MonitorElement * ksEffVsEta_num
Definition: V0Validator.h:124
MonitorElement * lamYResolution
Definition: V0Validator.h:181
std::string dirName
Definition: V0Validator.h:205
MonitorElement * ksEffVsPt
Definition: V0Validator.h:112
unsigned int K0sPiEff[2]
Definition: V0Validator.h:103
int k0sTracksFound
Definition: V0Validator.h:107
int realLamFoundEff
Definition: V0Validator.h:106
float K0sGenR
Definition: V0Validator.h:99
MonitorElement * ksTkFakeVsR
Definition: V0Validator.h:119
MonitorElement * ksYResolution
Definition: V0Validator.h:177
MonitorElement * lamEffVsR_denom
Definition: V0Validator.h:146
Definition: Run.h:41
int realK0sFound
Definition: V0Validator.h:106
float LamCandpT
Definition: V0Validator.h:101
MonitorElement * ksTkFakeVsR_num
Definition: V0Validator.h:132