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