CMS 3D CMS Logo

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