27 static const SG::AuxElement::ConstAccessor<
29 ctPL(
"truthParticleLink");
30 static const SG::AuxElement::Accessor<
32 tPL(
"truthParticleLink");
33 if (ctPL.isAvailable(original)) {
34 tPL(created) = ctPL(original);
36 static const SG::AuxElement::ConstAccessor<float> ctMP(
"truthMatchProbability");
37 static const SG::AuxElement::Accessor<float> tMP(
"truthMatchProbability");
38 if (ctMP.isAvailable(original)) {
39 tMP(created) = ctMP(original);
41 static const SG::AuxElement::ConstAccessor<int> ctT(
"truthType");
42 static const SG::AuxElement::Accessor<int> tT(
"truthType");
43 if (ctT.isAvailable(original)) {
44 tT(created) = ctT(original);
46 static const SG::AuxElement::ConstAccessor<int> ctO(
"truthOrigin");
47 static const SG::AuxElement::Accessor<int> tO(
"truthOrigin");
48 if (ctO.isAvailable(original)) {
49 tO(created) = ctO(original);
51 static const SG::AuxElement::ConstAccessor<unsigned int> ctC(
"truthClassification");
52 static const SG::AuxElement::Accessor<unsigned int> tC(
"truthClassification");
53 if (ctC.isAvailable(original)) {
54 tC(created) = ctC(original);
59 copySummaryValue(original, created,
61 copySummaryValue(original, created,
64 copySummaryValue(original, created,
66 copySummaryValue(original, created,
73 static const SG::AuxElement::Accessor<float> time(
"time");
74 created.
setTime(time(original));
75 static const SG::AuxElement::Accessor<float> timeRes(
"timeResolution");
85 uint8_t nPixHolesRefitted =
99 uint8_t nSCTHolesRefitted =
109 uint8_t nTRTHolesRefitted =
void setTimeResolution(float timeResolution)
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)
void copy(xAOD::TrackParticle &created, const xAOD::TrackParticle &original, const egammaCopyTrackParticleInfo::ToCopy &toCopy)
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...