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
int validhits_[nMaxtracks_][7]
int isHighPurity_[nMaxtracks_]
double dz_[nMaxtracks_]
double zPCA_[nMaxtracks_]
edm::InputTag TrackCollectionTag_
int trkQuality_[nMaxtracks_]
double qoverp_[nMaxtracks_]
double eta_[nMaxtracks_]
void endJob() override
std::string filename_
double phi_[nMaxtracks_]
double chi2ndof_[nMaxtracks_]
double yPCA_[nMaxtracks_]
double dxy_[nMaxtracks_]
~LhcTrackAnalyzer() override
int trkAlgo_[nMaxtracks_]
edm::InputTag PVtxCollectionTag_
double xPCA_[nMaxtracks_]
static const int nMaxtracks_
double chi2_[nMaxtracks_]
int charge_[nMaxtracks_]
LhcTrackAnalyzer(const edm::ParameterSet &)
double pt_[nMaxtracks_]
void beginJob() override
void analyze(const edm::Event &, const edm::EventSetup &) override