test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HitEff.h
Go to the documentation of this file.
7 
10 
29 
30 
31 #include "TROOT.h"
32 #include "TFile.h"
33 #include "TH1F.h"
34 #include "TH2F.h"
35 #include <vector>
36 #include "TTree.h"
37 #include <iostream>
38 #include <cstdlib>
39 #include <cstdio>
40 #include "Riostream.h"
41 #include "TRandom2.h"
42 
43 class TrackerTopology;
44 
45 class HitEff : public edm::EDAnalyzer {
46  public:
47  explicit HitEff(const edm::ParameterSet& conf);
48  double checkConsistency(const StripClusterParameterEstimator::LocalValues& parameters, double xx, double xerr);
49  bool isDoubleSided(unsigned int iidd, const TrackerTopology* tTopo) const;
50  bool check2DPartner(unsigned int iidd, const std::vector<TrajectoryMeasurement>& traj);
51  virtual ~HitEff();
52  unsigned int checkLayer(unsigned int iidd, const TrackerTopology* tTopo);
53 
54  private:
55  virtual void beginJob();
56  virtual void endJob();
57  virtual void analyze(const edm::Event& e, const edm::EventSetup& c);
58 
59  // ----------member data ---------------------------
60 
66 
68 
69  TTree* traj;
71 
72  unsigned int layers;
73  bool DEBUG;
74  unsigned int whatlayer;
75 
76  // Tree declarations
77  // Trajectory positions for modules included in the study
81  float ResX, ResXSig;
82  unsigned int ModIsBad; unsigned int Id; unsigned int SiStripQualBad; bool withinAcceptance;
84  float p, pT, chi2;
85  unsigned int trajHitValid, run, event, bunchx;
86  float timeDT, timeDTErr;
87  int timeDTDOF;
88  float timeECAL, dedx;
89  int dedxNOM;
90  int tquality;
91  int istep;
92 };
93 
94 
95 //#endif
float TrajGlbZ
Definition: HitEff.h:78
bool check2DPartner(unsigned int iidd, const std::vector< TrajectoryMeasurement > &traj)
Definition: HitEff.cc:748
float ClusterLocErrX
Definition: HitEff.h:80
float ClusterLocErrY
Definition: HitEff.h:80
float TrajGlbY
Definition: HitEff.h:78
float TrajLocX
Definition: HitEff.h:79
float ResXSig
Definition: HitEff.h:81
Definition: HitEff.h:45
virtual void analyze(const edm::Event &e, const edm::EventSetup &c)
Definition: HitEff.cc:139
float chi2
Definition: HitEff.h:84
HitEff(const edm::ParameterSet &conf)
Definition: HitEff.cc:74
float ClusterStoN
Definition: HitEff.h:80
float TrajLocErrX
Definition: HitEff.h:79
bool DEBUG
Definition: HitEff.h:73
const edm::EDGetTokenT< MeasurementTrackerEvent > trackerEvent_token_
Definition: HitEff.h:65
unsigned int bunchx
Definition: HitEff.h:85
float p
Definition: HitEff.h:84
float timeECAL
Definition: HitEff.h:88
bool isDoubleSided(unsigned int iidd, const TrackerTopology *tTopo) const
Definition: HitEff.cc:716
float timeDTErr
Definition: HitEff.h:86
int nHits
Definition: HitEff.h:83
unsigned int Id
Definition: HitEff.h:82
int timeDTDOF
Definition: HitEff.h:87
virtual ~HitEff()
Definition: HitEff.cc:87
const edm::EDGetTokenT< DetIdCollection > digis_token_
Definition: HitEff.h:64
virtual void beginJob()
Definition: HitEff.cc:89
unsigned int trajHitValid
Definition: HitEff.h:85
unsigned int ModIsBad
Definition: HitEff.h:82
int istep
Definition: HitEff.h:91
float TrajGlbX
Definition: HitEff.h:78
bool withinAcceptance
Definition: HitEff.h:82
unsigned int run
Definition: HitEff.h:85
float ClusterLocX
Definition: HitEff.h:80
int events
Definition: HitEff.h:70
float TrajLocAngleX
Definition: HitEff.h:79
int dedxNOM
Definition: HitEff.h:89
unsigned int event
Definition: HitEff.h:85
double checkConsistency(const StripClusterParameterEstimator::LocalValues &parameters, double xx, double xerr)
Definition: HitEff.cc:709
unsigned int whatlayer
Definition: HitEff.h:74
unsigned int checkLayer(unsigned int iidd, const TrackerTopology *tTopo)
Definition: HitEff.cc:764
float timeDT
Definition: HitEff.h:86
unsigned int layers
Definition: HitEff.h:72
float pT
Definition: HitEff.h:84
float ResX
Definition: HitEff.h:81
const edm::EDGetTokenT< reco::TrackCollection > combinatorialTracks_token_
Definition: HitEff.h:61
std::pair< LocalPoint, LocalError > LocalValues
virtual void endJob()
Definition: HitEff.cc:701
unsigned int SiStripQualBad
Definition: HitEff.h:82
float TrajLocErrY
Definition: HitEff.h:79
float TrajLocAngleY
Definition: HitEff.h:79
float dedx
Definition: HitEff.h:88
float ClusterLocY
Definition: HitEff.h:80
const edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusters_token_
Definition: HitEff.h:63
TTree * traj
Definition: HitEff.h:69
const edm::EDGetTokenT< std::vector< Trajectory > > trajectories_token_
Definition: HitEff.h:62
edm::ParameterSet conf_
Definition: HitEff.h:67
int EventTrackCKF
Definition: HitEff.h:70
int nLostHits
Definition: HitEff.h:83
float TrajLocY
Definition: HitEff.h:79
int tquality
Definition: HitEff.h:90