5#define TRUTHTOTRACK_IMP
27 declareInterface<ITruthToTrack>(
this);
34 return StatusCode::SUCCESS;
43 if(part && part->production_vertex()) {
44 HepMC::FourVector tv = part->production_vertex()->position();
48 const HepMC::FourVector& fv = part->momentum();
52 const int id = part->pdg_id();
73 if(part && part->hasProdVtx()) {
74 Amg::Vector3D hv(part->prodVtx()->x(),part->prodVtx()->y(),part->prodVtx()->z());
77 Amg::Vector3D hv2(part->p4().Px(),part->p4().Py(),part->p4().Pz());
80 const int id = part->pdg_id();
105 if(productionVertexTrackParams) {
110 Gaudi::Hive::currentContext(),
111 *productionVertexTrackParams,
119 return generatedTrackPerigee;
131 if(productionVertexTrackParams) {
136 Gaudi::Hive::currentContext(),
137 *productionVertexTrackParams,
145 return generatedTrackPerigee;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
double charge(const T &p)
ATLAS-specific HepMC functions.
Extrapolation for HepMC particles.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Class describing the Line to which the Perigee refers to.
Class for a planaer rectangular or trapezoidal surface in the ATLAS detector.
virtual StatusCode initialize()
virtual const Trk::TrackParameters * makePerigeeParameters(HepMC::ConstGenParticlePtr part) const
This function extrapolates track to the perigee, and returns perigee parameters.
virtual const Trk::TrackParameters * makeProdVertexParameters(HepMC::ConstGenParticlePtr part) const
This function produces a Trk::TrackParameters object corresponding to the HepMC::GenParticle at the p...
TruthToTrack(const std::string &type, const std::string &name, const IInterface *parent)
ToolHandle< Trk::IExtrapolator > m_extrapolator
Eigen::Affine3d Transform3D
Eigen::Matrix< double, 3, 1 > Vector3D
Eigen::Translation< double, 3 > Translation3D
const GenParticle * ConstGenParticlePtr
double charge(const T &p)
ParametersBase< TrackParametersDim, Charged > TrackParameters
ParametersT< TrackParametersDim, Charged, PlaneSurface > AtaPlane
TruthParticle_v1 TruthParticle
Typedef to implementation.