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_;
68 
74 
76 
77  TTree* traj;
79 
80  unsigned int layers;
81  bool DEBUG;
82  unsigned int whatlayer;
83 
84  // Tree declarations
85  // Trajectory positions for modules included in the study
89  float ResX, ResXSig;
90  unsigned int ModIsBad; unsigned int Id; unsigned int SiStripQualBad; bool withinAcceptance;
92  float p, pT, chi2;
93  unsigned int trajHitValid, run, event, bunchx;
94  float timeDT, timeDTErr;
95  int timeDTDOF;
96  float timeECAL, dedx;
97  int dedxNOM;
98  int tquality;
99  int istep;
100  float instLumi, PU;
101  float commonMode;
102 };
103 
104 
105 //#endif
float TrajGlbZ
Definition: HitEff.h:86
bool check2DPartner(unsigned int iidd, const std::vector< TrajectoryMeasurement > &traj)
Definition: HitEff.cc:797
float ClusterLocErrX
Definition: HitEff.h:88
float ClusterLocErrY
Definition: HitEff.h:88
float TrajGlbY
Definition: HitEff.h:86
float TrajLocX
Definition: HitEff.h:87
float ResXSig
Definition: HitEff.h:89
Definition: HitEff.h:47
virtual void analyze(const edm::Event &e, const edm::EventSetup &c)
Definition: HitEff.cc:148
float chi2
Definition: HitEff.h:92
float instLumi
Definition: HitEff.h:100
std::pair< LocalPoint, LocalError > LocalValues
HitEff(const edm::ParameterSet &conf)
Definition: HitEff.cc:74
float ClusterStoN
Definition: HitEff.h:88
float TrajLocErrX
Definition: HitEff.h:87
float commonMode
Definition: HitEff.h:101
bool DEBUG
Definition: HitEff.h:81
const edm::EDGetTokenT< MeasurementTrackerEvent > trackerEvent_token_
Definition: HitEff.h:73
unsigned int bunchx
Definition: HitEff.h:93
float p
Definition: HitEff.h:92
float timeECAL
Definition: HitEff.h:96
bool isDoubleSided(unsigned int iidd, const TrackerTopology *tTopo) const
Definition: HitEff.cc:765
float timeDTErr
Definition: HitEff.h:94
float PU
Definition: HitEff.h:100
int nHits
Definition: HitEff.h:91
unsigned int Id
Definition: HitEff.h:90
int timeDTDOF
Definition: HitEff.h:95
virtual ~HitEff()
Definition: HitEff.cc:91
const edm::EDGetTokenT< DetIdCollection > digis_token_
Definition: HitEff.h:72
virtual void beginJob()
Definition: HitEff.cc:93
unsigned int trajHitValid
Definition: HitEff.h:93
unsigned int ModIsBad
Definition: HitEff.h:90
int istep
Definition: HitEff.h:99
float TrajGlbX
Definition: HitEff.h:86
bool withinAcceptance
Definition: HitEff.h:90
unsigned int run
Definition: HitEff.h:93
float ClusterLocX
Definition: HitEff.h:88
int events
Definition: HitEff.h:78
float TrajLocAngleX
Definition: HitEff.h:87
int dedxNOM
Definition: HitEff.h:97
unsigned int event
Definition: HitEff.h:93
double checkConsistency(const StripClusterParameterEstimator::LocalValues &parameters, double xx, double xerr)
Definition: HitEff.cc:758
unsigned int whatlayer
Definition: HitEff.h:82
unsigned int checkLayer(unsigned int iidd, const TrackerTopology *tTopo)
Definition: HitEff.cc:813
float timeDT
Definition: HitEff.h:94
unsigned int layers
Definition: HitEff.h:80
float pT
Definition: HitEff.h:92
float ResX
Definition: HitEff.h:89
const edm::EDGetTokenT< reco::TrackCollection > combinatorialTracks_token_
Definition: HitEff.h:69
bool addLumi_
Definition: HitEff.h:66
virtual void endJob()
Definition: HitEff.cc:750
unsigned int SiStripQualBad
Definition: HitEff.h:90
bool addCommonMode_
Definition: HitEff.h:67
float TrajLocErrY
Definition: HitEff.h:87
float TrajLocAngleY
Definition: HitEff.h:87
float dedx
Definition: HitEff.h:96
float ClusterLocY
Definition: HitEff.h:88
const edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusters_token_
Definition: HitEff.h:71
const edm::EDGetTokenT< LumiScalersCollection > scalerToken_
Definition: HitEff.h:63
TTree * traj
Definition: HitEff.h:77
const edm::EDGetTokenT< std::vector< Trajectory > > trajectories_token_
Definition: HitEff.h:70
const edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > commonModeToken_
Definition: HitEff.h:64
edm::ParameterSet conf_
Definition: HitEff.h:75
int EventTrackCKF
Definition: HitEff.h:78
int nLostHits
Definition: HitEff.h:91
float TrajLocY
Definition: HitEff.h:87
int tquality
Definition: HitEff.h:98