1 #ifndef BasicTrajectoryState_H
2 #define BasicTrajectoryState_H
39 BTSCount(BTSCount
const &){}
41 static unsigned int maxReferences;
42 static unsigned long long aveReferences;
43 static unsigned long long toteReferences;
45 void addReference()
const { ++referenceCount_ ; referenceMax_ =
std::max(referenceMax_, referenceCount_); }
46 void removeReference()
const {
47 if( 0 == --referenceCount_ ) {
48 delete const_cast<BTSCount*
>(
this);
52 unsigned int references()
const {
return referenceCount_;}
55 mutable unsigned int referenceCount_;
56 mutable unsigned int referenceMax_;
58 mutable unsigned int referenceCount_=0;
59 mutable unsigned int referenceMax_ =0;
93 template<
typename T,
typename...
Args>
94 static std::shared_ptr<BTSOS>
build(
Args && ...
args){
return std::make_shared<T>(std::forward<Args>(
args)...);}
96 template<
typename T,
typename...
Args>
170 template<
typename...
Args>
334 virtual std::vector<TrajectoryStateOnSurface>
components()
const =0;
GlobalPoint globalPosition() const
ConstReferenceCountingPointer< SurfaceType > theSurfaceP
virtual ~BasicTrajectoryState()
CurvilinearTrajectoryError & setCurvilinearError()
LocalPoint localPosition() const
FreeTrajectoryState const * freeTrajectoryState(bool withErrors=true) const
virtual std::vector< TrajectoryStateOnSurface > components() const =0
CartesianTrajectoryError cartesianError() const
const MagneticField * magneticField() const
SurfaceSideDefinition::SurfaceSide SurfaceSide
SurfaceSide surfaceSide() const
Position relative to material, defined relative to momentum vector.
SurfaceSide theSurfaceSide
const GlobalTrajectoryParameters & parameters() const
virtual pointer clone() const =0
LocalPoint position() const
Local x and y position coordinates.
const CartesianTrajectoryError cartesianError() const
virtual void update(const LocalTrajectoryParameters &p, const SurfaceType &aSurface, const MagneticField *field, const SurfaceSide side)
TrackCharge charge() const
TrackCharge charge() const
const CurvilinearTrajectoryError & curvilinearError() const
void rescaleError(double factor)
GlobalVector globalDirection() const
void createLocalErrorFromCurvilinearError() const
const LocalTrajectoryError & localError() const
void createLocalError() const
void checkCurvilinError() const
double signedInverseMomentum() const
void createLocalParameters() const
LocalVector momentum() const
Momentum vector in the local frame.
GlobalVector momentum() const
Vector3DBase unit() const
GlobalPoint position() const
const SurfaceType & surface() const
const GlobalTrajectoryParameters & globalParameters() const
double transverseCurvature() const
FreeTrajectoryState theFreeState
CurvilinearTrajectoryError & setCurvilinearError()
double transverseCurvature() const
void missingError(char const *where) const
bool theLocalParametersValid
GlobalVector globalMomentum() const
const LocalTrajectoryParameters & localParameters() const
LocalTrajectoryParameters theLocalParameters
virtual bool canUpdateLocalParameters() const
LocalVector localDirection() const
const MagneticField & magneticField() const
LocalVector localMomentum() const
const CurvilinearTrajectoryError & curvilinearError() const
volatile std::atomic< bool > shutdown_flag false
LocalTrajectoryError theLocalError
ProxyBase11< BTSOS > Proxy
double signedInverseMomentum() const
BasicTrajectoryState BTSOS