CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
43 
44 // system include files
45 #include <iostream>
46 #include <memory>
47 #include <string>
48 #include <sstream>
49 #include <vector>
50 #include <map>
51 
52 //
53 // class decleration
54 //
55 
57 
58  public:
59  explicit LhcTrackAnalyzer(const edm::ParameterSet&);
61 
62  private:
63  virtual void beginJob() ;
64  virtual void analyze(const edm::Event&, const edm::EventSetup&);
65  virtual void endJob() ;
66 
67  // ----------member data ---------------------------
70  bool debug_;
71 
72  // Output
74  TFile* rootFile_;
75  TTree* rootTree_;
76 
77  // Root-Tuple variables :
78  //=======================
79  void SetVarToZero();
80 
81  static const int nMaxtracks_ = 3000;
82  int nTracks_;
83  int run_;
84  int event_;
85  double pt_[nMaxtracks_];
86  double eta_[nMaxtracks_];
87  double phi_[nMaxtracks_];
88  double chi2_[nMaxtracks_];
92  double dz_[nMaxtracks_];
93  double dxy_[nMaxtracks_];
94  double xPCA_[nMaxtracks_];
95  double yPCA_[nMaxtracks_];
96  double zPCA_[nMaxtracks_];
101  bool goodbx_;
102  bool goodvtx_;
103 
104 };
105 
106 #endif
int validhits_[nMaxtracks_][7]
int isHighPurity_[nMaxtracks_]
double dz_[nMaxtracks_]
double zPCA_[nMaxtracks_]
edm::InputTag TrackCollectionTag_
int trkQuality_[nMaxtracks_]
double qoverp_[nMaxtracks_]
virtual void endJob()
double eta_[nMaxtracks_]
virtual void beginJob()
std::string filename_
double phi_[nMaxtracks_]
double chi2ndof_[nMaxtracks_]
double yPCA_[nMaxtracks_]
double dxy_[nMaxtracks_]
int trkAlgo_[nMaxtracks_]
edm::InputTag PVtxCollectionTag_
virtual void analyze(const edm::Event &, const edm::EventSetup &)
double xPCA_[nMaxtracks_]
static const int nMaxtracks_
double chi2_[nMaxtracks_]
int charge_[nMaxtracks_]
LhcTrackAnalyzer(const edm::ParameterSet &)
double pt_[nMaxtracks_]