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