CMS 3D CMS Logo

HitEff.h
Go to the documentation of this file.
1 // system includes
2 #include <vector>
3 #include <iostream>
4 #include <cstdlib>
5 #include <cstdio>
6 
7 // user includes
42 
43 // ROOT includes
44 #include "TRandom2.h"
45 #include "TROOT.h"
46 #include "TFile.h"
47 #include "TH1F.h"
48 #include "TH2F.h"
49 #include "TTree.h"
50 
51 class TrackerTopology;
52 
53 class HitEff : public edm::one::EDAnalyzer<edm::one::SharedResources> {
54 public:
55  explicit HitEff(const edm::ParameterSet& conf);
56  ~HitEff() override = default;
57 
58 private:
59  void beginJob() override;
60  void endJob() override;
61  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
62 
63  // ----------member data ---------------------------
64 
68 
70 
71  bool addLumi_;
74  unsigned int trackMultiplicityCut_;
79 
87 
88  // ES tokens
89 
98 
100 
101  TTree* traj;
103 
105  unsigned int layers;
106  bool DEBUG;
107  unsigned int whatlayer;
108 
109  std::vector<unsigned int> hitRecoveryCounters;
110  std::vector<unsigned int> hitTotalCounters;
111 // Tree declarations
112 // Trajectory positions for modules included in the study
113 #ifdef ExtendedCALIBTree
114  float timeDT, timeDTErr;
115  int timeDTDOF;
116  float timeECAL, dedx;
117  int dedxNOM;
118  int nLostHits;
119  float p, chi2;
120 #endif
122  std::vector<int> missHitPerLayer;
127  float ResX, ResXSig;
128  unsigned int ModIsBad;
129  unsigned int Id;
130  unsigned int SiStripQualBad;
133  int nHits;
134  float pT;
135  unsigned int trajHitValid, run, event, bunchx;
136  int tquality;
137  float instLumi, PU;
138  float commonMode;
139 };
140 
141 //#endif
float TrajGlbZ
Definition: HitEff.h:123
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
Definition: HitEff.h:94
float ClusterLocErrX
Definition: HitEff.h:126
std::vector< unsigned int > hitRecoveryCounters
Definition: HitEff.h:109
float ClusterLocErrY
Definition: HitEff.h:126
const edm::EDGetTokenT< OnlineLuminosityRecord > metaDataToken_
Definition: HitEff.h:66
void endJob() override
Definition: HitEff.cc:1180
float TrajGlbY
Definition: HitEff.h:123
std::vector< unsigned int > hitTotalCounters
Definition: HitEff.h:110
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
Definition: HitEff.h:90
float TrajLocX
Definition: HitEff.h:124
float ResXSig
Definition: HitEff.h:127
bool useAllHitsFromTracksWithMissingHits_
Definition: HitEff.h:77
Definition: HitEff.h:53
int compSettings
Definition: HitEff.h:104
bool doMissingHitsRecovery_
Definition: HitEff.h:78
float instLumi
Definition: HitEff.h:137
const edm::EDGetTokenT< std::vector< Trajectory > > trajectories_token_
Definition: HitEff.h:81
const edm::EDGetTokenT< DetIdVector > digisVec_token_
Definition: HitEff.h:85
HitEff(const edm::ParameterSet &conf)
Definition: HitEff.cc:74
~HitEff() override=default
SiStripClusterInfo siStripClusterInfo_
Definition: HitEff.h:69
float ClusterStoN
Definition: HitEff.h:126
float TrajLocErrX
Definition: HitEff.h:125
float commonMode
Definition: HitEff.h:138
const edm::EDGetTokenT< DetIdCollection > digisCol_token_
Definition: HitEff.h:84
const edm::ESGetToken< SiStripQuality, SiStripQualityRcd > siStripQualityToken_
Definition: HitEff.h:93
bool DEBUG
Definition: HitEff.h:106
const edm::EDGetTokenT< MeasurementTrackerEvent > trackerEvent_token_
Definition: HitEff.h:86
unsigned int bunchx
Definition: HitEff.h:135
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
Definition: HitEff.h:91
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: HitEff.cc:177
bool highPurity
Definition: HitEff.h:132
const edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusters_token_
Definition: HitEff.h:83
float PU
Definition: HitEff.h:137
int nHits
Definition: HitEff.h:133
unsigned int Id
Definition: HitEff.h:129
const edm::EDGetTokenT< reco::TrackCollection > combinatorialTracks_token_
Definition: HitEff.h:80
const edm::ESGetToken< Propagator, TrackingComponentsRecord > propagatorToken_
Definition: HitEff.h:97
unsigned int trajHitValid
Definition: HitEff.h:135
unsigned int ModIsBad
Definition: HitEff.h:128
float TrajGlbX
Definition: HitEff.h:123
const edm::ESGetToken< MeasurementTracker, CkfComponentsRecord > measurementTkToken_
Definition: HitEff.h:95
bool withinAcceptance
Definition: HitEff.h:131
unsigned int run
Definition: HitEff.h:135
float ClusterLocX
Definition: HitEff.h:126
int events
Definition: HitEff.h:102
float TrajLocAngleX
Definition: HitEff.h:124
const edm::ESGetToken< Chi2MeasurementEstimatorBase, TrackingComponentsRecord > chi2MeasurementEstimatorToken_
Definition: HitEff.h:96
int totalNbHits
Definition: HitEff.h:121
unsigned int event
Definition: HitEff.h:135
bool useLastMeas_
Definition: HitEff.h:76
unsigned int whatlayer
Definition: HitEff.h:107
const edm::ESGetToken< StripClusterParameterEstimator, TkStripCPERecord > cpeToken_
Definition: HitEff.h:92
unsigned int trackMultiplicityCut_
Definition: HitEff.h:74
unsigned int layers
Definition: HitEff.h:105
float pT
Definition: HitEff.h:134
float ResX
Definition: HitEff.h:127
void beginJob() override
Definition: HitEff.cc:115
bool addLumi_
Definition: HitEff.h:71
unsigned int SiStripQualBad
Definition: HitEff.h:130
bool addCommonMode_
Definition: HitEff.h:72
const edm::EDGetTokenT< TrajTrackAssociationCollection > trajTrackAsso_token_
Definition: HitEff.h:82
float TrajLocErrY
Definition: HitEff.h:125
float TrajLocAngleY
Definition: HitEff.h:124
bool cutOnTracks_
Definition: HitEff.h:73
bool useFirstMeas_
Definition: HitEff.h:75
float ClusterLocY
Definition: HitEff.h:126
const edm::EDGetTokenT< LumiScalersCollection > scalerToken_
Definition: HitEff.h:65
TTree * traj
Definition: HitEff.h:101
const edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > commonModeToken_
Definition: HitEff.h:67
edm::ParameterSet conf_
Definition: HitEff.h:99
int EventTrackCKF
Definition: HitEff.h:102
float TrajLocY
Definition: HitEff.h:124
int tquality
Definition: HitEff.h:136
std::vector< int > missHitPerLayer
Definition: HitEff.h:122