24 {
25
29 ctPL("truthParticleLink");
32 tPL("truthParticleLink");
33 if (ctPL.isAvailable(original)) {
34 tPL(created) = ctPL(original);
35 }
38 if (ctMP.isAvailable(original)) {
39 tMP(created) = ctMP(original);
40 }
41 static const SG::AuxElement::ConstAccessor<int> ctT("truthType");
43 if (ctT.isAvailable(original)) {
44 tT(created) = ctT(original);
45 }
46 static const SG::AuxElement::ConstAccessor<int> ctO("truthOrigin");
48 if (ctO.isAvailable(original)) {
49 tO(created) = ctO(original);
50 }
51 static const SG::AuxElement::ConstAccessor<unsigned int> ctC("truthClassification");
53 if (ctC.isAvailable(original)) {
54 tC(created) = ctC(original);
55 }
56 }
57
59 copySummaryValue(original, created,
61 copySummaryValue(original, created,
64 copySummaryValue(original, created,
66 copySummaryValue(original, created,
70
74 }
75
78
80
81
88
90 }
92
95
102
104 }
112
114 }
115 }
116}
ElementLink implementation for ROOT usage.
SG::ConstAccessor< T, ALLOC > ConstAccessor
SG::Accessor< T, ALLOC > Accessor
float time() const
Returns the time.
uint8_t hasValidTime() const
Returns whether or not the track has a valid time.
void setSummaryValue(uint8_t &value, const SummaryType &information)
Set method for TrackSummary values.
void setHasValidTime(uint8_t hasValidTime)
int summaryValueInt(const xAOD::TrackParticle &tp, const xAOD::SummaryType &info, int deflt=-999)
return the summary value for a TrackParticle or default value (-999) (to be used mostly in python whe...
@ numberOfPixelHoles
number of pixel layers on track with absence of hits [unit8_t].
@ numberOfNextToInnermostPixelLayerSharedHits
number of Pixel 1st layer barrel hits shared by several tracks.
@ numberOfNextToInnermostPixelLayerSplitHits
number of Pixel 1st layer barrel hits split by cluster splitting
@ numberOfPixelSplitHits
number of Pixel all-layer hits split by cluster splitting [unit8_t].
@ numberOfInnermostPixelLayerSharedHits
number of Pixel 0th layer barrel hits shared by several tracks.
@ numberOfPixelOutliers
these are the pixel outliers, including the b-layer [unit8_t].
@ numberOfTRTHits
number of TRT hits [unit8_t].
@ numberOfTRTHoles
number of TRT holes [unit8_t].
@ numberOfSCTDeadSensors
number of dead SCT sensors crossed [unit8_t].
@ numberOfInnermostPixelLayerSplitHits
number of Pixel 0th layer barrel hits split by cluster splitting
@ numberOfSCTHits
number of hits in SCT [unit8_t].
@ numberOfSCTDoubleHoles
number of Holes in both sides of a SCT module [unit8_t].
@ numberOfSCTOutliers
number of SCT outliers [unit8_t].
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
@ numberOfPixelSharedHits
number of Pixel all-layer hits shared by several tracks [unit8_t].
@ numberOfSCTSharedHits
number of SCT hits shared by several tracks [unit8_t].
@ numberOfTRTSharedHits
number of TRT hits used by more than one track
@ numberOfTRTOutliers
number of TRT outliers [unit8_t].
@ numberOfPixelDeadSensors
number of dead pixel sensors crossed [unit8_t].
@ numberOfSCTHoles
number of SCT holes [unit8_t].