19#include "CLHEP/Units/SystemOfUnits.h"
35 (
const std::string&
type,
36 const std::string& name,
37 const IInterface* parent)
42 declareProperty (
"Extrapolator",
44 "Extrapolator tool.");
46 declareProperty (
"CaloSurfaceBuilder",
48 "CaloSurfaceBuilder tool.");
50 declareProperty (
"MinPt",
52 "Minimum track pT to do the extrapolation.");
66 return StatusCode::SUCCESS;
75 "Material traversed between vertex "
76 "(conversion vertex) and the entrance of the "
77 "calorimeter (in X0)") );
78 return StatusCode::SUCCESS;
95 return StatusCode::SUCCESS;
119 if (p2 && p2->pT() > parameters->pT()) parameters = p2;
125 return StatusCode::SUCCESS;
145 return StatusCode::SUCCESS;
153 return StatusCode::SUCCESS;
157 if (fabs(cl->eta()) < 1.5)
158 sample = CaloCell_ID::PreSamplerB;
160 sample = CaloCell_ID::PreSamplerE;
163 std::unique_ptr<Trk::Surface> surface
167 ATH_MSG_DEBUG(
"Could not create surface at entrance of sample " << sample);
168 return StatusCode::SUCCESS;
172 typedef std::vector<const Trk::TrackStateOnSurface*> tsos_vec_t;
173 std::unique_ptr<const tsos_vec_t> v
175 Gaudi::Hive::currentContext(),
184 return StatusCode::SUCCESS;
189 if (tsos->materialEffectsOnTrack())
197 return StatusCode::SUCCESS;
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
CaloSampling::CaloSample CaloSample
This class provides the client interface for accessing the detector description information common to...
virtual StatusCode addVariable(const std::string &name, const std::type_info &ti, void *&ptr, const std::string &docstring="", const void *defval=0)
represents the track state (measurement, material, fit parameters and quality) at a surface.
const Trk::Perigee & perigeeParameters() const
Returns the Trk::MeasuredPerigee track parameters.
size_t nTrackParticles() const
Get the number of tracks associated with this vertex.
const TrackParticle * trackParticle(size_t i) const
Get the pointer to a given track that was used in vertex reco.
Block filler tool for noisy FEB information.
ParametersBase< TrackParametersDim, Charged > TrackParameters
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
Vertex_v1 Vertex
Define the latest version of the vertex class.
Egamma_v1 Egamma
Definition of the current "egamma version".
Photon_v1 Photon
Definition of the current "egamma version".
Electron_v1 Electron
Definition of the current "egamma version".