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 ReferenceCountedPoolAllocated BlockWipedPoolAllocated

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 ~BasicTransientTrack ()
 
- Public Member Functions inherited from ReferenceCountedPoolAllocated
void addReference () const
 
const
ReferenceCountedPoolAllocated
operator= (const ReferenceCountedPoolAllocated &)
 
 ReferenceCountedPoolAllocated ()
 
 ReferenceCountedPoolAllocated (const ReferenceCountedPoolAllocated &iRHS)
 
unsigned int references () const
 
void removeReference () const
 
virtual ~ReferenceCountedPoolAllocated ()
 
- Public Member Functions inherited from BlockWipedPoolAllocated
virtual ~BlockWipedPoolAllocated ()
 

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
 
- Static Public Member Functions inherited from BlockWipedPoolAllocated
static BlockWipedAllocatorallocator (size_t s)
 
static void operator delete (void *p, size_t s)
 
static void * operator new (size_t s, void *p)
 
static void * operator new (size_t s)
 
static BlockWipedAllocator::Stat stat (size_t s)
 
static void usePool ()
 
- Static Public Attributes inherited from ReferenceCountedPoolAllocated
static int s_alive =0
 
static int s_referenced =0
 
- Static Public Attributes inherited from BlockWipedPoolAllocated
static int s_alive =0
 

Detailed Description

Definition at line 16 of file TransientTrackFromFTS.h.

Constructor & Destructor Documentation

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

Definition at line 16 of file TransientTrackFromFTS.cc.

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

Definition at line 23 of file TransientTrackFromFTS.cc.

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

Definition at line 31 of file TransientTrackFromFTS.cc.

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

31  :
34 {
35  if (tt.initialTSOSAvailable) {
37  initialTSOSAvailable = true;
38  }
39  if (tt.initialTSCPAvailable) {
41  initialTSCPAvailable = true;
42  }
43 }
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 71 of file TransientTrackFromFTS.cc.

References builder, initialFTS, initialTSCP, initialTSCPAvailable, and FreeTrajectoryState::position().

Referenced by TransientTrackFromFTS().

72 {
73  if (!initialTSCPAvailable) {
75  initialTSCPAvailable = true;
76  }
77  return initialTSCP;
78 }
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 86 of file TransientTrackFromFTS.cc.

References edm::hlt::Exception.

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

Implements reco::BasicTransientTrack.

Definition at line 80 of file TransientTrackFromFTS.cc.

References edm::hlt::Exception.

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

Implements reco::BasicTransientTrack.

Definition at line 58 of file TransientTrackFromFTS.cc.

References blStateAvailable, and theBeamSpot.

59 {
60  theBeamSpot = beamSpot;
61  blStateAvailable = false;
62 }
void TransientTrackFromFTS::setES ( const edm::EventSetup setup)
virtual

Implements reco::BasicTransientTrack.

Definition at line 47 of file TransientTrackFromFTS.cc.

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

48 {
50 }
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 53 of file TransientTrackFromFTS.cc.

References theTrackingGeometry.

54 {
56 }
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 108 of file TransientTrackFromFTS.cc.

References TransverseImpactPointExtrapolator::extrapolate(), initialFTS, and theField.

109 {
111  return tipe.extrapolate(initialFTS, point);
112 }
const MagneticField * theField
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.

115 {
116  if (!trackAvailable) {
118  math::XYZPoint pos( v.x(), v.y(), v.z() );
120  math::XYZVector mom( p.x(), p.y(), p.z() );
121 
122  theTrack = Track(0., 0., pos, mom, initialFTS.charge(),
124  trackAvailable = true;
125  }
126  return theTrack;
127 }
T y() const
Definition: PV3DBase.h:57
TrackCharge charge() const
const CurvilinearTrajectoryError & curvilinearError() const
T z() const
Definition: PV3DBase.h:58
GlobalVector momentum() const
GlobalPoint position() const
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:13
T x() const
Definition: PV3DBase.h:56
mathSSE::Vec4< T > v
TrackBaseRef TransientTrackFromFTS::trackBaseRef ( ) const
virtual

Implements reco::BasicTransientTrack.

Definition at line 93 of file TransientTrackFromFTS.cc.

References edm::hlt::Exception.

94 {
95  throw cms::Exception("LogicError") <<
96  "TransientTrack built from a FreeTrajectoryState (TransientTrackFromFTS) can not have an TrackBaseRef";
97 }
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().