CMS 3D CMS Logo

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