79 declareInterface<ITrackValidationNtupleTool>(
this);
95 return StatusCode::SUCCESS;
104 return StatusCode::SUCCESS;
108 if (!
tree)
return StatusCode::FAILURE;
160 return StatusCode::SUCCESS;
169 const unsigned int ) {
173 const EventContext& ctx = Gaudi::Hive::currentContext();
176 const Trk::Perigee* perpars = track.perigeeParameters();
178 msg(MSG::WARNING) <<
"Perigee parameters could not be written to ntuple" <<
endmsg;
180 if (perpars ==
nullptr) {
185 std::unique_ptr<const Trk::TrackParameters> tmp =
m_extrapolator->extrapolateTrack(
188 perpars =
static_cast<const Trk::Perigee *
> (tmp.release());
191 msg(MSG::WARNING) <<
"Newly made perigee parameters could not be "
192 <<
"written to ntuple" <<
endmsg;
194 if (perpars !=
nullptr)
delete perpars;
196 msg(MSG::WARNING) <<
"No perigee parameters, but they are the main validation object!"
199 return StatusCode::SUCCESS;
214 return StatusCode::SUCCESS;
227 if ( !
m_doTruth )
return StatusCode::SUCCESS;
244 if (truePerigee ==
nullptr)
return StatusCode::SUCCESS;
269 return StatusCode::SUCCESS;
283 msg(MSG::WARNING) <<
"Something is wrong - track has no perigee at all!" <<
endmsg;
289 return StatusCode::FAILURE;
303 if (perigee->covariance()) {
319 return StatusCode::SUCCESS;
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
a link optimized in size for a GenParticle in a McEventCollection
HepMC::ConstGenParticlePtr cptr() const
Dereference.
MC particle associated with a reco track + the quality of match.
float probability() const
const HepMcParticleLink & particleLink() const
double eta() const
Access method for pseudorapidity - from momentum.
Class describing the Line to which the Perigee refers to.
double error(const Amg::MatrixX &mat, int index)
return diagonal error of the matrix caller should ensure the matrix is symmetric and the index is in ...
const GenParticle * ConstGenParticlePtr
ParametersT< TrackParametersDim, Charged, PerigeeSurface > Perigee
ParametersBase< TrackParametersDim, Charged > TrackParameters