27 #include "gsl/gsl_statistics.h"
31 template <
class T>
T sqr(
const T&
t) {
return t*
t;}
49 double theMinMomentum = 3.0;
50 int charge=std::copysign(1,ptmean);
53 if ( fabs(ptmean) < theMinMomentum ) ptmean = theMinMomentum *
charge ;
62 last->globalDirection().phi(),
64 polar *=fabs(ptmean)/polar.
perp();
65 LocalVector segDirFromPos=last->det()->toLocal(polar);
78 mat = last->parametersError().similarityT( last->projectionMatrix() );
81 float p_err =
sqr(sptmean/(ptmean*ptmean));
97 DetId id = last->geographicalId();
const std::string metname
MuonTransientTrackingRecHit::MuonRecHitContainer theRhits
const MagneticField * theField
Global3DPoint GlobalPoint
MuonTransientTrackingRecHit::ConstMuonRecHitPointer ConstMuonRecHitPointer
Geom::Theta< T > theta() const
CLHEP::HepVector AlgebraicVector
TEveGeoShape * clone(const TEveElement *element, TEveElement *parent)
Square< F >::type sqr(const F &f)
TrajectorySeed createSeed(float ptmean, float sptmean, MuonTransientTrackingRecHit::ConstMuonRecHitPointer last) const
CLHEP::HepSymMatrix AlgebraicSymMatrix