CMS 3D CMS Logo

ValidationMisalignedTracker.h
Go to the documentation of this file.
1 #ifndef ValidationMisalignedTracker_h
2 #define ValidationMisalignedTracker_h
3 
4 // system include files
5 #include <memory>
6 
7 // user include files
11 
12 //
23 
24 #include "TTree.h"
25 #include "TFile.h"
26 
27 #include <TROOT.h>
28 #include <TSystem.h>
29 #include <TCanvas.h>
30 #include <cmath>
31 #include "TStyle.h"
32 
33 //
34 // class decleration
35 //
36 
38 public:
41 
42 private:
43  void analyze(const edm::Event&, const edm::EventSetup&) override;
44  void endJob() override;
45 
46  // ----------member data ---------------------------
47 
50 
54 
55  bool skip;
57  TTree* tree_eff;
58  TTree* tree_fake;
59  TFile* file_;
60 
61  int irun, ievt;
62 
65  int countpart[2], countpartrec[2];
67  // int countsim;
68  float ene[2][2], p[2][2], px[2][2], py[2][2], pz[2][2], ptmu[2][2];
69  float recene[2][2], recp[2][2], recpx[2][2], recpy[2][2], recpz[2][2], recptmu[2][2];
70 
71  int trackType;
72  float pt, eta, cottheta, theta, costheta, phi, d0, z0;
73  int nhit;
76  float recchiq;
78 
84  float fakeene[2][2], fakep[2][2], fakepx[2][2], fakepy[2][2], fakepz[2][2], fakeptmu[2][2];
85  float fakerecene[2][2], fakerecp[2][2], fakerecpx[2][2], fakerecpy[2][2], fakerecpz[2][2], fakerecptmu[2][2];
86 
89  int fakenhit;
92  float fakerecchiq;
94 
95  double chi2tmp;
96  float fractiontmp;
97  bool onlyDiag;
98  std::vector<std::string> associators;
99 
100  std::vector<edm::InputTag> label;
103 
105  std::vector<float> ptused;
106 };
107 
108 #endif
Vector3DBase
Definition: Vector3DBase.h:8
ValidationMisalignedTracker::fakemxptmu
float fakemxptmu
Definition: ValidationMisalignedTracker.h:81
ValidationMisalignedTracker::fakepx
float fakepx[2][2]
Definition: ValidationMisalignedTracker.h:84
ValidationMisalignedTracker::z0
float z0
Definition: ValidationMisalignedTracker.h:72
ValidationMisalignedTracker::enezmu
float enezmu
Definition: ValidationMisalignedTracker.h:64
ValidationMisalignedTracker::fakerecptzmu
float fakerecptzmu
Definition: ValidationMisalignedTracker.h:79
ValidationMisalignedTracker::nAssoc
int nAssoc
Definition: ValidationMisalignedTracker.h:75
ValidationMisalignedTracker::fakecountpart
int fakecountpart[2]
Definition: ValidationMisalignedTracker.h:83
ValidationMisalignedTracker::ZmassSelection_
bool ZmassSelection_
Definition: ValidationMisalignedTracker.h:52
ValidationMisalignedTracker::cottheta
float cottheta
Definition: ValidationMisalignedTracker.h:72
EDAnalyzer.h
ValidationMisalignedTracker::fakecountpartrec
int fakecountpartrec[2]
Definition: ValidationMisalignedTracker.h:83
ValidationMisalignedTracker::label_tp_fake
edm::InputTag label_tp_fake
Definition: ValidationMisalignedTracker.h:102
ValidationMisalignedTracker::fakerecz0
float fakerecz0
Definition: ValidationMisalignedTracker.h:90
TrackerGeometry.h
ValidationMisalignedTracker::recphizmu
float recphizmu
Definition: ValidationMisalignedTracker.h:63
ValidationMisalignedTracker::onlyDiag
bool onlyDiag
Definition: ValidationMisalignedTracker.h:97
ESHandle.h
ValidationMisalignedTracker::theta
float theta
Definition: ValidationMisalignedTracker.h:72
ValidationMisalignedTracker::mxptmu
float mxptmu
Definition: ValidationMisalignedTracker.h:64
ValidationMisalignedTracker::fakerecmxptmu
float fakerecmxptmu
Definition: ValidationMisalignedTracker.h:81
ValidationMisalignedTracker::yzmu
float yzmu
Definition: ValidationMisalignedTracker.h:64
ValidationMisalignedTracker::fakeminptmu
float fakeminptmu
Definition: ValidationMisalignedTracker.h:81
ValidationMisalignedTracker::fakeresphi
float fakeresphi
Definition: ValidationMisalignedTracker.h:93
ValidationMisalignedTracker::fakerecthetazmu
float fakerecthetazmu
Definition: ValidationMisalignedTracker.h:79
ValidationMisalignedTracker::reccottheta
float reccottheta
Definition: ValidationMisalignedTracker.h:74
ValidationMisalignedTracker::recz0
float recz0
Definition: ValidationMisalignedTracker.h:74
ValidationMisalignedTracker::irun
int irun
Definition: ValidationMisalignedTracker.h:61
ValidationMisalignedTracker::fakeresz0
float fakeresz0
Definition: ValidationMisalignedTracker.h:93
ValidationMisalignedTracker::fakerecpt
float fakerecpt
Definition: ValidationMisalignedTracker.h:90
ValidationMisalignedTracker::phizmu
float phizmu
Definition: ValidationMisalignedTracker.h:63
ValidationMisalignedTracker::countpartrec
int countpartrec[2]
Definition: ValidationMisalignedTracker.h:65
ValidationMisalignedTracker::associators
std::vector< std::string > associators
Definition: ValidationMisalignedTracker.h:98
ValidationMisalignedTracker::fakepLzmu
float fakepLzmu
Definition: ValidationMisalignedTracker.h:81
ValidationMisalignedTracker::fakerecnhit
int fakerecnhit
Definition: ValidationMisalignedTracker.h:91
ValidationMisalignedTracker::faketrackType
int faketrackType
Definition: ValidationMisalignedTracker.h:87
ValidationMisalignedTracker::mzmu
float mzmu
Definition: ValidationMisalignedTracker.h:63
ValidationMisalignedTracker::respt
float respt
Definition: ValidationMisalignedTracker.h:77
ValidationMisalignedTracker::fakerecd0
float fakerecd0
Definition: ValidationMisalignedTracker.h:90
ValidationMisalignedTracker::fakecottheta
float fakecottheta
Definition: ValidationMisalignedTracker.h:88
TrackingVertex.h
ValidationMisalignedTracker::fakeetazmu
float fakeetazmu
Definition: ValidationMisalignedTracker.h:79
ValidationMisalignedTracker::fakerecpz
float fakerecpz[2][2]
Definition: ValidationMisalignedTracker.h:85
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
ValidationMisalignedTracker::recptmu
float recptmu[2][2]
Definition: ValidationMisalignedTracker.h:69
ValidationMisalignedTracker::fakerecchiq
float fakerecchiq
Definition: ValidationMisalignedTracker.h:92
ValidationMisalignedTracker::fakeptzmu
float fakeptzmu
Definition: ValidationMisalignedTracker.h:79
ValidationMisalignedTracker::recyzmu
float recyzmu
Definition: ValidationMisalignedTracker.h:64
ValidationMisalignedTracker::rescottheta
float rescottheta
Definition: ValidationMisalignedTracker.h:77
ValidationMisalignedTracker::fakerecmzmu
float fakerecmzmu
Definition: ValidationMisalignedTracker.h:79
ValidationMisalignedTracker::fakecountrec
int fakecountrec
Definition: ValidationMisalignedTracker.h:83
ValidationMisalignedTracker::recmxptmu
float recmxptmu
Definition: ValidationMisalignedTracker.h:64
ValidationMisalignedTracker::fakeenezmu
float fakeenezmu
Definition: ValidationMisalignedTracker.h:81
ValidationMisalignedTracker::fakeptmu
float fakeptmu[2][2]
Definition: ValidationMisalignedTracker.h:84
ValidationMisalignedTracker::resphi
float resphi
Definition: ValidationMisalignedTracker.h:77
ValidationMisalignedTracker::recminptmu
float recminptmu
Definition: ValidationMisalignedTracker.h:64
ValidationMisalignedTracker::fakerecminptmu
float fakerecminptmu
Definition: ValidationMisalignedTracker.h:81
ValidationMisalignedTracker::fakerecpy
float fakerecpy[2][2]
Definition: ValidationMisalignedTracker.h:85
ValidationMisalignedTracker::tree_fake
TTree * tree_fake
Definition: ValidationMisalignedTracker.h:58
ValidationMisalignedTracker::recenezmu
float recenezmu
Definition: ValidationMisalignedTracker.h:64
ValidationMisalignedTracker::eta
float eta
Definition: ValidationMisalignedTracker.h:72
TrackFwd.h
ValidationMisalignedTracker::faked0
float faked0
Definition: ValidationMisalignedTracker.h:88
ValidationMisalignedTracker::pz
float pz[2][2]
Definition: ValidationMisalignedTracker.h:68
ValidationMisalignedTracker::fakerecene
float fakerecene[2][2]
Definition: ValidationMisalignedTracker.h:85
ValidationMisalignedTracker::fakerescottheta
float fakerescottheta
Definition: ValidationMisalignedTracker.h:93
ValidationMisalignedTracker::fakereseta
float fakereseta
Definition: ValidationMisalignedTracker.h:93
ValidationMisalignedTracker::trackType
int trackType
Definition: ValidationMisalignedTracker.h:71
ValidationMisalignedTracker::fakecount
int fakecount
Definition: ValidationMisalignedTracker.h:83
ValidationMisalignedTracker::phi
float phi
Definition: ValidationMisalignedTracker.h:72
ValidationMisalignedTracker::countpart
int countpart[2]
Definition: ValidationMisalignedTracker.h:65
ValidationMisalignedTracker::fakeeta
float fakeeta
Definition: ValidationMisalignedTracker.h:88
ValidationMisalignedTracker::fakeflag
int fakeflag
Definition: ValidationMisalignedTracker.h:83
IdealMagneticFieldRecord.h
ValidationMisalignedTracker::countrec
int countrec
Definition: ValidationMisalignedTracker.h:66
ValidationMisalignedTracker::simobject
std::string simobject
Definition: ValidationMisalignedTracker.h:51
ValidationMisalignedTracker::fakenAssoc
int fakenAssoc
Definition: ValidationMisalignedTracker.h:91
ValidationMisalignedTracker::fakerectheta
float fakerectheta
Definition: ValidationMisalignedTracker.h:90
ValidationMisalignedTracker::fakerecp
float fakerecp[2][2]
Definition: ValidationMisalignedTracker.h:85
ValidationMisalignedTracker::fakethetazmu
float fakethetazmu
Definition: ValidationMisalignedTracker.h:79
ValidationMisalignedTracker::fakephi
float fakephi
Definition: ValidationMisalignedTracker.h:88
ValidationMisalignedTracker::recnhit
int recnhit
Definition: ValidationMisalignedTracker.h:75
ValidationMisalignedTracker::flag
int flag
Definition: ValidationMisalignedTracker.h:66
ValidationMisalignedTracker::fakeyzmu
float fakeyzmu
Definition: ValidationMisalignedTracker.h:81
ValidationMisalignedTracker::fakep
float fakep[2][2]
Definition: ValidationMisalignedTracker.h:84
ValidationMisalignedTracker::fakereceta
float fakereceta
Definition: ValidationMisalignedTracker.h:90
ValidationMisalignedTracker::faketheta
float faketheta
Definition: ValidationMisalignedTracker.h:88
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ValidationMisalignedTracker::fakereccottheta
float fakereccottheta
Definition: ValidationMisalignedTracker.h:90
ValidationMisalignedTracker::fakerecpx
float fakerecpx[2][2]
Definition: ValidationMisalignedTracker.h:85
ValidationMisalignedTracker::label
std::vector< edm::InputTag > label
Definition: ValidationMisalignedTracker.h:100
TrackerDigiGeometryRecord.h
ValidationMisalignedTracker::selection_fake
bool selection_fake
Definition: ValidationMisalignedTracker.h:52
ValidationMisalignedTracker::receta
float receta
Definition: ValidationMisalignedTracker.h:74
ValidationMisalignedTracker::ene
float ene[2][2]
Definition: ValidationMisalignedTracker.h:68
ValidationMisalignedTracker::fakeflagrec
int fakeflagrec
Definition: ValidationMisalignedTracker.h:83
edm::ParameterSet
Definition: ParameterSet.h:47
ValidationMisalignedTracker::fakept
float fakept
Definition: ValidationMisalignedTracker.h:88
ValidationMisalignedTracker::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: ValidationMisalignedTracker.cc:225
ValidationMisalignedTracker::skip
bool skip
Definition: ValidationMisalignedTracker.h:55
ValidationMisalignedTracker::fakerecenezmu
float fakerecenezmu
Definition: ValidationMisalignedTracker.h:81
ValidationMisalignedTracker::rootfile_
std::string rootfile_
Definition: ValidationMisalignedTracker.h:53
ValidationMisalignedTracker::magFieldToken_
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
Definition: ValidationMisalignedTracker.h:49
ValidationMisalignedTracker::count
int count
Definition: ValidationMisalignedTracker.h:66
ValidationMisalignedTracker::ievt
int ievt
Definition: ValidationMisalignedTracker.h:61
ValidationMisalignedTracker::fakemzmu
float fakemzmu
Definition: ValidationMisalignedTracker.h:79
ValidationMisalignedTracker::recpt
float recpt
Definition: ValidationMisalignedTracker.h:74
ValidationMisalignedTracker::pLzmu
float pLzmu
Definition: ValidationMisalignedTracker.h:64
ValidationMisalignedTracker::fakecountsim
int fakecountsim
Definition: ValidationMisalignedTracker.h:83
ValidationMisalignedTracker::reseta
float reseta
Definition: ValidationMisalignedTracker.h:77
ValidationMisalignedTracker::recptzmu
float recptzmu
Definition: ValidationMisalignedTracker.h:63
ValidationMisalignedTracker::resz0
float resz0
Definition: ValidationMisalignedTracker.h:77
MagneticField.h
edm::EventSetup
Definition: EventSetup.h:57
ValidationMisalignedTracker::fakerecphizmu
float fakerecphizmu
Definition: ValidationMisalignedTracker.h:79
ValidationMisalignedTracker::endJob
void endJob() override
Definition: ValidationMisalignedTracker.cc:760
ValidationMisalignedTracker::label_tp_effic
edm::InputTag label_tp_effic
Definition: ValidationMisalignedTracker.h:101
ValidationMisalignedTracker::eff
float eff
Definition: ValidationMisalignedTracker.h:77
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord >
ValidationMisalignedTracker::fake
float fake
Definition: ValidationMisalignedTracker.h:93
ValidationMisalignedTracker::recene
float recene[2][2]
Definition: ValidationMisalignedTracker.h:69
ValidationMisalignedTracker::trackassociator
std::string trackassociator
Definition: ValidationMisalignedTracker.h:51
GeomDet.h
ValidationMisalignedTracker::fakerecpLzmu
float fakerecpLzmu
Definition: ValidationMisalignedTracker.h:81
ValidationMisalignedTracker::nhit
int nhit
Definition: ValidationMisalignedTracker.h:73
ValidationMisalignedTracker::geomToken_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
Definition: ValidationMisalignedTracker.h:48
ValidationMisalignedTracker::rectheta
float rectheta
Definition: ValidationMisalignedTracker.h:74
ValidationMisalignedTracker::recpy
float recpy[2][2]
Definition: ValidationMisalignedTracker.h:69
ValidationMisalignedTracker::resd0
float resd0
Definition: ValidationMisalignedTracker.h:77
ValidationMisalignedTracker::ptmu
float ptmu[2][2]
Definition: ValidationMisalignedTracker.h:68
ValidationMisalignedTracker::flagrec
int flagrec
Definition: ValidationMisalignedTracker.h:66
ValidationMisalignedTracker::d0
float d0
Definition: ValidationMisalignedTracker.h:72
ValidationMisalignedTracker::fakepz
float fakepz[2][2]
Definition: ValidationMisalignedTracker.h:84
ValidationMisalignedTracker::pt
float pt
Definition: ValidationMisalignedTracker.h:72
TrackingParticleFwd.h
Frameworkfwd.h
ESWatcher.h
ValidationMisalignedTracker::ptzmu
float ptzmu
Definition: ValidationMisalignedTracker.h:63
ValidationMisalignedTracker::ValidationMisalignedTracker
ValidationMisalignedTracker(const edm::ParameterSet &)
Definition: ValidationMisalignedTracker.cc:38
GlobalVector.h
ValidationMisalignedTracker::thetazmu
float thetazmu
Definition: ValidationMisalignedTracker.h:63
ValidationMisalignedTracker::recp
float recp[2][2]
Definition: ValidationMisalignedTracker.h:69
ValidationMisalignedTracker::fakeresd0
float fakeresd0
Definition: ValidationMisalignedTracker.h:93
ValidationMisalignedTracker::costheta
float costheta
Definition: ValidationMisalignedTracker.h:72
ValidationMisalignedTracker::etazmu
float etazmu
Definition: ValidationMisalignedTracker.h:63
ValidationMisalignedTracker::fakerecphi
float fakerecphi
Definition: ValidationMisalignedTracker.h:90
ValidationMisalignedTracker::ptused
std::vector< float > ptused
Definition: ValidationMisalignedTracker.h:105
ValidationMisalignedTracker::~ValidationMisalignedTracker
~ValidationMisalignedTracker() override
Definition: ValidationMisalignedTracker.cc:208
ValidationMisalignedTracker::fakecostheta
float fakecostheta
Definition: ValidationMisalignedTracker.h:88
ValidationMisalignedTracker::fractiontmp
float fractiontmp
Definition: ValidationMisalignedTracker.h:96
ValidationMisalignedTracker::recmzmu
float recmzmu
Definition: ValidationMisalignedTracker.h:63
ValidationMisalignedTracker::recetazmu
float recetazmu
Definition: ValidationMisalignedTracker.h:63
ValidationMisalignedTracker::selection_eff
bool selection_eff
Definition: ValidationMisalignedTracker.h:52
ValidationMisalignedTracker::eventCount_
int eventCount_
Definition: ValidationMisalignedTracker.h:56
ValidationMisalignedTracker::file_
TFile * file_
Definition: ValidationMisalignedTracker.h:59
ValidationMisalignedTracker::fakenhit
int fakenhit
Definition: ValidationMisalignedTracker.h:89
ValidationMisalignedTracker::fakeene
float fakeene[2][2]
Definition: ValidationMisalignedTracker.h:84
ValidationMisalignedTracker::fakez0
float fakez0
Definition: ValidationMisalignedTracker.h:88
ValidationMisalignedTracker
Definition: ValidationMisalignedTracker.h:37
ValidationMisalignedTracker::fakerecetazmu
float fakerecetazmu
Definition: ValidationMisalignedTracker.h:79
ValidationMisalignedTracker::magField
GlobalVector magField
Definition: ValidationMisalignedTracker.h:104
ValidationMisalignedTracker::fakerespt
float fakerespt
Definition: ValidationMisalignedTracker.h:93
ValidationMisalignedTracker::minptmu
float minptmu
Definition: ValidationMisalignedTracker.h:64
ValidationMisalignedTracker::recthetazmu
float recthetazmu
Definition: ValidationMisalignedTracker.h:63
ValidationMisalignedTracker::chi2tmp
double chi2tmp
Definition: ValidationMisalignedTracker.h:95
ValidationMisalignedTracker::recd0
float recd0
Definition: ValidationMisalignedTracker.h:74
edm::Event
Definition: Event.h:73
ValidationMisalignedTracker::recpx
float recpx[2][2]
Definition: ValidationMisalignedTracker.h:69
ValidationMisalignedTracker::recpz
float recpz[2][2]
Definition: ValidationMisalignedTracker.h:69
ValidationMisalignedTracker::fakephizmu
float fakephizmu
Definition: ValidationMisalignedTracker.h:79
ValidationMisalignedTracker::tree_eff
TTree * tree_eff
Definition: ValidationMisalignedTracker.h:57
edm::InputTag
Definition: InputTag.h:15
ValidationMisalignedTracker::recchiq
float recchiq
Definition: ValidationMisalignedTracker.h:76
ValidationMisalignedTracker::p
float p[2][2]
Definition: ValidationMisalignedTracker.h:68
ValidationMisalignedTracker::fakerecyzmu
float fakerecyzmu
Definition: ValidationMisalignedTracker.h:81
ValidationMisalignedTracker::recphi
float recphi
Definition: ValidationMisalignedTracker.h:74
ValidationMisalignedTracker::fakerecptmu
float fakerecptmu[2][2]
Definition: ValidationMisalignedTracker.h:85
ValidationMisalignedTracker::recpLzmu
float recpLzmu
Definition: ValidationMisalignedTracker.h:64
ValidationMisalignedTracker::px
float px[2][2]
Definition: ValidationMisalignedTracker.h:68
ValidationMisalignedTracker::fakepy
float fakepy[2][2]
Definition: ValidationMisalignedTracker.h:84
ValidationMisalignedTracker::py
float py[2][2]
Definition: ValidationMisalignedTracker.h:68