29 #include "gsl/gsl_statistics.h"
33 template <
class T>
T sqr(
const T&
t) {
return t*
t;}
46 const std::string
metname =
"Muon|RecoMuon|MuonSeedFromRecHits";
51 double theMinMomentum = 3.0;
54 if ( fabs(ptmean) < theMinMomentum ) ptmean = theMinMomentum * ptmean/fabs(ptmean) ;
63 last->globalDirection().phi(),
65 polar *=fabs(ptmean)/polar.
perp();
66 LocalVector segDirFromPos=last->det()->toLocal(polar);
67 int charge=(int)(ptmean/fabs(ptmean));
80 mat = last->parametersError().similarityT( last->projectionMatrix() );
83 float p_err =
sqr(sptmean/(ptmean*ptmean));
92 LogTrace(metname) <<
"Trajectory State on Surface before the extrapolation"<<endl;
96 DetId id = last->geographicalId();
98 LogTrace(metname) <<
"The RecSegment relies on: "<<endl;
const std::string metname
MuonTransientTrackingRecHit::MuonRecHitContainer theRhits
const MagneticField * theField
Global3DPoint GlobalPoint
std::string dumpMuonId(const DetId &id) const
Geom::Theta< T > theta() const
std::string dumpTSOS(const TrajectoryStateOnSurface &tsos) const
CLHEP::HepVector AlgebraicVector
Square< F >::type sqr(const F &f)
TrajectorySeed createSeed(float ptmean, float sptmean, MuonTransientTrackingRecHit::ConstMuonRecHitPointer last) const
CLHEP::HepSymMatrix AlgebraicSymMatrix