CMS 3D CMS Logo

LhcTrackAnalyzer.h
Go to the documentation of this file.
1 #ifndef LhcTrackAnalyzer_h
2 #define LhcTrackAnalyzer_h
3 
10 
11 #include "TFile.h"
12 #include "TH1D.h"
13 #include "TH1I.h"
14 #include "TH2D.h"
15 #include "TTree.h"
16 
18 
27 
28 //FOR CLUSTERINFO
32 //#include "DataFormats/SiStripCluster/interface/SiStripClusterInfo.h"
34 
40 
41 // system include files
42 #include <iostream>
43 #include <memory>
44 #include <string>
45 #include <sstream>
46 #include <vector>
47 #include <map>
48 
49 //
50 // class decleration
51 //
52 
54 public:
55  explicit LhcTrackAnalyzer(const edm::ParameterSet&);
56  ~LhcTrackAnalyzer() override;
57 
58 private:
59  void beginJob() override;
60  void analyze(const edm::Event&, const edm::EventSetup&) override;
61  void endJob() override;
62 
63  // ----------member data ---------------------------
66  bool debug_;
67 
68  // Output
70  TFile* rootFile_;
71  TTree* rootTree_;
72 
73  // Root-Tuple variables :
74  //=======================
75  void SetVarToZero();
76 
77  static const int nMaxtracks_ = 3000;
78  int nTracks_;
79  int run_;
80  int event_;
81  double pt_[nMaxtracks_];
82  double eta_[nMaxtracks_];
83  double phi_[nMaxtracks_];
84  double chi2_[nMaxtracks_];
88  double dz_[nMaxtracks_];
89  double dxy_[nMaxtracks_];
90  double xPCA_[nMaxtracks_];
91  double yPCA_[nMaxtracks_];
92  double zPCA_[nMaxtracks_];
97  bool goodbx_;
98  bool goodvtx_;
99 };
100 
101 #endif
LhcTrackAnalyzer::debug_
bool debug_
Definition: LhcTrackAnalyzer.h:66
LhcTrackAnalyzer
Definition: LhcTrackAnalyzer.h:53
LhcTrackAnalyzer::qoverp_
double qoverp_[nMaxtracks_]
Definition: LhcTrackAnalyzer.h:87
EDAnalyzer.h
PixelSubdetector.h
TrackerGeometry.h
TrackCandidateCollection.h
LhcTrackAnalyzer::isHighPurity_
int isHighPurity_[nMaxtracks_]
Definition: LhcTrackAnalyzer.h:95
LhcTrackAnalyzer::charge_
int charge_[nMaxtracks_]
Definition: LhcTrackAnalyzer.h:86
LhcTrackAnalyzer::zPCA_
double zPCA_[nMaxtracks_]
Definition: LhcTrackAnalyzer.h:92
LhcTrackAnalyzer::eta_
double eta_[nMaxtracks_]
Definition: LhcTrackAnalyzer.h:82
LhcTrackAnalyzer::goodvtx_
bool goodvtx_
Definition: LhcTrackAnalyzer.h:98
LhcTrackAnalyzer::trkQuality_
int trkQuality_[nMaxtracks_]
Definition: LhcTrackAnalyzer.h:94
LhcTrackAnalyzer::rootFile_
TFile * rootFile_
Definition: LhcTrackAnalyzer.h:70
LhcTrackAnalyzer::chi2_
double chi2_[nMaxtracks_]
Definition: LhcTrackAnalyzer.h:84
edm::one::EDAnalyzer
Definition: EDAnalyzer.h:30
LhcTrackAnalyzer::~LhcTrackAnalyzer
~LhcTrackAnalyzer() override
Definition: LhcTrackAnalyzer.cc:72
LhcTrackAnalyzer::beginJob
void beginJob() override
Definition: LhcTrackAnalyzer.cc:212
LhcTrackAnalyzer::goodbx_
bool goodbx_
Definition: LhcTrackAnalyzer.h:97
MakerMacros.h
TrackingRecHit.h
LhcTrackAnalyzer::yPCA_
double yPCA_[nMaxtracks_]
Definition: LhcTrackAnalyzer.h:91
Track.h
LhcTrackAnalyzer::endJob
void endJob() override
Definition: LhcTrackAnalyzer.cc:243
TrackFwd.h
LhcTrackAnalyzer::nTracks_
int nTracks_
Definition: LhcTrackAnalyzer.h:78
LhcTrackAnalyzer::chi2ndof_
double chi2ndof_[nMaxtracks_]
Definition: LhcTrackAnalyzer.h:85
LhcTrackAnalyzer::filename_
std::string filename_
Definition: LhcTrackAnalyzer.h:69
SiStripDigi.h
LhcTrackAnalyzer::phi_
double phi_[nMaxtracks_]
Definition: LhcTrackAnalyzer.h:83
LhcTrackAnalyzer::nMaxtracks_
static const int nMaxtracks_
Definition: LhcTrackAnalyzer.h:77
LhcTrackAnalyzer::dz_
double dz_[nMaxtracks_]
Definition: LhcTrackAnalyzer.h:88
LhcTrackAnalyzer::TrackCollectionTag_
edm::InputTag TrackCollectionTag_
Definition: LhcTrackAnalyzer.h:64
TrackerDigiGeometryRecord.h
edm::ParameterSet
Definition: ParameterSet.h:47
SiStripCluster.h
Event.h
LhcTrackAnalyzer::LhcTrackAnalyzer
LhcTrackAnalyzer(const edm::ParameterSet &)
Definition: LhcTrackAnalyzer.cc:61
LhcTrackAnalyzer::dxy_
double dxy_[nMaxtracks_]
Definition: LhcTrackAnalyzer.h:89
LhcTrackAnalyzer::run_
int run_
Definition: LhcTrackAnalyzer.h:79
LhcTrackAnalyzer::analyze
void analyze(const edm::Event &, const edm::EventSetup &) override
Definition: LhcTrackAnalyzer.cc:82
edm::EventSetup
Definition: EventSetup.h:58
DetSetVector.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
LhcTrackAnalyzer::validhits_
int validhits_[nMaxtracks_][7]
Definition: LhcTrackAnalyzer.h:96
GeomDet.h
LhcTrackAnalyzer::rootTree_
TTree * rootTree_
Definition: LhcTrackAnalyzer.h:71
LhcTrackAnalyzer::xPCA_
double xPCA_[nMaxtracks_]
Definition: LhcTrackAnalyzer.h:90
LhcTrackAnalyzer::trkAlgo_
int trkAlgo_[nMaxtracks_]
Definition: LhcTrackAnalyzer.h:93
DetId.h
Frameworkfwd.h
LocalPoint.h
EventSetup.h
LhcTrackAnalyzer::pt_
double pt_[nMaxtracks_]
Definition: LhcTrackAnalyzer.h:81
ParameterSet.h
TrackCandidate.h
LhcTrackAnalyzer::PVtxCollectionTag_
edm::InputTag PVtxCollectionTag_
Definition: LhcTrackAnalyzer.h:65
edm::Event
Definition: Event.h:73
SiStripRecHit2D.h
GlobalPoint.h
StripSubdetector.h
edm::InputTag
Definition: InputTag.h:15
LhcTrackAnalyzer::event_
int event_
Definition: LhcTrackAnalyzer.h:80
LhcTrackAnalyzer::SetVarToZero
void SetVarToZero()
Definition: LhcTrackAnalyzer.cc:250