39 edm::LogError(
"BeamHaloPropagator")<<
"composite propagator set with inconsistent direction components\n"
41 <<
"\n to be set on: "<<
dir;
47 edm::LogError(
"BeamHaloPropagator")<<
"composite propagator set with inconsistent direction components\n"
49 <<
"\n to be set on: "<<
dir;
56 Propagator(dir), theEndCapTkProp(aEndCapTkProp->
clone()), theCrossTkProp(aCrossTkProp->
clone()), theField(field) {
63 Propagator(dir), theEndCapTkProp(aEndCapTkProp.
clone()), theCrossTkProp(aCrossTkProp.
clone()), theField(field) {
69 Propagator(aProp.propagationDirection()), theEndCapTkProp(0), theCrossTkProp(0) {
86 <<
"and hence "<<((fts.
position().
z()*plane.
position().
z()<0)?
"crossing":
"not crossing");
91 std::pair<TrajectoryStateOnSurface,double>
93 const Plane& plane)
const
101 std::pair<TrajectoryStateOnSurface,double>
108 LogDebug(
"BeamHaloPropagator")<<
"using the EndCap propagator";
113 LogDebug(
"BeamHaloPropagator")<<
"using the Crossing propagator";
virtual void setPropagationDirection(PropagationDirection dir)
Propagator * theCrossTkProp
const Propagator * getCrossTkPropagator() const
return the propagator used to cross the tracker
virtual PropagationDirection propagationDirection() const
BeamHaloPropagator(const Propagator *aEndCapTkProp, const Propagator *aCrossTkProp, const MagneticField *field, PropagationDirection dir=alongMomentum)
Defines which propagator is used inside endcap and in barrel.
virtual Propagator * clone() const =0
void directionCheck(PropagationDirection dir)
virtual ~BeamHaloPropagator()
const Propagator * getEndCapTkPropagator() const
return the propagator used in endcaps
virtual std::pair< TrajectoryStateOnSurface, double > propagateWithPath(const FreeTrajectoryState &, const Surface &) const final
bool crossingTk(const FreeTrajectoryState &fts, const Plane &plane) const
true if the plane and the fts z position have different sign
GlobalPoint position() const
std::pair< TrajectoryStateOnSurface, double > propagateWithPath(const FreeTrajectoryState &fts, const Plane &plane) const
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
const PositionType & position() const
Propagator * theEndCapTkProp