CMS 3D CMS Logo

HitEff.h
Go to the documentation of this file.
7 
10 
30 
34 
35 #include "TROOT.h"
36 #include "TFile.h"
37 #include "TH1F.h"
38 #include "TH2F.h"
39 #include <vector>
40 #include "TTree.h"
41 #include <iostream>
42 #include <cstdlib>
43 #include <cstdio>
44 #include "Riostream.h"
45 #include "TRandom2.h"
46 
47 class TrackerTopology;
48 
49 class HitEff : public edm::EDAnalyzer {
50 public:
51  explicit HitEff(const edm::ParameterSet& conf);
53  bool isDoubleSided(unsigned int iidd, const TrackerTopology* tTopo) const;
54  bool check2DPartner(unsigned int iidd, const std::vector<TrajectoryMeasurement>& traj);
55  ~HitEff() override;
56  unsigned int checkLayer(unsigned int iidd, const TrackerTopology* tTopo);
57 
58 private:
59  void beginJob() override;
60  void endJob() override;
61  void analyze(const edm::Event& e, const edm::EventSetup& c) override;
62 
63  // ----------member data ---------------------------
64 
67 
69 
70  bool addLumi_;
73  unsigned int trackMultiplicityCut_;
77 
84 
86 
87  TTree* traj;
89 
91  unsigned int layers;
92  bool DEBUG;
93  unsigned int whatlayer;
94 
95 // Tree declarations
96 // Trajectory positions for modules included in the study
97 #ifdef ExtendedCALIBTree
98  float timeDT, timeDTErr;
99  int timeDTDOF;
100  float timeECAL, dedx;
101  int dedxNOM;
102  int nLostHits;
103  float p, chi2;
104 #endif
109  float ResX, ResXSig;
110  unsigned int ModIsBad;
111  unsigned int Id;
112  unsigned int SiStripQualBad;
115  int nHits;
116  float pT;
117  unsigned int trajHitValid, run, event, bunchx;
118  int tquality;
119  float instLumi, PU;
120  float commonMode;
121 };
122 
123 //#endif
SiStripClusterInfo
Definition: SiStripClusterInfo.h:21
Chi2MeasurementEstimator.h
LumiScalers.h
Handle.h
HitEff::ModIsBad
unsigned int ModIsBad
Definition: HitEff.h:110
HitEff::TrajLocErrY
float TrajLocErrY
Definition: HitEff.h:107
HitEff::TrajLocAngleX
float TrajLocAngleX
Definition: HitEff.h:106
HitEff::scalerToken_
const edm::EDGetTokenT< LumiScalersCollection > scalerToken_
Definition: HitEff.h:65
SiStripClusterInfo.h
TrackerGeometry.h
HitEff::HitEff
HitEff(const edm::ParameterSet &conf)
Definition: HitEff.cc:72
ESHandle.h
HitEff::withinAcceptance
bool withinAcceptance
Definition: HitEff.h:113
HitEff::TrajLocErrX
float TrajLocErrX
Definition: HitEff.h:107
HitEff::pT
float pT
Definition: HitEff.h:116
HitEff::run
unsigned int run
Definition: HitEff.h:117
HitEff::event
unsigned int event
Definition: HitEff.h:117
HitEff::checkConsistency
double checkConsistency(const StripClusterParameterEstimator::LocalValues &parameters, double xx, double xerr)
Definition: HitEff.cc:887
edm::EDGetTokenT< LumiScalersCollection >
HitEff::ClusterLocX
float ClusterLocX
Definition: HitEff.h:108
HitEff::TrajGlbZ
float TrajGlbZ
Definition: HitEff.h:105
TrackerTopology
Definition: TrackerTopology.h:16
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
HitEff::whatlayer
unsigned int whatlayer
Definition: HitEff.h:93
SiStripRawDigi.h
MeasurementError.h
HitEff
Definition: HitEff.h:49
HitEff::highPurity
bool highPurity
Definition: HitEff.h:114
KFTrajectorySmoother.h
HitEff::SiStripQualBad
unsigned int SiStripQualBad
Definition: HitEff.h:112
EDAnalyzer.h
HitEff::ResXSig
float ResXSig
Definition: HitEff.h:109
hltPixelTracks_cff.chi2
chi2
Definition: hltPixelTracks_cff.py:25
HitEff::addLumi_
bool addLumi_
Definition: HitEff.h:70
HitEff::checkLayer
unsigned int checkLayer(unsigned int iidd, const TrackerTopology *tTopo)
Definition: HitEff.cc:944
edm::EDAnalyzer
Definition: EDAnalyzer.h:29
parameters
parameters
Definition: BeamSpot_PayloadInspector.cc:14
HitEff::ClusterLocErrX
float ClusterLocErrX
Definition: HitEff.h:108
HitEff::compSettings
int compSettings
Definition: HitEff.h:90
HitEff::PU
float PU
Definition: HitEff.h:119
HitEff::traj
TTree * traj
Definition: HitEff.h:87
TrackingRecHit.h
HitEff::EventTrackCKF
int EventTrackCKF
Definition: HitEff.h:88
HitEff::cutOnTracks_
bool cutOnTracks_
Definition: HitEff.h:72
HitEff::TrajLocY
float TrajLocY
Definition: HitEff.h:106
Service.h
HitEff::~HitEff
~HitEff() override
Definition: HitEff.cc:99
HitEff::ClusterLocY
float ClusterLocY
Definition: HitEff.h:108
HitEff::siStripClusterInfo_
SiStripClusterInfo siStripClusterInfo_
Definition: HitEff.h:68
HitEff::conf_
edm::ParameterSet conf_
Definition: HitEff.h:85
HitEff::useLastMeas_
bool useLastMeas_
Definition: HitEff.h:75
HitEff::DEBUG
bool DEBUG
Definition: HitEff.h:92
HitEff::trackMultiplicityCut_
unsigned int trackMultiplicityCut_
Definition: HitEff.h:73
HitEff::isDoubleSided
bool isDoubleSided(unsigned int iidd, const TrackerTopology *tTopo) const
Definition: HitEff.cc:894
HitEff::commonModeToken_
const edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > commonModeToken_
Definition: HitEff.h:66
HitEff::events
int events
Definition: HitEff.h:88
HitEff::layers
unsigned int layers
Definition: HitEff.h:91
TrajTrackAssociation.h
MeasurementVector.h
HitEff::bunchx
unsigned int bunchx
Definition: HitEff.h:117
TFileService.h
HitEff::endJob
void endJob() override
Definition: HitEff.cc:879
KFUpdator.h
edm::ParameterSet
Definition: ParameterSet.h:36
SiStripCluster.h
Event.h
PropagatorWithMaterial.h
HitEff::useAllHitsFromTracksWithMissingHits_
bool useAllHitsFromTracksWithMissingHits_
Definition: HitEff.h:76
HitEff::beginJob
void beginJob() override
Definition: HitEff.cc:101
HitEff::trajTrackAsso_token_
const edm::EDGetTokenT< TrajTrackAssociationCollection > trajTrackAsso_token_
Definition: HitEff.h:80
HitEff::clusters_token_
const edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusters_token_
Definition: HitEff.h:81
MagneticField.h
edm::EventSetup
Definition: EventSetup.h:57
HltBtagPostValidation_cff.c
c
Definition: HltBtagPostValidation_cff.py:31
HitEff::check2DPartner
bool check2DPartner(unsigned int iidd, const std::vector< TrajectoryMeasurement > &traj)
Definition: HitEff.cc:926
HitEff::ClusterLocErrY
float ClusterLocErrY
Definition: HitEff.h:108
CosmicTrajectoryBuilder.h
HitEff::digis_token_
const edm::EDGetTokenT< DetIdCollection > digis_token_
Definition: HitEff.h:82
HitEff::tquality
int tquality
Definition: HitEff.h:118
HitEff::TrajGlbY
float TrajGlbY
Definition: HitEff.h:105
HitEff::trajectories_token_
const edm::EDGetTokenT< std::vector< Trajectory > > trajectories_token_
Definition: HitEff.h:79
HitEff::trackerEvent_token_
const edm::EDGetTokenT< MeasurementTrackerEvent > trackerEvent_token_
Definition: HitEff.h:83
HitEff::TrajLocX
float TrajLocX
Definition: HitEff.h:106
HitEff::commonMode
float commonMode
Definition: HitEff.h:120
HitEff::useFirstMeas_
bool useFirstMeas_
Definition: HitEff.h:74
HitEff::TrajGlbX
float TrajGlbX
Definition: HitEff.h:105
EventSetup.h
StripClusterParameterEstimator.h
TrajectoryStateTransform.h
KFTrajectoryFitter.h
TransientTrackingRecHitBuilder.h
HitEff::analyze
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Definition: HitEff.cc:160
StripClusterParameterEstimator::LocalValues
std::pair< LocalPoint, LocalError > LocalValues
Definition: StripClusterParameterEstimator.h:27
ParameterSet.h
HitEff::TrajLocAngleY
float TrajLocAngleY
Definition: HitEff.h:106
HitEff::Id
unsigned int Id
Definition: HitEff.h:111
edm::Event
Definition: Event.h:73
HitEff::instLumi
float instLumi
Definition: HitEff.h:119
GlobalPoint.h
HitEff::trajHitValid
unsigned int trajHitValid
Definition: HitEff.h:117
HitEff::ResX
float ResX
Definition: HitEff.h:109
DetIdCollection.h
geometryCSVtoXML.xx
xx
Definition: geometryCSVtoXML.py:19
HitEff::nHits
int nHits
Definition: HitEff.h:115
HitEff::combinatorialTracks_token_
const edm::EDGetTokenT< reco::TrackCollection > combinatorialTracks_token_
Definition: HitEff.h:78
HitEff::addCommonMode_
bool addCommonMode_
Definition: HitEff.h:71
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
HitEff::ClusterStoN
float ClusterStoN
Definition: HitEff.h:108