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