#include <TransientTrackFromFTS.h>
Definition at line 16 of file TransientTrackFromFTS.h.
TransientTrackFromFTS::TransientTrackFromFTS | ( | ) |
Definition at line 11 of file TransientTrackFromFTS.cc.
: theField(0), initialTSOSAvailable(false), initialTSCPAvailable(false), trackAvailable(false), blStateAvailable(false) {}
TransientTrackFromFTS::TransientTrackFromFTS | ( | const FreeTrajectoryState & | fts | ) |
Definition at line 16 of file TransientTrackFromFTS.cc.
: initialFTS(fts), theField(&(initialFTS.parameters().magneticField())), initialTSOSAvailable(false), initialTSCPAvailable(false), trackAvailable(false), blStateAvailable(false) {}
TransientTrackFromFTS::TransientTrackFromFTS | ( | const FreeTrajectoryState & | fts, |
const edm::ESHandle< GlobalTrackingGeometry > & | trackingGeometry | ||
) |
Definition at line 23 of file TransientTrackFromFTS.cc.
: initialFTS(fts), theField(&(initialFTS.parameters().magneticField())), initialTSOSAvailable(false), initialTSCPAvailable(false), trackAvailable(false), blStateAvailable(false), theTrackingGeometry(tg) {}
TransientTrackFromFTS::TransientTrackFromFTS | ( | const TransientTrackFromFTS & | tt | ) |
Definition at line 31 of file TransientTrackFromFTS.cc.
References impactPointState(), impactPointTSCP(), initialTSCP, initialTSCPAvailable, initialTSOS, and initialTSOSAvailable.
: initialFTS(tt.initialFreeState()), theField(tt.field()), initialTSOSAvailable(false), initialTSCPAvailable(false), trackAvailable(false) { if (tt.initialTSOSAvailable) { initialTSOS= tt.impactPointState(); initialTSOSAvailable = true; } if (tt.initialTSCPAvailable) { initialTSCP= tt.impactPointTSCP(); initialTSCPAvailable = true; } }
void TransientTrackFromFTS::calculateTSOSAtVertex | ( | ) | const [private] |
Definition at line 100 of file TransientTrackFromFTS.cc.
References TransverseImpactPointExtrapolator::extrapolate(), initialFTS, initialTSOS, initialTSOSAvailable, FreeTrajectoryState::position(), and theField.
Referenced by impactPointState().
{ TransverseImpactPointExtrapolator tipe(theField); initialTSOS = tipe.extrapolate(initialFTS, initialFTS.position()); initialTSOSAvailable = true; }
TrackCharge reco::TransientTrackFromFTS::charge | ( | void | ) | const [inline, virtual] |
Implements reco::BasicTransientTrack.
Definition at line 56 of file TransientTrackFromFTS.h.
References FreeTrajectoryState::charge(), and initialFTS.
{return initialFTS.charge();}
const MagneticField* reco::TransientTrackFromFTS::field | ( | ) | const [inline, virtual] |
Implements reco::BasicTransientTrack.
Definition at line 58 of file TransientTrackFromFTS.h.
References theField.
{return theField;}
TrajectoryStateOnSurface TransientTrackFromFTS::impactPointState | ( | ) | const [virtual] |
Implements reco::BasicTransientTrack.
Definition at line 65 of file TransientTrackFromFTS.cc.
References calculateTSOSAtVertex(), initialTSOS, and initialTSOSAvailable.
Referenced by TransientTrackFromFTS().
{ if (!initialTSOSAvailable) calculateTSOSAtVertex(); return initialTSOS; }
bool reco::TransientTrackFromFTS::impactPointStateAvailable | ( | ) | const [inline, virtual] |
Implements reco::BasicTransientTrack.
Definition at line 54 of file TransientTrackFromFTS.h.
References initialTSOSAvailable.
{return initialTSOSAvailable;}
TrajectoryStateClosestToPoint TransientTrackFromFTS::impactPointTSCP | ( | ) | const [virtual] |
Implements reco::BasicTransientTrack.
Definition at line 71 of file TransientTrackFromFTS.cc.
References builder, initialFTS, initialTSCP, initialTSCPAvailable, and FreeTrajectoryState::position().
Referenced by TransientTrackFromFTS().
{ if (!initialTSCPAvailable) { initialTSCP = builder(initialFTS, initialFTS.position()); initialTSCPAvailable = true; } return initialTSCP; }
FreeTrajectoryState reco::TransientTrackFromFTS::initialFreeState | ( | ) | const [inline, virtual] |
Implements reco::BasicTransientTrack.
Definition at line 35 of file TransientTrackFromFTS.h.
References initialFTS.
{return initialFTS;}
TrajectoryStateOnSurface TransientTrackFromFTS::innermostMeasurementState | ( | ) | const [virtual] |
Implements reco::BasicTransientTrack.
Definition at line 86 of file TransientTrackFromFTS.cc.
References Exception.
{ throw cms::Exception("LogicError") << "TransientTrack built from a FreeTrajectoryState (TransientTrackFromFTS) can not have an innermostMeasurementState"; }
TransientTrackFromFTS& reco::TransientTrackFromFTS::operator= | ( | const TransientTrackFromFTS & | tt | ) |
TrajectoryStateOnSurface TransientTrackFromFTS::outermostMeasurementState | ( | ) | const [virtual] |
Implements reco::BasicTransientTrack.
Definition at line 80 of file TransientTrackFromFTS.cc.
References Exception.
{ throw cms::Exception("LogicError") << "TransientTrack built from a FreeTrajectoryState (TransientTrackFromFTS) can not have an outermostMeasurementState"; }
void TransientTrackFromFTS::setBeamSpot | ( | const reco::BeamSpot & | beamSpot | ) | [virtual] |
Implements reco::BasicTransientTrack.
Definition at line 58 of file TransientTrackFromFTS.cc.
References blStateAvailable, and theBeamSpot.
{ theBeamSpot = beamSpot; blStateAvailable = false; }
void TransientTrackFromFTS::setES | ( | const edm::EventSetup & | setup | ) | [virtual] |
Implements reco::BasicTransientTrack.
Definition at line 49 of file DTParametrizedDriftAlgo.cc.
References edm::EventSetup::get().
{ theSync->setES(setup); // Access the magnetic field ESHandle<MagneticField> magneticField; setup.get<IdealMagneticFieldRecord>().get(magneticField); magField = &*magneticField; }
void TransientTrackFromFTS::setTrackingGeometry | ( | const edm::ESHandle< GlobalTrackingGeometry > & | tg | ) | [virtual] |
Implements reco::BasicTransientTrack.
Definition at line 53 of file TransientTrackFromFTS.cc.
References theTrackingGeometry.
{ theTrackingGeometry = tg; }
TrajectoryStateClosestToBeamLine TransientTrackFromFTS::stateAtBeamLine | ( | ) | const [virtual] |
Implements reco::BasicTransientTrack.
Definition at line 129 of file TransientTrackFromFTS.cc.
References blStateAvailable, initialFTS, theBeamSpot, and trajectoryStateClosestToBeamLine.
{ if (!blStateAvailable) { TSCBLBuilderNoMaterial blsBuilder; trajectoryStateClosestToBeamLine = blsBuilder(initialFTS, theBeamSpot); blStateAvailable = true; } return trajectoryStateClosestToBeamLine; }
TrajectoryStateOnSurface TransientTrackFromFTS::stateOnSurface | ( | const GlobalPoint & | point | ) | const [virtual] |
The TSOS at any point. The initial state will be used for the propagation.
Implements reco::BasicTransientTrack.
Definition at line 108 of file TransientTrackFromFTS.cc.
References TransverseImpactPointExtrapolator::extrapolate(), initialFTS, and theField.
{ TransverseImpactPointExtrapolator tipe(theField); return tipe.extrapolate(initialFTS, point); }
const Track & TransientTrackFromFTS::track | ( | void | ) | const [virtual] |
Implements reco::BasicTransientTrack.
Definition at line 114 of file TransientTrackFromFTS.cc.
References FreeTrajectoryState::charge(), FreeTrajectoryState::curvilinearError(), initialFTS, FreeTrajectoryState::momentum(), L1TEmulatorMonitor_cff::p, pos, FreeTrajectoryState::position(), theTrack, trackAvailable, and v.
{ if (!trackAvailable) { GlobalPoint v = initialFTS.position(); math::XYZPoint pos( v.x(), v.y(), v.z() ); GlobalVector p = initialFTS.momentum(); math::XYZVector mom( p.x(), p.y(), p.z() ); theTrack = Track(0., 0., pos, mom, initialFTS.charge(), initialFTS.curvilinearError()); trackAvailable = true; } return theTrack; }
TrackBaseRef TransientTrackFromFTS::trackBaseRef | ( | ) | const [virtual] |
Implements reco::BasicTransientTrack.
Definition at line 93 of file TransientTrackFromFTS.cc.
References Exception.
{ throw cms::Exception("LogicError") << "TransientTrack built from a FreeTrajectoryState (TransientTrackFromFTS) can not have an TrackBaseRef"; }
TrajectoryStateClosestToPoint reco::TransientTrackFromFTS::trajectoryStateClosestToPoint | ( | const GlobalPoint & | point | ) | const [inline, virtual] |
Implements reco::BasicTransientTrack.
Definition at line 42 of file TransientTrackFromFTS.h.
References builder, and initialFTS.
{return builder(initialFTS, point);}
bool reco::TransientTrackFromFTS::blStateAvailable [mutable, private] |
Definition at line 72 of file TransientTrackFromFTS.h.
Referenced by setBeamSpot(), and stateAtBeamLine().
Definition at line 76 of file TransientTrackFromFTS.h.
Referenced by impactPointTSCP(), and trajectoryStateClosestToPoint().
Definition at line 70 of file TransientTrackFromFTS.h.
Referenced by calculateTSOSAtVertex(), charge(), impactPointTSCP(), initialFreeState(), stateAtBeamLine(), stateOnSurface(), track(), and trajectoryStateClosestToPoint().
TrajectoryStateClosestToPoint reco::TransientTrackFromFTS::initialTSCP [mutable, private] |
Definition at line 74 of file TransientTrackFromFTS.h.
Referenced by impactPointTSCP(), and TransientTrackFromFTS().
bool reco::TransientTrackFromFTS::initialTSCPAvailable [mutable, private] |
Definition at line 72 of file TransientTrackFromFTS.h.
Referenced by impactPointTSCP(), and TransientTrackFromFTS().
TrajectoryStateOnSurface reco::TransientTrackFromFTS::initialTSOS [mutable, private] |
Definition at line 73 of file TransientTrackFromFTS.h.
Referenced by calculateTSOSAtVertex(), impactPointState(), and TransientTrackFromFTS().
bool reco::TransientTrackFromFTS::initialTSOSAvailable [mutable, private] |
Definition at line 72 of file TransientTrackFromFTS.h.
Referenced by calculateTSOSAtVertex(), impactPointState(), impactPointStateAvailable(), and TransientTrackFromFTS().
Definition at line 78 of file TransientTrackFromFTS.h.
Referenced by setBeamSpot(), and stateAtBeamLine().
const MagneticField* reco::TransientTrackFromFTS::theField [private] |
Definition at line 71 of file TransientTrackFromFTS.h.
Referenced by calculateTSOSAtVertex(), field(), and stateOnSurface().
Track reco::TransientTrackFromFTS::theTrack [mutable, private] |
Definition at line 75 of file TransientTrackFromFTS.h.
Referenced by track().
Definition at line 77 of file TransientTrackFromFTS.h.
Referenced by setTrackingGeometry().
bool reco::TransientTrackFromFTS::trackAvailable [mutable, private] |
Definition at line 72 of file TransientTrackFromFTS.h.
Referenced by track().
TrajectoryStateClosestToBeamLine reco::TransientTrackFromFTS::trajectoryStateClosestToBeamLine [mutable, private] |
Definition at line 79 of file TransientTrackFromFTS.h.
Referenced by stateAtBeamLine().