22 return StatusCode::SUCCESS;
29 if (not inputTracks) {
31 return StatusCode::FAILURE;
37 for (
const auto* trk : *inputTracks )
40 xAOD::ParametersCovMatrix_t trkcov = trk->definingParametersCovMatrix();
41 auto trkcovvec = trk->definingParametersCovMatrixVec();
42 if (trk->pt() == 0.)
continue;
44 <<
" curv=" << 1./trk->pt()
45 <<
" phi=" << trk->phi()
46 <<
" eta=" << trk->eta()
59 if (not smearedTracks) {
61 return StatusCode::FAILURE;
67 for (
const auto* trk : *smearedTracks )
70 xAOD::ParametersCovMatrix_t trkcov = trk->definingParametersCovMatrix();
71 auto trkcovvec = trk->definingParametersCovMatrixVec();
72 if (trk->pt() == 0.)
continue;
74 <<
" curv=" << 1./trk->pt()
75 <<
" phi=" << trk->phi()
76 <<
" eta=" << trk->eta()
92 return StatusCode::FAILURE;
100 for (
const auto* part : *inputTruth )
102 if (part->pt() == 0.)
continue;
104 <<
" curv=" << 1./part->pt()
105 <<
" phi=" << part->phi()
106 <<
" eta=" << part->eta()
107 <<
" d0=" << d0Acc(*part)
108 <<
" z0=" << z0Acc(*part)
109 <<
" pT=" << part->pt()
110 <<
" PDGID=" << part->pdgId()
111 <<
" status=" << part->status()
113 if (part->parent(0))
ATH_MSG_DEBUG (
" parent pdgId=" << part->parent(0)->pdgId());
120 if (not smearedTruth) {
122 return StatusCode::FAILURE;
126 for (
const auto* part : *smearedTruth )
128 if (part->pt() == 0.)
continue;
130 <<
" curv=" << 1./ptAcc(*part)
131 <<
" phi=" << part->phi()
132 <<
" eta=" << part->eta()
133 <<
" d0=" << d0Acc(*part)
134 <<
" z0=" << z0Acc(*part)
135 <<
" pT=" << ptAcc(*part)
136 <<
" PDGID=" << part->pdgId()
137 <<
" status=" << part->status()
139 if (part->parent(0))
ATH_MSG_DEBUG (
" parent pdgId=" << part->parent(0)->pdgId());
142 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Helper class to provide constant type-safe access to aux data.
AthHistogramAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
size_type size() const noexcept
Returns the number of elements in the collection.
EFTrackingSmearMonAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute(const EventContext &ctx) override
Execute method.
virtual StatusCode initialize() override
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_smearedTruthParticleKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_smearedTrackParticleKey
SG::ReadHandleKey< xAOD::TruthParticleContainer > m_inputTruthParticleKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_inputTrackParticleKey
Helper class to provide constant type-safe access to aux data.
const_pointer_type cptr()
Dereference the pointer.
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".
TruthParticleContainer_v1 TruthParticleContainer
Declare the latest version of the truth particle container.