test
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 
29 
30 //FOR CLUSTERINFO
34 //#include "DataFormats/SiStripCluster/interface/SiStripClusterInfo.h"
36 
42 
43 
44 
45 // system include files
46 #include <iostream>
47 #include <memory>
48 #include <string>
49 #include <sstream>
50 #include <vector>
51 #include <map>
52 
53 //
54 // class decleration
55 //
56 
58 
59  public:
60  explicit LhcTrackAnalyzer(const edm::ParameterSet&);
62 
63  private:
64  virtual void beginJob() ;
65  virtual void analyze(const edm::Event&, const edm::EventSetup&);
66  virtual void endJob() ;
67 
68  // ----------member data ---------------------------
71  bool debug_;
72 
73  // Output
75  TFile* rootFile_;
76  TTree* rootTree_;
77 
78  // Root-Tuple variables :
79  //=======================
80  void SetVarToZero();
81 
82  static const int nMaxtracks_ = 3000;
83  int nTracks_;
84  int run_;
85  int event_;
86  double pt_[nMaxtracks_];
87  double eta_[nMaxtracks_];
88  double phi_[nMaxtracks_];
89  double chi2_[nMaxtracks_];
93  double dz_[nMaxtracks_];
94  double dxy_[nMaxtracks_];
95  double xPCA_[nMaxtracks_];
96  double yPCA_[nMaxtracks_];
97  double zPCA_[nMaxtracks_];
102  bool goodbx_;
103  bool goodvtx_;
104 
105 };
106 
107 #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_]