CMS 3D CMS Logo

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::EDAnalyzer {
52 public:
53  explicit HitEff(const edm::ParameterSet& conf);
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
SiStripClusterInfo
Definition: SiStripClusterInfo.h:21
Chi2MeasurementEstimator.h
LumiScalers.h
BeamSpotPI::parameters
parameters
Definition: BeamSpotPayloadInspectorHelper.h:30
Handle.h
HitEff::ModIsBad
unsigned int ModIsBad
Definition: HitEff.h:123
HitEff::TrajLocErrY
float TrajLocErrY
Definition: HitEff.h:120
HitEff::TrajLocAngleX
float TrajLocAngleX
Definition: HitEff.h:119
HitEff::siStripQualityToken_
const edm::ESGetToken< SiStripQuality, SiStripQualityRcd > siStripQualityToken_
Definition: HitEff.h:92
HitEff::scalerToken_
const edm::EDGetTokenT< LumiScalersCollection > scalerToken_
Definition: HitEff.h:67
SiStripClusterInfo.h
TrackerGeometry.h
HitEff::HitEff
HitEff(const edm::ParameterSet &conf)
Definition: HitEff.cc:70
ESHandle.h
TkStripCPERecord.h
HitEff::withinAcceptance
bool withinAcceptance
Definition: HitEff.h:126
HitEff::TrajLocErrX
float TrajLocErrX
Definition: HitEff.h:120
HitEff::pT
float pT
Definition: HitEff.h:129
HitEff::run
unsigned int run
Definition: HitEff.h:130
HitEff::event
unsigned int event
Definition: HitEff.h:130
HitEff::checkConsistency
double checkConsistency(const StripClusterParameterEstimator::LocalValues &parameters, double xx, double xerr)
Definition: HitEff.cc:868
edm::EDGetTokenT< LumiScalersCollection >
HitEff::ClusterLocX
float ClusterLocX
Definition: HitEff.h:121
HitEff::TrajGlbZ
float TrajGlbZ
Definition: HitEff.h:118
TrackerTopology
Definition: TrackerTopology.h:16
HitEff::whatlayer
unsigned int whatlayer
Definition: HitEff.h:106
SiStripRawDigi.h
MeasurementError.h
HitEff
Definition: HitEff.h:51
HitEff::highPurity
bool highPurity
Definition: HitEff.h:127
KFTrajectorySmoother.h
HitEff::SiStripQualBad
unsigned int SiStripQualBad
Definition: HitEff.h:125
EDAnalyzer.h
CkfComponentsRecord.h
HitEff::ResXSig
float ResXSig
Definition: HitEff.h:122
hltPixelTracks_cff.chi2
chi2
Definition: hltPixelTracks_cff.py:25
HitEff::chi2MeasurementEstimatorToken_
const edm::ESGetToken< Chi2MeasurementEstimatorBase, TrackingComponentsRecord > chi2MeasurementEstimatorToken_
Definition: HitEff.h:95
HitEff::addLumi_
bool addLumi_
Definition: HitEff.h:72
HitEff::checkLayer
unsigned int checkLayer(unsigned int iidd, const TrackerTopology *tTopo)
Definition: HitEff.cc:925
edm::EDAnalyzer
Definition: EDAnalyzer.h:28
HitEff::cpeToken_
const edm::ESGetToken< StripClusterParameterEstimator, TkStripCPERecord > cpeToken_
Definition: HitEff.h:91
HitEff::ClusterLocErrX
float ClusterLocErrX
Definition: HitEff.h:121
HitEff::compSettings
int compSettings
Definition: HitEff.h:103
HitEff::PU
float PU
Definition: HitEff.h:132
HitEff::traj
TTree * traj
Definition: HitEff.h:100
TrackingRecHit.h
HitEff::EventTrackCKF
int EventTrackCKF
Definition: HitEff.h:101
HitEff::cutOnTracks_
bool cutOnTracks_
Definition: HitEff.h:74
HitEff::TrajLocY
float TrajLocY
Definition: HitEff.h:119
Service.h
HitEff::~HitEff
~HitEff() override
Definition: HitEff.cc:105
HitEff::ClusterLocY
float ClusterLocY
Definition: HitEff.h:121
HitEff::siStripClusterInfo_
SiStripClusterInfo siStripClusterInfo_
Definition: HitEff.h:70
HitEff::conf_
edm::ParameterSet conf_
Definition: HitEff.h:98
HitEff::useLastMeas_
bool useLastMeas_
Definition: HitEff.h:77
HitEff::DEBUG
bool DEBUG
Definition: HitEff.h:105
HitEff::trackMultiplicityCut_
unsigned int trackMultiplicityCut_
Definition: HitEff.h:75
HitEff::isDoubleSided
bool isDoubleSided(unsigned int iidd, const TrackerTopology *tTopo) const
Definition: HitEff.cc:875
HitEff::commonModeToken_
const edm::EDGetTokenT< edm::DetSetVector< SiStripRawDigi > > commonModeToken_
Definition: HitEff.h:68
HitEff::events
int events
Definition: HitEff.h:101
HitEff::layers
unsigned int layers
Definition: HitEff.h:104
TrajTrackAssociation.h
MeasurementVector.h
HitEff::bunchx
unsigned int bunchx
Definition: HitEff.h:130
HitEff::geomToken_
const edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > geomToken_
Definition: HitEff.h:90
TFileService.h
HitEff::endJob
void endJob() override
Definition: HitEff.cc:860
KFUpdator.h
edm::ParameterSet
Definition: ParameterSet.h:47
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
SiStripCluster.h
Event.h
PropagatorWithMaterial.h
HitEff::useAllHitsFromTracksWithMissingHits_
bool useAllHitsFromTracksWithMissingHits_
Definition: HitEff.h:78
HitEff::beginJob
void beginJob() override
Definition: HitEff.cc:107
HitEff::topoToken_
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > topoToken_
Definition: HitEff.h:89
HitEff::trajTrackAsso_token_
const edm::EDGetTokenT< TrajTrackAssociationCollection > trajTrackAsso_token_
Definition: HitEff.h:82
HitEff::clusters_token_
const edm::EDGetTokenT< edmNew::DetSetVector< SiStripCluster > > clusters_token_
Definition: HitEff.h:83
HitEff::propagatorToken_
const edm::ESGetToken< Propagator, TrackingComponentsRecord > propagatorToken_
Definition: HitEff.h:96
MagneticField.h
edm::EventSetup
Definition: EventSetup.h:58
HitEff::check2DPartner
bool check2DPartner(unsigned int iidd, const std::vector< TrajectoryMeasurement > &traj)
Definition: HitEff.cc:907
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd >
HitEff::ClusterLocErrY
float ClusterLocErrY
Definition: HitEff.h:121
CosmicTrajectoryBuilder.h
HitEff::digis_token_
const edm::EDGetTokenT< DetIdCollection > digis_token_
Definition: HitEff.h:84
HitEff::tquality
int tquality
Definition: HitEff.h:131
HitEff::TrajGlbY
float TrajGlbY
Definition: HitEff.h:118
HitEff::trajectories_token_
const edm::EDGetTokenT< std::vector< Trajectory > > trajectories_token_
Definition: HitEff.h:81
HitEff::trackerEvent_token_
const edm::EDGetTokenT< MeasurementTrackerEvent > trackerEvent_token_
Definition: HitEff.h:85
HitEff::TrajLocX
float TrajLocX
Definition: HitEff.h:119
HitEff::measurementTkToken_
const edm::ESGetToken< MeasurementTracker, CkfComponentsRecord > measurementTkToken_
Definition: HitEff.h:94
HitEff::commonMode
float commonMode
Definition: HitEff.h:133
HitEff::useFirstMeas_
bool useFirstMeas_
Definition: HitEff.h:76
HitEff::TrajGlbX
float TrajGlbX
Definition: HitEff.h:118
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:166
StripClusterParameterEstimator::LocalValues
std::pair< LocalPoint, LocalError > LocalValues
Definition: StripClusterParameterEstimator.h:27
ParameterSet.h
HitEff::TrajLocAngleY
float TrajLocAngleY
Definition: HitEff.h:119
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
HitEff::Id
unsigned int Id
Definition: HitEff.h:124
edm::Event
Definition: Event.h:73
HitEff::instLumi
float instLumi
Definition: HitEff.h:132
HitEff::magFieldToken_
const edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magFieldToken_
Definition: HitEff.h:93
GlobalPoint.h
HitEff::trajHitValid
unsigned int trajHitValid
Definition: HitEff.h:130
HitEff::ResX
float ResX
Definition: HitEff.h:122
DetIdCollection.h
geometryCSVtoXML.xx
xx
Definition: geometryCSVtoXML.py:19
HitEff::nHits
int nHits
Definition: HitEff.h:128
HitEff::combinatorialTracks_token_
const edm::EDGetTokenT< reco::TrackCollection > combinatorialTracks_token_
Definition: HitEff.h:80
HitEff::addCommonMode_
bool addCommonMode_
Definition: HitEff.h:73
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
HitEff::ClusterStoN
float ClusterStoN
Definition: HitEff.h:121