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