CMS 3D CMS Logo

HitEff.h
Go to the documentation of this file.
7 
10 
30 
33 
34 #include "TROOT.h"
35 #include "TFile.h"
36 #include "TH1F.h"
37 #include "TH2F.h"
38 #include <vector>
39 #include "TTree.h"
40 #include <iostream>
41 #include <cstdlib>
42 #include <cstdio>
43 #include "Riostream.h"
44 #include "TRandom2.h"
45 
46 class TrackerTopology;
47 
48 class HitEff : public edm::EDAnalyzer {
49 public:
50  explicit HitEff(const edm::ParameterSet& conf);
52  bool isDoubleSided(unsigned int iidd, const TrackerTopology* tTopo) const;
53  bool check2DPartner(unsigned int iidd, const std::vector<TrajectoryMeasurement>& traj);
54  ~HitEff() override;
55  unsigned int checkLayer(unsigned int iidd, const TrackerTopology* tTopo);
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 
66 
67  bool addLumi_;
70  unsigned int trackMultiplicityCut_;
74 
81 
83 
84  TTree* traj;
86 
88  unsigned int layers;
89  bool DEBUG;
90  unsigned int whatlayer;
91 
92 // Tree declarations
93 // Trajectory positions for modules included in the study
94 #ifdef ExtendedCALIBTree
95  float timeDT, timeDTErr;
96  int timeDTDOF;
97  float timeECAL, dedx;
98  int dedxNOM;
99  int nLostHits;
100  float p, chi2;
101 #endif
106  float ResX, ResXSig;
107  unsigned int ModIsBad;
108  unsigned int Id;
109  unsigned int SiStripQualBad;
112  int nHits;
113  float pT;
114  unsigned int trajHitValid, run, event, bunchx;
115  int tquality;
116  float instLumi, PU;
117  float commonMode;
118 };
119 
120 //#endif
std::pair< LocalPoint, LocalError > LocalValues
float TrajGlbZ
Definition: HitEff.h:102
bool check2DPartner(unsigned int iidd, const std::vector< TrajectoryMeasurement > &traj)
Definition: HitEff.cc:925
float ClusterLocErrX
Definition: HitEff.h:105
float ClusterLocErrY
Definition: HitEff.h:105
void endJob() override
Definition: HitEff.cc:878
float TrajGlbY
Definition: HitEff.h:102
float TrajLocX
Definition: HitEff.h:103
float ResXSig
Definition: HitEff.h:106
bool useAllHitsFromTracksWithMissingHits_
Definition: HitEff.h:73
Definition: HitEff.h:48
int compSettings
Definition: HitEff.h:87
float instLumi
Definition: HitEff.h:116
const edm::EDGetTokenT< std::vector< Trajectory > > trajectories_token_
Definition: HitEff.h:76
HitEff(const edm::ParameterSet &conf)
Definition: HitEff.cc:73
float ClusterStoN
Definition: HitEff.h:105
float TrajLocErrX
Definition: HitEff.h:104
float commonMode
Definition: HitEff.h:117
bool DEBUG
Definition: HitEff.h:89
const edm::EDGetTokenT< MeasurementTrackerEvent > trackerEvent_token_
Definition: HitEff.h:80
unsigned int bunchx
Definition: HitEff.h:114
bool isDoubleSided(unsigned int iidd, const TrackerTopology *tTopo) const
Definition: HitEff.cc:893
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: HitEff.cc:160
bool highPurity
Definition: HitEff.h:111
const edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusters_token_
Definition: HitEff.h:78
float PU
Definition: HitEff.h:116
int nHits
Definition: HitEff.h:112
unsigned int Id
Definition: HitEff.h:108
const edm::EDGetTokenT< reco::TrackCollection > combinatorialTracks_token_
Definition: HitEff.h:75
const edm::EDGetTokenT< DetIdCollection > digis_token_
Definition: HitEff.h:79
unsigned int trajHitValid
Definition: HitEff.h:114
unsigned int ModIsBad
Definition: HitEff.h:107
float TrajGlbX
Definition: HitEff.h:102
bool withinAcceptance
Definition: HitEff.h:110
unsigned int run
Definition: HitEff.h:114
float ClusterLocX
Definition: HitEff.h:105
~HitEff() override
Definition: HitEff.cc:99
int events
Definition: HitEff.h:85
float TrajLocAngleX
Definition: HitEff.h:103
unsigned int event
Definition: HitEff.h:114
double checkConsistency(const StripClusterParameterEstimator::LocalValues &parameters, double xx, double xerr)
Definition: HitEff.cc:886
bool useLastMeas_
Definition: HitEff.h:72
unsigned int whatlayer
Definition: HitEff.h:90
unsigned int trackMultiplicityCut_
Definition: HitEff.h:70
unsigned int checkLayer(unsigned int iidd, const TrackerTopology *tTopo)
Definition: HitEff.cc:943
unsigned int layers
Definition: HitEff.h:88
float pT
Definition: HitEff.h:113
float ResX
Definition: HitEff.h:106
void beginJob() override
Definition: HitEff.cc:101
bool addLumi_
Definition: HitEff.h:67
unsigned int SiStripQualBad
Definition: HitEff.h:109
bool addCommonMode_
Definition: HitEff.h:68
const edm::EDGetTokenT< TrajTrackAssociationCollection > trajTrackAsso_token_
Definition: HitEff.h:77
float TrajLocErrY
Definition: HitEff.h:104
float TrajLocAngleY
Definition: HitEff.h:103
bool cutOnTracks_
Definition: HitEff.h:69
bool useFirstMeas_
Definition: HitEff.h:71
float ClusterLocY
Definition: HitEff.h:105
const edm::EDGetTokenT< LumiScalersCollection > scalerToken_
Definition: HitEff.h:64
TTree * traj
Definition: HitEff.h:84
const edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > commonModeToken_
Definition: HitEff.h:65
edm::ParameterSet conf_
Definition: HitEff.h:82
int EventTrackCKF
Definition: HitEff.h:85
float TrajLocY
Definition: HitEff.h:103
int tquality
Definition: HitEff.h:115