#include <TransientTrackFromFTS.h>
Definition at line 16 of file TransientTrackFromFTS.h.
TransientTrackFromFTS::TransientTrackFromFTS | ( | ) |
Definition at line 12 of file TransientTrackFromFTS.cc.
: theField(0), initialTSOSAvailable(false), initialTSCPAvailable(false), trackAvailable(false), blStateAvailable(false) {}
TransientTrackFromFTS::TransientTrackFromFTS | ( | const FreeTrajectoryState & | fts | ) |
Definition at line 17 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 24 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 32 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 94 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 66 of file TransientTrackFromFTS.cc.
References calculateTSOSAtVertex(), initialTSOS, initialTSOSAvailable, and unlikely.
Referenced by TransientTrackFromFTS().
{ if unlikely(!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 72 of file TransientTrackFromFTS.cc.
References builder, initialFTS, initialTSCP, initialTSCPAvailable, FreeTrajectoryState::position(), and unlikely.
Referenced by TransientTrackFromFTS().
{ if unlikely(!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 87 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 81 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 59 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 54 of file TransientTrackFromFTS.cc.
References theTrackingGeometry.
{ theTrackingGeometry = tg; }
TrajectoryStateClosestToBeamLine TransientTrackFromFTS::stateAtBeamLine | ( | ) | const [virtual] |
Implements reco::BasicTransientTrack.
Definition at line 123 of file TransientTrackFromFTS.cc.
References blStateAvailable, initialFTS, theBeamSpot, trajectoryStateClosestToBeamLine, and unlikely.
{ if unlikely(!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 102 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 108 of file TransientTrackFromFTS.cc.
References FreeTrajectoryState::charge(), FreeTrajectoryState::curvilinearError(), initialFTS, FreeTrajectoryState::momentum(), AlCaHLTBitMon_ParallelJobs::p, pos, FreeTrajectoryState::position(), theTrack, trackAvailable, unlikely, and v.
{ if unlikely(!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 reco::TransientTrackFromFTS::trackBaseRef | ( | ) | const [inline, virtual] |
Implements reco::BasicTransientTrack.
Definition at line 62 of file TransientTrackFromFTS.h.
{ return 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().