CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HitEff.h
Go to the documentation of this file.
7 
10 
32 
36 
37 #include "TROOT.h"
38 #include "TFile.h"
39 #include "TH1F.h"
40 #include "TH2F.h"
41 #include <vector>
42 #include "TTree.h"
43 #include <iostream>
44 #include <cstdlib>
45 #include <cstdio>
46 #include "Riostream.h"
47 #include "TRandom2.h"
48 
49 class TrackerTopology;
50 
51 class HitEff : public edm::one::EDAnalyzer<> {
52 public:
53  explicit HitEff(const edm::ParameterSet& conf);
54  double checkConsistency(const StripClusterParameterEstimator::LocalValues& parameters, double xx, double xerr);
55  bool isDoubleSided(unsigned int iidd, const TrackerTopology* tTopo) const;
56  bool check2DPartner(unsigned int iidd, const std::vector<TrajectoryMeasurement>& traj);
57  ~HitEff() override;
58  unsigned int checkLayer(unsigned int iidd, const TrackerTopology* tTopo);
59 
60 private:
61  void beginJob() override;
62  void endJob() override;
63  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
64 
65  // ----------member data ---------------------------
66 
69 
71 
72  bool addLumi_;
75  unsigned int trackMultiplicityCut_;
79 
86 
87  // ES tokens
88 
97 
99 
100  TTree* traj;
102 
104  unsigned int layers;
105  bool DEBUG;
106  unsigned int whatlayer;
107 
108 // Tree declarations
109 // Trajectory positions for modules included in the study
110 #ifdef ExtendedCALIBTree
111  float timeDT, timeDTErr;
112  int timeDTDOF;
113  float timeECAL, dedx;
114  int dedxNOM;
115  int nLostHits;
116  float p, chi2;
117 #endif
122  float ResX, ResXSig;
123  unsigned int ModIsBad;
124  unsigned int Id;
125  unsigned int SiStripQualBad;
128  int nHits;
129  float pT;
130  unsigned int trajHitValid, run, event, bunchx;
131  int tquality;
132  float instLumi, PU;
133  float commonMode;
134 };
135 
136 //#endif
std::pair< LocalPoint, LocalError > LocalValues
float TrajGlbZ
Definition: HitEff.h:118
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
Definition: HitEff.h:93
bool check2DPartner(unsigned int iidd, const std::vector< TrajectoryMeasurement > &traj)
Definition: HitEff.cc:906
float ClusterLocErrX
Definition: HitEff.h:121
const edm::EventSetup & c
float ClusterLocErrY
Definition: HitEff.h:121
void endJob() override
Definition: HitEff.cc:859
float TrajGlbY
Definition: HitEff.h:118
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
Definition: HitEff.h:89
float TrajLocX
Definition: HitEff.h:119
float ResXSig
Definition: HitEff.h:122
bool useAllHitsFromTracksWithMissingHits_
Definition: HitEff.h:78
Definition: HitEff.h:51
int compSettings
Definition: HitEff.h:103
float instLumi
Definition: HitEff.h:132
const edm::EDGetTokenT< std::vector< Trajectory > > trajectories_token_
Definition: HitEff.h:81
HitEff(const edm::ParameterSet &conf)
Definition: HitEff.cc:69
SiStripClusterInfo siStripClusterInfo_
Definition: HitEff.h:70
float ClusterStoN
Definition: HitEff.h:121
float TrajLocErrX
Definition: HitEff.h:120
float commonMode
Definition: HitEff.h:133
const edm::ESGetToken< SiStripQuality, SiStripQualityRcd > siStripQualityToken_
Definition: HitEff.h:92
bool DEBUG
Definition: HitEff.h:105
const edm::EDGetTokenT< MeasurementTrackerEvent > trackerEvent_token_
Definition: HitEff.h:85
unsigned int bunchx
Definition: HitEff.h:130
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
Definition: HitEff.h:90
bool isDoubleSided(unsigned int iidd, const TrackerTopology *tTopo) const
Definition: HitEff.cc:874
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: HitEff.cc:165
bool highPurity
Definition: HitEff.h:127
const edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusters_token_
Definition: HitEff.h:83
float PU
Definition: HitEff.h:132
int nHits
Definition: HitEff.h:128
unsigned int Id
Definition: HitEff.h:124
const edm::EDGetTokenT< reco::TrackCollection > combinatorialTracks_token_
Definition: HitEff.h:80
const edm::ESGetToken< Propagator, TrackingComponentsRecord > propagatorToken_
Definition: HitEff.h:96
const edm::EDGetTokenT< DetIdCollection > digis_token_
Definition: HitEff.h:84
unsigned int trajHitValid
Definition: HitEff.h:130
unsigned int ModIsBad
Definition: HitEff.h:123
float TrajGlbX
Definition: HitEff.h:118
const edm::ESGetToken< MeasurementTracker, CkfComponentsRecord > measurementTkToken_
Definition: HitEff.h:94
bool withinAcceptance
Definition: HitEff.h:126
unsigned int run
Definition: HitEff.h:130
float ClusterLocX
Definition: HitEff.h:121
~HitEff() override
Definition: HitEff.cc:104
int events
Definition: HitEff.h:101
float TrajLocAngleX
Definition: HitEff.h:119
const edm::ESGetToken< Chi2MeasurementEstimatorBase, TrackingComponentsRecord > chi2MeasurementEstimatorToken_
Definition: HitEff.h:95
unsigned int event
Definition: HitEff.h:130
double checkConsistency(const StripClusterParameterEstimator::LocalValues &parameters, double xx, double xerr)
Definition: HitEff.cc:867
bool useLastMeas_
Definition: HitEff.h:77
unsigned int whatlayer
Definition: HitEff.h:106
const edm::ESGetToken< StripClusterParameterEstimator, TkStripCPERecord > cpeToken_
Definition: HitEff.h:91
unsigned int trackMultiplicityCut_
Definition: HitEff.h:75
unsigned int checkLayer(unsigned int iidd, const TrackerTopology *tTopo)
Definition: HitEff.cc:924
unsigned int layers
Definition: HitEff.h:104
float pT
Definition: HitEff.h:129
float ResX
Definition: HitEff.h:122
void beginJob() override
Definition: HitEff.cc:106
bool addLumi_
Definition: HitEff.h:72
unsigned int SiStripQualBad
Definition: HitEff.h:125
bool addCommonMode_
Definition: HitEff.h:73
const edm::EDGetTokenT< TrajTrackAssociationCollection > trajTrackAsso_token_
Definition: HitEff.h:82
float TrajLocErrY
Definition: HitEff.h:120
float TrajLocAngleY
Definition: HitEff.h:119
bool cutOnTracks_
Definition: HitEff.h:74
bool useFirstMeas_
Definition: HitEff.h:76
float ClusterLocY
Definition: HitEff.h:121
const edm::EDGetTokenT< LumiScalersCollection > scalerToken_
Definition: HitEff.h:67
TTree * traj
Definition: HitEff.h:100
const edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > commonModeToken_
Definition: HitEff.h:68
edm::ParameterSet conf_
Definition: HitEff.h:98
int EventTrackCKF
Definition: HitEff.h:101
float TrajLocY
Definition: HitEff.h:119
int tquality
Definition: HitEff.h:131