CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
reco::TransientTrackFromFTS Class Reference

#include <TransientTrackFromFTS.h>

Inheritance diagram for reco::TransientTrackFromFTS:
reco::BasicTransientTrack BasicReferenceCounted

Public Member Functions

TrackCharge charge () const
 
const MagneticFieldfield () const
 
TrajectoryStateOnSurface impactPointState () const
 
bool impactPointStateAvailable () const
 
TrajectoryStateClosestToPoint impactPointTSCP () const
 
FreeTrajectoryState initialFreeState () const
 
TrajectoryStateOnSurface innermostMeasurementState () const
 
TransientTrackFromFTSoperator= (const TransientTrackFromFTS &tt)
 
TrajectoryStateOnSurface outermostMeasurementState () const
 
void setBeamSpot (const reco::BeamSpot &beamSpot)
 
void setES (const edm::EventSetup &)
 
void setTrackingGeometry (const edm::ESHandle< GlobalTrackingGeometry > &)
 
TrajectoryStateClosestToBeamLine stateAtBeamLine () const
 
TrajectoryStateOnSurface stateOnSurface (const GlobalPoint &point) const
 
const Tracktrack () const
 
TrackBaseRef trackBaseRef () const
 
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint (const GlobalPoint &point) const
 
 TransientTrackFromFTS ()
 
 TransientTrackFromFTS (const FreeTrajectoryState &fts)
 
 TransientTrackFromFTS (const FreeTrajectoryState &fts, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 TransientTrackFromFTS (const TransientTrackFromFTS &tt)
 
- Public Member Functions inherited from reco::BasicTransientTrack
virtual CandidatePtr candidate () const
 
virtual ~BasicTransientTrack ()
 
- Public Member Functions inherited from BasicReferenceCounted
void addReference () const
 
 BasicReferenceCounted ()
 
 BasicReferenceCounted (const BasicReferenceCounted &iRHS)
 
const BasicReferenceCountedoperator= (const BasicReferenceCounted &)
 
unsigned int references () const
 
void removeReference () const
 
virtual ~BasicReferenceCounted ()
 

Private Member Functions

void calculateTSOSAtVertex () const
 

Private Attributes

bool blStateAvailable
 
TSCPBuilderNoMaterial builder
 
FreeTrajectoryState initialFTS
 
TrajectoryStateClosestToPoint initialTSCP
 
bool initialTSCPAvailable
 
TrajectoryStateOnSurface initialTSOS
 
bool initialTSOSAvailable
 
reco::BeamSpot theBeamSpot
 
const MagneticFieldtheField
 
Track theTrack
 
edm::ESHandle
< GlobalTrackingGeometry
theTrackingGeometry
 
bool trackAvailable
 
TrajectoryStateClosestToBeamLine trajectoryStateClosestToBeamLine
 

Additional Inherited Members

- Public Types inherited from reco::BasicTransientTrack
typedef BasicTransientTrack BTT
 
typedef ProxyBase< BTT,
CopyUsingClone< BTT > > 
Proxy
 
typedef
ReferenceCountingPointer
< BasicTransientTrack
RCPtr
 

Detailed Description

Definition at line 16 of file TransientTrackFromFTS.h.

Constructor & Destructor Documentation

TransientTrackFromFTS::TransientTrackFromFTS ( )
TransientTrackFromFTS::TransientTrackFromFTS ( const FreeTrajectoryState fts)

Definition at line 17 of file TransientTrackFromFTS.cc.

TransientTrackFromFTS::TransientTrackFromFTS ( const FreeTrajectoryState fts,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 24 of file TransientTrackFromFTS.cc.

25  :
29 {}
const GlobalTrajectoryParameters & parameters() const
const MagneticField * theField
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
const MagneticField & magneticField() const
TransientTrackFromFTS::TransientTrackFromFTS ( const TransientTrackFromFTS tt)

Definition at line 32 of file TransientTrackFromFTS.cc.

References impactPointState(), impactPointTSCP(), initialTSCP, initialTSCPAvailable, initialTSOS, and initialTSOSAvailable.

32  :
35 {
36  if (tt.initialTSOSAvailable) {
38  initialTSOSAvailable = true;
39  }
40  if (tt.initialTSCPAvailable) {
42  initialTSCPAvailable = true;
43  }
44 }
TrajectoryStateOnSurface initialTSOS
const MagneticField * theField
TrajectoryStateClosestToPoint initialTSCP
const MagneticField * field() const
FreeTrajectoryState initialFreeState() const
TrajectoryStateClosestToPoint impactPointTSCP() const
TrajectoryStateOnSurface impactPointState() const

Member Function Documentation

void TransientTrackFromFTS::calculateTSOSAtVertex ( ) const
private
TrackCharge reco::TransientTrackFromFTS::charge ( void  ) const
inlinevirtual

Implements reco::BasicTransientTrack.

Definition at line 56 of file TransientTrackFromFTS.h.

References FreeTrajectoryState::charge(), and initialFTS.

56 {return initialFTS.charge();}
TrackCharge charge() const
const MagneticField* reco::TransientTrackFromFTS::field ( ) const
inlinevirtual

Implements reco::BasicTransientTrack.

Definition at line 58 of file TransientTrackFromFTS.h.

References theField.

58 {return theField;}
const MagneticField * theField
TrajectoryStateOnSurface TransientTrackFromFTS::impactPointState ( ) const
virtual
bool reco::TransientTrackFromFTS::impactPointStateAvailable ( ) const
inlinevirtual

Implements reco::BasicTransientTrack.

Definition at line 54 of file TransientTrackFromFTS.h.

References 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().

73 {
76  initialTSCPAvailable = true;
77  }
78  return initialTSCP;
79 }
#define unlikely(x)
TrajectoryStateClosestToPoint initialTSCP
GlobalPoint position() const
FreeTrajectoryState reco::TransientTrackFromFTS::initialFreeState ( ) const
inlinevirtual

Implements reco::BasicTransientTrack.

Definition at line 35 of file TransientTrackFromFTS.h.

References initialFTS.

35 {return initialFTS;}
TrajectoryStateOnSurface TransientTrackFromFTS::innermostMeasurementState ( ) const
virtual

Implements reco::BasicTransientTrack.

Definition at line 87 of file TransientTrackFromFTS.cc.

References edm::hlt::Exception.

88 {
89  throw cms::Exception("LogicError") <<
90  "TransientTrack built from a FreeTrajectoryState (TransientTrackFromFTS) can not have an innermostMeasurementState";
91 }
TransientTrackFromFTS& reco::TransientTrackFromFTS::operator= ( const TransientTrackFromFTS tt)
TrajectoryStateOnSurface TransientTrackFromFTS::outermostMeasurementState ( ) const
virtual

Implements reco::BasicTransientTrack.

Definition at line 81 of file TransientTrackFromFTS.cc.

References edm::hlt::Exception.

82 {
83  throw cms::Exception("LogicError") <<
84  "TransientTrack built from a FreeTrajectoryState (TransientTrackFromFTS) can not have an outermostMeasurementState";
85 }
void TransientTrackFromFTS::setBeamSpot ( const reco::BeamSpot beamSpot)
virtual
void TransientTrackFromFTS::setES ( const edm::EventSetup setup)
virtual

Implements reco::BasicTransientTrack.

Definition at line 48 of file TransientTrackFromFTS.cc.

References edm::EventSetup::get(), and theTrackingGeometry.

49 {
51 }
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
const T & get() const
Definition: EventSetup.h:55
void TransientTrackFromFTS::setTrackingGeometry ( const edm::ESHandle< GlobalTrackingGeometry > &  tg)
virtual

Implements reco::BasicTransientTrack.

Definition at line 54 of file TransientTrackFromFTS.cc.

References theTrackingGeometry.

55 {
57 }
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
TrajectoryStateClosestToBeamLine TransientTrackFromFTS::stateAtBeamLine ( ) const
virtual
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.

103 {
105  return tipe.extrapolate(initialFTS, point);
106 }
const MagneticField * theField
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, FreeTrajectoryState::position(), theTrack, trackAvailable, unlikely, and findQualityFiles::v.

109 {
110  if unlikely(!trackAvailable) {
112  math::XYZPoint pos( v.x(), v.y(), v.z() );
114  math::XYZVector mom( p.x(), p.y(), p.z() );
115 
116  theTrack = Track(0., 0., pos, mom, initialFTS.charge(),
118  trackAvailable = true;
119  }
120  return theTrack;
121 }
T y() const
Definition: PV3DBase.h:63
TrackCharge charge() const
const CurvilinearTrajectoryError & curvilinearError() const
#define unlikely(x)
T z() const
Definition: PV3DBase.h:64
GlobalVector momentum() const
GlobalPoint position() const
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:30
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
T x() const
Definition: PV3DBase.h:62
TrackBaseRef reco::TransientTrackFromFTS::trackBaseRef ( ) const
inlinevirtual

Implements reco::BasicTransientTrack.

Definition at line 62 of file TransientTrackFromFTS.h.

62 { return TrackBaseRef();}
edm::RefToBase< reco::Track > TrackBaseRef
persistent reference to a Track, using views
Definition: TrackFwd.h:31
TrajectoryStateClosestToPoint reco::TransientTrackFromFTS::trajectoryStateClosestToPoint ( const GlobalPoint point) const
inlinevirtual

Implements reco::BasicTransientTrack.

Definition at line 42 of file TransientTrackFromFTS.h.

References builder, and initialFTS.

43  {return builder(initialFTS, point);}

Member Data Documentation

bool reco::TransientTrackFromFTS::blStateAvailable
mutableprivate

Definition at line 72 of file TransientTrackFromFTS.h.

Referenced by setBeamSpot(), and stateAtBeamLine().

TSCPBuilderNoMaterial reco::TransientTrackFromFTS::builder
private

Definition at line 76 of file TransientTrackFromFTS.h.

Referenced by impactPointTSCP(), and trajectoryStateClosestToPoint().

FreeTrajectoryState reco::TransientTrackFromFTS::initialFTS
private
TrajectoryStateClosestToPoint reco::TransientTrackFromFTS::initialTSCP
mutableprivate

Definition at line 74 of file TransientTrackFromFTS.h.

Referenced by impactPointTSCP(), and TransientTrackFromFTS().

bool reco::TransientTrackFromFTS::initialTSCPAvailable
mutableprivate

Definition at line 72 of file TransientTrackFromFTS.h.

Referenced by impactPointTSCP(), and TransientTrackFromFTS().

TrajectoryStateOnSurface reco::TransientTrackFromFTS::initialTSOS
mutableprivate
bool reco::TransientTrackFromFTS::initialTSOSAvailable
mutableprivate
reco::BeamSpot reco::TransientTrackFromFTS::theBeamSpot
private

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
mutableprivate

Definition at line 75 of file TransientTrackFromFTS.h.

Referenced by track().

edm::ESHandle<GlobalTrackingGeometry> reco::TransientTrackFromFTS::theTrackingGeometry
private

Definition at line 77 of file TransientTrackFromFTS.h.

Referenced by setES(), and setTrackingGeometry().

bool reco::TransientTrackFromFTS::trackAvailable
mutableprivate

Definition at line 72 of file TransientTrackFromFTS.h.

Referenced by track().

TrajectoryStateClosestToBeamLine reco::TransientTrackFromFTS::trajectoryStateClosestToBeamLine
mutableprivate

Definition at line 79 of file TransientTrackFromFTS.h.

Referenced by stateAtBeamLine().