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