Main Page
Namespaces
Classes
Package Documentation
Alignment
OfflineValidation
interface
TrackerValidationVariables.h
Go to the documentation of this file.
1
#ifndef TrackerTrackerValidationVariables_h
2
#define TrackerTrackerValidationVariables_h
3
4
// system include files
5
#include <vector>
6
7
#include "
FWCore/Utilities/interface/EDGetToken.h
"
8
#include "
TrackingTools/PatternTools/interface/TrajTrackAssociation.h
"
9
10
class
MagneticField
;
11
class
Trajectory
;
12
13
namespace
edm
{
14
class
ConsumesCollector;
15
class
Event
;
16
class
EventSetup
;
17
class
ParameterSet
;
18
}
// namespace edm
19
20
class
TrackerValidationVariables
{
21
public
:
22
struct
AVHitStruct
{
23
AVHitStruct
()
24
: resX(-999.),
25
resY(-999.),
26
resErrX(-999.),
27
resErrY(-999.),
28
resXprime(-999.),
29
resXatTrkY(-999.),
30
resXprimeErr(-999.),
31
resYprime(-999.),
32
resYprimeErr(-999.),
33
phi(-999.),
34
eta
(-999.),
35
inside(
false
),
36
localX
(-999.),
37
localY
(-999.),
38
localXnorm(-999.),
39
localYnorm(-999.),
40
localAlpha(-999.),
41
localBeta(-999.),
42
rawDetId(0),
43
isOnEdgePixel(
false
),
44
isOtherBadPixel(
false
) {}
45
float
resX
;
46
float
resY
;
47
float
resErrX
;
48
float
resErrY
;
49
float
resXprime
;
50
float
resXatTrkY
;
51
float
resXprimeErr
;
52
float
resYprime
;
53
float
resYprimeErr
;
54
float
phi
;
55
float
eta
;
56
bool
inside
;
57
float
localX
;
58
float
localY
;
59
float
localXnorm
;
60
float
localYnorm
;
61
float
localAlpha
;
62
float
localBeta
;
63
uint32_t
rawDetId
;
64
bool
isOnEdgePixel
;
65
bool
isOtherBadPixel
;
66
};
67
68
struct
AVTrackStruct
{
69
AVTrackStruct
()
70
:
p
(0.),
71
pt
(0.),
72
ptError(0.),
73
px
(0.),
74
py
(0.),
75
pz(0.),
76
eta
(0.),
77
phi(0.),
78
kappa
(0.),
79
chi2
(0.),
80
chi2Prob(0.),
81
normchi2(0),
82
d0
(-999.),
83
dz
(-999.),
84
charge
(-999),
85
numberOfValidHits
(0),
86
numberOfLostHits
(0){};
87
float
p
;
88
float
pt
;
89
float
ptError
;
90
float
px
;
91
float
py
;
92
float
pz
;
93
float
eta
;
94
float
phi
;
95
float
kappa
;
96
float
chi2
;
97
float
chi2Prob
;
98
float
normchi2
;
99
float
d0
;
100
float
dz
;
101
int
charge
;
102
int
numberOfValidHits
;
103
int
numberOfLostHits
;
104
std::vector<AVHitStruct>
hits
;
105
};
106
107
TrackerValidationVariables
();
108
TrackerValidationVariables
(
const
edm::ParameterSet
&
config
,
edm::ConsumesCollector
&& iC);
109
~
TrackerValidationVariables
();
110
111
void
fillHitQuantities(
const
Trajectory
* trajectory, std::vector<AVHitStruct>& v_avhitout);
112
void
fillHitQuantities(
reco::Track
const
&
track
, std::vector<AVHitStruct>& v_avhitout);
113
void
fillTrackQuantities(
const
edm::Event
&,
const
edm::EventSetup
&, std::vector<AVTrackStruct>& v_avtrackout);
114
// all Tracks are passed to the trackFilter first, and only processed if it returns true.
115
void
fillTrackQuantities(
const
edm::Event
&
event
,
116
const
edm::EventSetup
& eventSetup,
117
std::function
<
bool
(
const
reco::Track
&)>
trackFilter
,
118
std::vector<AVTrackStruct>& v_avtrackout);
119
120
private
:
121
edm::EDGetTokenT<std::vector<Trajectory>
>
trajCollectionToken_
;
122
edm::EDGetTokenT<std::vector<reco::Track>
>
tracksToken_
;
123
};
124
125
#endif
TrackCollections2monitor_cff.numberOfLostHits
numberOfLostHits
Definition:
TrackCollections2monitor_cff.py:249
TrackerValidationVariables::AVTrackStruct::kappa
float kappa
Definition:
TrackerValidationVariables.h:95
TrackerValidationVariables::AVTrackStruct::chi2Prob
float chi2Prob
Definition:
TrackerValidationVariables.h:97
EDGetToken.h
hltPixelTracks_cff.chi2
chi2
Definition:
hltPixelTracks_cff.py:25
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
TrackerValidationVariables::AVHitStruct::resErrX
float resErrX
Definition:
TrackerValidationVariables.h:47
ParameterSet
Definition:
Functions.h:16
funct::false
false
Definition:
Factorize.h:34
TrackerValidationVariables::AVHitStruct::localX
float localX
Definition:
TrackerValidationVariables.h:57
PVValHelper::dz
Definition:
PVValidationHelpers.h:50
TrackerValidationVariables::AVHitStruct
Definition:
TrackerValidationVariables.h:22
phase1PixelTopology::localY
constexpr uint16_t localY(uint16_t py)
Definition:
phase1PixelTopology.h:58
MagneticField
Definition:
MagneticField.h:19
TrackerValidationVariables::AVTrackStruct::px
float px
Definition:
TrackerValidationVariables.h:90
PVValHelper::eta
Definition:
PVValidationHelpers.h:69
config
Definition:
config.py:1
TrackerValidationVariables::AVTrackStruct::dz
float dz
Definition:
TrackerValidationVariables.h:100
HLTMuonOfflineAnalyzer_cfi.d0
d0
Definition:
HLTMuonOfflineAnalyzer_cfi.py:100
TrackerValidationVariables::AVTrackStruct::hits
std::vector< AVHitStruct > hits
Definition:
TrackerValidationVariables.h:104
HiBiasedCentrality_cfi.function
function
Definition:
HiBiasedCentrality_cfi.py:4
TrackerValidationVariables::AVHitStruct::phi
float phi
Definition:
TrackerValidationVariables.h:54
edm::EDGetTokenT
Definition:
EDGetToken.h:33
Trajectory
Definition:
Trajectory.h:38
DiDispStaMuonMonitor_cfi.pt
pt
Definition:
DiDispStaMuonMonitor_cfi.py:39
TrackerValidationVariables::AVHitStruct::localYnorm
float localYnorm
Definition:
TrackerValidationVariables.h:60
TrackerValidationVariables::AVTrackStruct
Definition:
TrackerValidationVariables.h:68
TrackerValidationVariables::AVHitStruct::resYprimeErr
float resYprimeErr
Definition:
TrackerValidationVariables.h:53
TrackerValidationVariables::AVTrackStruct::py
float py
Definition:
TrackerValidationVariables.h:91
EventSetup
TrackerValidationVariables::AVTrackStruct::p
float p
Definition:
TrackerValidationVariables.h:86
TrackerValidationVariables::trajCollectionToken_
edm::EDGetTokenT< std::vector< Trajectory > > trajCollectionToken_
Definition:
TrackerValidationVariables.h:121
TrackerValidationVariables::AVHitStruct::resYprime
float resYprime
Definition:
TrackerValidationVariables.h:52
TrackerValidationVariables::AVHitStruct::localAlpha
float localAlpha
Definition:
TrackerValidationVariables.h:61
TrackerValidationVariables::AVHitStruct::rawDetId
uint32_t rawDetId
Definition:
TrackerValidationVariables.h:63
TrackerValidationVariables::AVHitStruct::AVHitStruct
AVHitStruct()
Definition:
TrackerValidationVariables.h:23
TrackerValidationVariables::AVTrackStruct::eta
float eta
Definition:
TrackerValidationVariables.h:93
TrackerValidationVariables::AVTrackStruct::ptError
float ptError
Definition:
TrackerValidationVariables.h:89
TrackerValidationVariables::AVHitStruct::resXprime
float resXprime
Definition:
TrackerValidationVariables.h:49
TrackerValidationVariables::AVHitStruct::resErrY
float resErrY
Definition:
TrackerValidationVariables.h:48
edm::EventSetup
Definition:
EventSetup.h:57
TrackerValidationVariables::AVHitStruct::localXnorm
float localXnorm
Definition:
TrackerValidationVariables.h:59
TrackCollections2monitor_cff.numberOfValidHits
numberOfValidHits
Definition:
TrackCollections2monitor_cff.py:248
TrackerValidationVariables::AVTrackStruct::numberOfLostHits
int numberOfLostHits
Definition:
TrackerValidationVariables.h:103
TrackerValidationVariables::AVHitStruct::inside
bool inside
Definition:
TrackerValidationVariables.h:56
ALCARECOTkAlJpsiMuMu_cff.charge
charge
Definition:
ALCARECOTkAlJpsiMuMu_cff.py:47
TrackerValidationVariables::AVTrackStruct::charge
int charge
Definition:
TrackerValidationVariables.h:101
TrackerValidationVariables::AVHitStruct::resX
float resX
Definition:
TrackerValidationVariables.h:45
TrackerValidationVariables::AVTrackStruct::AVTrackStruct
AVTrackStruct()
Definition:
TrackerValidationVariables.h:69
TrackerValidationVariables::AVTrackStruct::normchi2
float normchi2
Definition:
TrackerValidationVariables.h:98
TrackerValidationVariables::AVTrackStruct::pt
float pt
Definition:
TrackerValidationVariables.h:88
TrackerValidationVariables::AVHitStruct::isOtherBadPixel
bool isOtherBadPixel
Definition:
TrackerValidationVariables.h:65
TrackerValidationVariables::AVHitStruct::localBeta
float localBeta
Definition:
TrackerValidationVariables.h:62
TrackerValidationVariables
Definition:
TrackerValidationVariables.h:20
phase1PixelTopology::localX
constexpr uint16_t localX(uint16_t px)
Definition:
phase1PixelTopology.h:49
TrackerValidationVariables::AVTrackStruct::pz
float pz
Definition:
TrackerValidationVariables.h:92
TrackerValidationVariables::AVHitStruct::resXprimeErr
float resXprimeErr
Definition:
TrackerValidationVariables.h:51
TrackerValidationVariables::AVTrackStruct::chi2
float chi2
Definition:
TrackerValidationVariables.h:96
TrajTrackAssociation.h
reco::Track
Definition:
Track.h:27
multPhiCorr_741_25nsDY_cfi.py
py
Definition:
multPhiCorr_741_25nsDY_cfi.py:12
Event
multPhiCorr_741_25nsDY_cfi.px
px
Definition:
multPhiCorr_741_25nsDY_cfi.py:10
MinBiasPDSkim_cfg.trackFilter
trackFilter
Definition:
MinBiasPDSkim_cfg.py:243
edm
HLT enums.
Definition:
AlignableModifier.h:19
TrackerValidationVariables::AVTrackStruct::d0
float d0
Definition:
TrackerValidationVariables.h:99
TrackerValidationVariables::AVTrackStruct::phi
float phi
Definition:
TrackerValidationVariables.h:94
TrackerValidationVariables::AVHitStruct::localY
float localY
Definition:
TrackerValidationVariables.h:58
TrackerValidationVariables::AVHitStruct::eta
float eta
Definition:
TrackerValidationVariables.h:55
edm::ParameterSet
Definition:
ParameterSet.h:36
TrackerValidationVariables::AVTrackStruct::numberOfValidHits
int numberOfValidHits
Definition:
TrackerValidationVariables.h:102
TrackerValidationVariables::AVHitStruct::isOnEdgePixel
bool isOnEdgePixel
Definition:
TrackerValidationVariables.h:64
kappa
static const G4double kappa
Definition:
UrbanMscModel93.cc:35
TrackerValidationVariables::tracksToken_
edm::EDGetTokenT< std::vector< reco::Track > > tracksToken_
Definition:
TrackerValidationVariables.h:122
TrackerValidationVariables::AVHitStruct::resY
float resY
Definition:
TrackerValidationVariables.h:46
edm::Event
Definition:
Event.h:72
event
Definition:
event.py:1
HLT_2018_cff.track
track
Definition:
HLT_2018_cff.py:10339
edm::ConsumesCollector
Definition:
ConsumesCollector.h:39
TrackerValidationVariables::AVHitStruct::resXatTrkY
float resXatTrkY
Definition:
TrackerValidationVariables.h:50
Generated for CMSSW Reference Manual by
1.8.11