14 unsigned int BTSCount::maxReferences=0;
15 unsigned long long BTSCount::aveReferences=0;
16 unsigned long long BTSCount::toteReferences=0;
18 BTSCount::~BTSCount(){
19 maxReferences =
std::max(referenceMax_, maxReferences);
21 aveReferences+=referenceMax_;
30 std::cout <<
"maxReferences of BTSCount = "
31 << BTSCount::maxReferences <<
" "
32 << double(BTSCount::aveReferences)/double(BTSCount::toteReferences)<< std::endl;
61 theLocalParametersValid(
false),
64 theSurfaceP( &aSurface),
75 theLocalParametersValid(
false),
78 theSurfaceP( &aSurface),
87 theFreeState(par, err),
90 theLocalParametersValid(
false),
93 theSurfaceP( &aSurface),
103 theFreeState(par, err),
105 theLocalParameters(),
106 theLocalParametersValid(
false),
108 theSurfaceSide(side),
109 theSurfaceP( &aSurface),
118 theFreeState(par, err),
120 theLocalParameters(),
121 theLocalParametersValid(
false),
124 theSurfaceP( &aSurface),
133 theFreeState(makeFTS(par,aSurface,field)),
135 theLocalParameters(par),
136 theLocalParametersValid(
true),
138 theSurfaceSide(side),
139 theSurfaceP( &aSurface),
150 theFreeState(makeFTS(par,aSurface,field)),
152 theLocalParameters(par),
153 theLocalParametersValid(
true),
155 theSurfaceSide(side),
156 theSurfaceP( &aSurface),
166 theFreeState(makeFTS(par,aSurface,field)),
168 theLocalParameters(par),
169 theLocalParametersValid(
true),
172 theSurfaceP( &aSurface),
178 theLocalParameters(),
179 theLocalParametersValid(
false),
182 theSurfaceP( &aSurface),
207 std::stringstream form;
208 form<<
"BasicTrajectoryState: attempt to access errors when none available "
245 p.
x()/p.
z(), p.
y()/p.
z(), x.
x(), x.
y(), p.
z()>0. ? 1.:-1., isCharged);
267 verifyLocalErr(theLocalError);
319 for (
unsigned int i=1;
i!=5;++
i)
errors(
i,0)*=factor;
320 double factor_squared=factor*factor;
322 for (
unsigned int i=1;
i!=5;++
i)
for (
unsigned int j=
i;
j!=5;++
j)
errors(
i,
j)*=factor_squared;
335 std::vector<TrajectoryStateOnSurface>
337 std::vector<TrajectoryStateOnSurface>
result; result.reserve(1);
338 result.push_back( const_cast<BasicTrajectoryState*>(
this));
ConstReferenceCountingPointer< SurfaceType > theSurfaceP
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
virtual ~BasicTrajectoryState()
const MagneticField * magneticField() const
void createLocalErrorFromCurvilinearError() const dso_internal
SurfaceSide theSurfaceSide
int nominalValue() const
The nominal field value for this map in kGauss.
LocalPoint position() const
Local x and y position coordinates.
bool hasCurvilinearError() const
virtual void update(const LocalTrajectoryParameters &p, const SurfaceType &aSurface, const MagneticField *field, const SurfaceSide side)
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepSym< double, 5 > > AlgebraicSymMatrix55
TrackCharge charge() const
const CurvilinearTrajectoryError & curvilinearError() const
void rescaleError(double factor)
const T & max(const T &a, const T &b)
LocalPoint toLocal(const GlobalPoint &gp) const
void createLocalError() const
void checkCurvilinError() const
void createLocalParameters() const
const AlgebraicSymMatrix55 & matrix() const
LocalVector momentum() const
Momentum vector in the local frame.
GlobalVector momentum() const
void setCurvilinearError(const CurvilinearTrajectoryError &err)
GlobalPoint position() const
const SurfaceType & surface() const
const GlobalTrajectoryParameters & globalParameters() const
void rescaleError(double factor)
FreeTrajectoryState theFreeState
TrackCharge charge() const
Charge (-1, 0 or 1)
const AlgebraicMatrix55 & jacobian() const
void missingError(char const *where) const
bool theLocalParametersValid
const LocalTrajectoryParameters & localParameters() const
const AlgebraicSymMatrix55 & matrix() const
virtual std::vector< TrajectoryStateOnSurface > components() const
LocalTrajectoryParameters theLocalParameters
const AlgebraicMatrix55 & jacobian() const
LocalTrajectoryError theLocalError
double signedInverseMomentum() const
ROOT::Math::SMatrix< double, 5, 5, ROOT::Math::MatRepStd< double, 5, 5 > > AlgebraicMatrix55