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 
4 //#include "DataFormats/Common/interface/EDProduct.h"
12 
13 #include "TFile.h"
14 #include "TH1D.h"
15 #include "TH1I.h"
16 #include "TH2D.h"
17 #include "TTree.h"
18 
20 
33 
34 //FOR CLUSTERINFO
38 //#include "DataFormats/SiStripCluster/interface/SiStripClusterInfo.h"
40 
46 
47 
48 
49 // system include files
50 #include <iostream>
51 #include <memory>
52 #include <string>
53 #include <sstream>
54 #include <vector>
55 #include <map>
56 
57 //
58 // class decleration
59 //
60 
62 
63  public:
64  explicit LhcTrackAnalyzer(const edm::ParameterSet&);
66 
67  private:
68  virtual void beginJob() ;
69  virtual void analyze(const edm::Event&, const edm::EventSetup&);
70  virtual void endJob() ;
71 
72  // ----------member data ---------------------------
75  bool debug_;
76 
77  // Output
78  std::string filename_;
79  TFile* rootFile_;
80  TTree* rootTree_;
81 
82  // Root-Tuple variables :
83  //=======================
84  void SetVarToZero();
85 
86  static const int nMaxtracks_ = 3000;
87  int nTracks_;
88  int run_;
89  int event_;
90  double pt_[nMaxtracks_];
91  double eta_[nMaxtracks_];
92  double phi_[nMaxtracks_];
93  double chi2_[nMaxtracks_];
97  double dz_[nMaxtracks_];
98  double dxy_[nMaxtracks_];
99  double xPCA_[nMaxtracks_];
106  bool goodbx_;
107  bool goodvtx_;
108 
109 };
110 
111 #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_]