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; unsigned int Id; unsigned int SiStripQualBad; bool withinAcceptance;
109  int nHits;
110  float pT;
111  unsigned int trajHitValid, run, event, bunchx;
112  int tquality;
113  float instLumi, PU;
114  float commonMode;
115 };
116 
117 
118 //#endif
float TrajGlbZ
Definition: HitEff.h:102
bool check2DPartner(unsigned int iidd, const std::vector< TrajectoryMeasurement > &traj)
Definition: HitEff.cc:853
float ClusterLocErrX
Definition: HitEff.h:105
float ClusterLocErrY
Definition: HitEff.h:105
void endJob() override
Definition: HitEff.cc:806
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:113
std::pair< LocalPoint, LocalError > LocalValues
HitEff(const edm::ParameterSet &conf)
Definition: HitEff.cc:74
float ClusterStoN
Definition: HitEff.h:105
float TrajLocErrX
Definition: HitEff.h:104
float commonMode
Definition: HitEff.h:114
bool DEBUG
Definition: HitEff.h:89
const edm::EDGetTokenT< MeasurementTrackerEvent > trackerEvent_token_
Definition: HitEff.h:80
unsigned int bunchx
Definition: HitEff.h:111
bool isDoubleSided(unsigned int iidd, const TrackerTopology *tTopo) const
Definition: HitEff.cc:821
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: HitEff.cc:161
bool highPurity
Definition: HitEff.h:108
float PU
Definition: HitEff.h:113
int nHits
Definition: HitEff.h:109
unsigned int Id
Definition: HitEff.h:107
const edm::EDGetTokenT< DetIdCollection > digis_token_
Definition: HitEff.h:79
unsigned int trajHitValid
Definition: HitEff.h:111
unsigned int ModIsBad
Definition: HitEff.h:107
float TrajGlbX
Definition: HitEff.h:102
const edm::EDGetTokenT< TrajTrackAssociationCollection > trajTrackAsso_token_
Definition: HitEff.h:77
bool withinAcceptance
Definition: HitEff.h:107
unsigned int run
Definition: HitEff.h:111
float ClusterLocX
Definition: HitEff.h:105
~HitEff() override
Definition: HitEff.cc:98
int events
Definition: HitEff.h:85
float TrajLocAngleX
Definition: HitEff.h:103
unsigned int event
Definition: HitEff.h:111
double checkConsistency(const StripClusterParameterEstimator::LocalValues &parameters, double xx, double xerr)
Definition: HitEff.cc:814
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:869
unsigned int layers
Definition: HitEff.h:88
float pT
Definition: HitEff.h:110
float ResX
Definition: HitEff.h:106
const edm::EDGetTokenT< reco::TrackCollection > combinatorialTracks_token_
Definition: HitEff.h:75
void beginJob() override
Definition: HitEff.cc:100
bool addLumi_
Definition: HitEff.h:67
unsigned int SiStripQualBad
Definition: HitEff.h:107
bool addCommonMode_
Definition: HitEff.h:68
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< edmNew::DetSetVector< SiStripCluster > > clusters_token_
Definition: HitEff.h:78
const edm::EDGetTokenT< LumiScalersCollection > scalerToken_
Definition: HitEff.h:64
TTree * traj
Definition: HitEff.h:84
const edm::EDGetTokenT< std::vector< Trajectory > > trajectories_token_
Definition: HitEff.h:76
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:112