14 static const float TrackerBoundsRadius = 112;
15 static const float TrackerBoundsHalfLength = 273.5;
17 return ((point.
transverse() < TrackerBoundsRadius)
18 && (
abs(point.
z()) < TrackerBoundsHalfLength));
27 return constrain(track, priorVertexState);
41 if ((fabs(field) < 1
e-4)&&(fabs(nominalBfield)!=0)) {
42 LogDebug(
"RecoVertex/SingleTrackVertexConstraint")
43 <<
"Initial state is very far, field is close to zero (<1e-4): " << field <<
"\n";
47 RefCountedLinearizedTrackState lTrData
48 = theLTrackFactory.linearizedTrackState(priorVertexState.
position(),
track);
49 RefCountedVertexTrack vertexTrack = theVTrackFactory.vertexTrack(lTrData, priorVertexState);
53 std::vector<RefCountedVertexTrack> initialTracks;
55 vertex = vertexUpdator.add(vertex, vertexTrack);
58 }
else if (doTrackerBoundCheck_ && (!insideTrackerBounds(vertex.
position()))) {
59 LogDebug(
"RecoVertex/SingleTrackVertexConstraint")
60 <<
"Fitted position is out of tracker bounds.\n";
64 RefCountedVertexTrack nTrack = theVertexTrackUpdator.update(vertex, vertexTrack);
65 return BTFtuple(
true, nTrack->refittedState()->transientTrack(), nTrack->smoothedChi2());
72 return constrain(ttFactory.build(fts), priorPos, priorError);
79 return constrain(track, priorVertexState);
86 return constrain(ttFactory.build(fts), priorVertexState);
int nominalValue() const
The nominal field value for this map in kGauss.
GlobalPoint globalPosition() const
const MagneticField * field() const
GlobalPoint position() const
GlobalVector inInverseGeV(const GlobalPoint &gp) const
Field value ad specified global point, in 1/Gev.
Abs< T >::type abs(const T &t)
GlobalPoint position() const
BTFtuple constrain(const reco::TransientTrack &track, const GlobalPoint &priorPos, const GlobalError &priorError) const
boost::tuple< bool, reco::TransientTrack, float > BTFtuple
TrajectoryStateOnSurface impactPointState() const
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point