1 #ifndef SteppingHelixPropagator_SteppingHelixPropagator_h
2 #define SteppingHelixPropagator_SteppingHelixPropagator_h
33 #include "CLHEP/Matrix/SymMatrix.h"
34 #include "CLHEP/Matrix/Matrix.h"
35 #include "CLHEP/Vector/ThreeVector.h"
47 typedef CLHEP::Hep3Vector
Point;
115 virtual std::pair<TrajectoryStateOnSurface, double>
119 virtual std::pair<TrajectoryStateOnSurface, double>
122 virtual std::pair<FreeTrajectoryState, double>
125 virtual std::pair<FreeTrajectoryState, double>
129 virtual std::pair<FreeTrajectoryState, double>
208 const double pars[6],
double epsilon = 1
e-3)
const;
224 double dS,
double dX0,
239 double& dEdXPrime,
double& radX0,
MatBounds& rzLims)
const;
246 const double pars[6],
248 double fastSkipDist = 1e12)
const;
254 double& dist,
double& tanDist,
255 double fastSkipDist = 1e12,
bool expectNewMagVolume =
false,
double maxStep = 1e12)
const;
259 double& dist,
double& tanDist,
260 double fastSkipDist = 1e12)
const;
267 typedef std::pair<TrajectoryStateOnSurface, double>
TsosPP;
268 typedef std::pair<FreeTrajectoryState, double>
FtsPP;
void setUseTuningForL2Speed(bool val)
void setDebug(bool debug)
Switch debug printouts (to cout) .. very verbose.
void setVBFPointer(const VolumeBasedMagneticField *val)
Result refToDest(DestType dest, const SteppingHelixPropagator::StateInfo &sv, const double pars[6], double &dist, double &tanDist, PropagationDirection &refDirection, double fastSkipDist=1e12) const
(Internals) determine distance and direction from the current position to the plane ...
AlgebraicMatrix55 covCurvRot_
bool applyRadX0Correction_
bool isYokeVolume(const MagVolume *vol) const
check if it's a yoke/iron based on this MagVol internals
~SteppingHelixPropagator()
Destructor.
static const int MAX_STEPS
SteppingHelixStateInfo::VolumeBounds MatBounds
SteppingHelixStateInfo StateInfo
std::pair< TrajectoryStateOnSurface, double > TsosPP
int cIndex_(int ind) const
(Internals) circular index for array of transients
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
double getDeDx(const SteppingHelixPropagator::StateInfo &sv, double &dEdXPrime, double &radX0, MatBounds &rzLims) const
estimate average (in fact smth. close to MPV and median) energy loss per unit path length ...
std::pair< FreeTrajectoryState, double > FtsPP
Result refToMatVolume(const SteppingHelixPropagator::StateInfo &sv, PropagationDirection dir, double &dist, double &tanDist, double fastSkipDist=1e12) const
bool useInTeslaFromMagField_
void loadState(SteppingHelixPropagator::StateInfo &svCurrent, const SteppingHelixPropagator::Vector &p3, const SteppingHelixPropagator::Point &r3, int charge, PropagationDirection dir, const AlgebraicSymMatrix55 &covCurv) const
AlgebraicMatrix55 dCCurvTransform_
void setUseMagVolumes(bool val)
Switch to using MagneticField Volumes .. as in VolumeBasedMagneticField.
SteppingHelixStateInfo::Result Result
void applyRadX0Correction(bool applyRadX0Correction)
SteppingHelixPropagator()
Constructors.
virtual const MagneticField * magneticField() const
const VolumeBasedMagneticField * vbField_
virtual TrajectoryStateOnSurface propagate(const FreeTrajectoryState &ftsStart, const Plane &pDest) const
Propagate to Plane given a starting point.
static const int MAX_POINTS
bool useTuningForL2Speed_
bool makeAtomStep(SteppingHelixPropagator::StateInfo &svCurrent, SteppingHelixPropagator::StateInfo &svNext, double dS, PropagationDirection dir, SteppingHelixPropagator::Fancy fancy) const
main stepping function: compute next state vector after a step of length dS
Result refToMagVolume(const SteppingHelixPropagator::StateInfo &sv, PropagationDirection dir, double &dist, double &tanDist, double fastSkipDist=1e12, bool expectNewMagVolume=false, double maxStep=1e12) const
void setUseMatVolumes(bool val)
Switch to using Material Volumes .. internally defined for now.
virtual std::pair< TrajectoryStateOnSurface, double > propagateWithPath(const FreeTrajectoryState &ftsStart, const Plane &pDest) const
const AlgebraicSymMatrix55 unit55_
void setRep(SteppingHelixPropagator::Basis &rep, const SteppingHelixPropagator::Vector &tau) const
Set/compute basis vectors for local coordinates at current step (called by incrementState) ...
void setUseIsYokeFlag(bool val)
StateInfo svBuf_[MAX_POINTS+1]
void setIState(const SteppingHelixStateInfo &sStart) const
(Internals) Init starting point
void setReturnTangentPlane(bool val)
flag to return tangent plane for non-plane input
void setSendLogWarning(bool val)
flag to send LogWarning on failures
void setUseInTeslaFromMagField(bool val)
force getting field value from MagneticField, not the geometric one
void getNextState(const SteppingHelixPropagator::StateInfo &svPrevious, SteppingHelixPropagator::StateInfo &svNext, double dP, const SteppingHelixPropagator::Vector &tau, const SteppingHelixPropagator::Vector &drVec, double dS, double dX0, const AlgebraicMatrix55 &dCovCurv) const
const MagneticField * field_
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepStd< double, 5, 5 > > AlgebraicMatrix55
void setEndcapShiftsInZPosNeg(double valPos, double valNeg)
set shifts in Z for endcap pieces (includes EE, HE, ME, YE)
void setMaterialMode(bool noMaterial)
Switch for material effects mode: no material effects if true.
virtual SteppingHelixPropagator * clone() const
void setNoErrorPropagation(bool noErrorPropagation)
Force no error propagation.