CMS 3D CMS Logo

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

Public Member Functions

TrackCharge charge () const override
 
double dtErrorExt () const override
 
const MagneticFieldfield () const override
 
TrajectoryStateOnSurface impactPointState () const override
 
bool impactPointStateAvailable () const override
 
TrajectoryStateClosestToPoint impactPointTSCP () const override
 
FreeTrajectoryState initialFreeState () const override
 
TrajectoryStateOnSurface innermostMeasurementState () const override
 
TransientTrackFromFTSoperator= (const TransientTrackFromFTS &tt)
 
TrajectoryStateOnSurface outermostMeasurementState () const override
 
void setBeamSpot (const reco::BeamSpot &beamSpot) override
 
void setTrackingGeometry (const edm::ESHandle< GlobalTrackingGeometry > &) override
 
TrajectoryStateClosestToBeamLine stateAtBeamLine () const override
 
TrajectoryStateOnSurface stateOnSurface (const GlobalPoint &point) const override
 
double timeExt () const override
 
const Tracktrack () const override
 
TrackBaseRef trackBaseRef () const override
 
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint (const GlobalPoint &point) const override
 
 TransientTrackFromFTS ()
 
 TransientTrackFromFTS (const FreeTrajectoryState &fts)
 
 TransientTrackFromFTS (const FreeTrajectoryState &fts, const double time, const double dtime)
 
 TransientTrackFromFTS (const FreeTrajectoryState &fts, const double time, const double dtime, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 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 ()
 

Private Member Functions

void calculateTSOSAtVertex () const
 

Private Attributes

bool blStateAvailable
 
TSCPBuilderNoMaterial builder
 
double dtErrorExt_
 
bool hasTime
 
FreeTrajectoryState initialFTS
 
TrajectoryStateClosestToPoint initialTSCP
 
bool initialTSCPAvailable
 
TrajectoryStateOnSurface initialTSOS
 
bool initialTSOSAvailable
 
reco::BeamSpot theBeamSpot
 
const MagneticFieldtheField
 
Track theTrack
 
edm::ESHandle< GlobalTrackingGeometrytheTrackingGeometry
 
double timeExt_
 
bool trackAvailable
 
TrajectoryStateClosestToBeamLine trajectoryStateClosestToBeamLine
 

Additional Inherited Members

- Public Types inherited from reco::BasicTransientTrack
using BTT = BasicTransientTrack
 
using Proxy = ProxyBase11< BTT >
 

Detailed Description

Definition at line 16 of file TransientTrackFromFTS.h.

Constructor & Destructor Documentation

◆ TransientTrackFromFTS() [1/6]

TransientTrackFromFTS::TransientTrackFromFTS ( )

Definition at line 12 of file TransientTrackFromFTS.cc.

13  : hasTime(false),
14  timeExt_(0.),
15  dtErrorExt_(0.),
16  theField(nullptr),
17  initialTSOSAvailable(false),
18  initialTSCPAvailable(false),
19  trackAvailable(false),
20  blStateAvailable(false) {}

◆ TransientTrackFromFTS() [2/6]

TransientTrackFromFTS::TransientTrackFromFTS ( const FreeTrajectoryState fts)

Definition at line 22 of file TransientTrackFromFTS.cc.

23  : initialFTS(fts),
24  hasTime(false),
25  timeExt_(0.),
26  dtErrorExt_(0.),
28  initialTSOSAvailable(false),
29  initialTSCPAvailable(false),
30  trackAvailable(false),
31  blStateAvailable(false) {}

◆ TransientTrackFromFTS() [3/6]

TransientTrackFromFTS::TransientTrackFromFTS ( const FreeTrajectoryState fts,
const double  time,
const double  dtime 
)

Definition at line 33 of file TransientTrackFromFTS.cc.

34  : initialFTS(fts),
35  hasTime(true),
36  timeExt_(time),
37  dtErrorExt_(dtime),
39  initialTSOSAvailable(false),
40  initialTSCPAvailable(false),
41  trackAvailable(false),
42  blStateAvailable(false) {}

◆ TransientTrackFromFTS() [4/6]

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

Definition at line 44 of file TransientTrackFromFTS.cc.

46  : initialFTS(fts),
47  hasTime(false),
48  timeExt_(0.),
49  dtErrorExt_(0.),
51  initialTSOSAvailable(false),
52  initialTSCPAvailable(false),
53  trackAvailable(false),
54  blStateAvailable(false),
55  theTrackingGeometry(tg) {}

◆ TransientTrackFromFTS() [5/6]

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

Definition at line 57 of file TransientTrackFromFTS.cc.

61  : initialFTS(fts),
62  hasTime(true),
63  timeExt_(time),
64  dtErrorExt_(dtime),
66  initialTSOSAvailable(false),
67  initialTSCPAvailable(false),
68  trackAvailable(false),
69  blStateAvailable(false),
70  theTrackingGeometry(tg) {}

◆ TransientTrackFromFTS() [6/6]

TransientTrackFromFTS::TransientTrackFromFTS ( const TransientTrackFromFTS tt)

Definition at line 72 of file TransientTrackFromFTS.cc.

73  : initialFTS(tt.initialFreeState()),
74  hasTime(tt.hasTime),
75  timeExt_(tt.timeExt_),
76  dtErrorExt_(tt.dtErrorExt_),
77  theField(tt.field()),
78  initialTSOSAvailable(false),
79  initialTSCPAvailable(false),
80  trackAvailable(false) {
81  if (tt.initialTSOSAvailable) {
82  initialTSOS = tt.impactPointState();
83  initialTSOSAvailable = true;
84  }
85  if (tt.initialTSCPAvailable) {
86  initialTSCP = tt.impactPointTSCP();
87  initialTSCPAvailable = true;
88  }
89 }

References initialTSCP, initialTSCPAvailable, initialTSOS, initialTSOSAvailable, and groupFilesInBlocks::tt.

Member Function Documentation

◆ calculateTSOSAtVertex()

void TransientTrackFromFTS::calculateTSOSAtVertex ( ) const
private

◆ charge()

TrackCharge reco::TransientTrackFromFTS::charge ( void  ) const
inlineoverridevirtual

Implements reco::BasicTransientTrack.

Definition at line 59 of file TransientTrackFromFTS.h.

59 { return initialFTS.charge(); }

References FreeTrajectoryState::charge(), and initialFTS.

◆ dtErrorExt()

double reco::TransientTrackFromFTS::dtErrorExt ( ) const
inlineoverridevirtual

Implements reco::BasicTransientTrack.

Definition at line 70 of file TransientTrackFromFTS.h.

70 { return (hasTime ? dtErrorExt_ : std::numeric_limits<double>::quiet_NaN()); }

References dtErrorExt_, and hasTime.

◆ field()

const MagneticField* reco::TransientTrackFromFTS::field ( ) const
inlineoverridevirtual

Implements reco::BasicTransientTrack.

Definition at line 61 of file TransientTrackFromFTS.h.

61 { return theField; }

References theField.

◆ impactPointState()

TrajectoryStateOnSurface TransientTrackFromFTS::impactPointState ( ) const
overridevirtual

Implements reco::BasicTransientTrack.

Definition at line 100 of file TransientTrackFromFTS.cc.

100  {
103  return initialTSOS;
104 }

References calculateTSOSAtVertex(), initialTSOS, initialTSOSAvailable, and UNLIKELY.

◆ impactPointStateAvailable()

bool reco::TransientTrackFromFTS::impactPointStateAvailable ( ) const
inlineoverridevirtual

Implements reco::BasicTransientTrack.

Definition at line 57 of file TransientTrackFromFTS.h.

57 { return initialTSOSAvailable; }

References initialTSOSAvailable.

◆ impactPointTSCP()

TrajectoryStateClosestToPoint TransientTrackFromFTS::impactPointTSCP ( ) const
overridevirtual

◆ initialFreeState()

FreeTrajectoryState reco::TransientTrackFromFTS::initialFreeState ( ) const
inlineoverridevirtual

Implements reco::BasicTransientTrack.

Definition at line 38 of file TransientTrackFromFTS.h.

38 { return initialFTS; }

References initialFTS.

◆ innermostMeasurementState()

TrajectoryStateOnSurface TransientTrackFromFTS::innermostMeasurementState ( ) const
overridevirtual

Implements reco::BasicTransientTrack.

Definition at line 119 of file TransientTrackFromFTS.cc.

119  {
120  throw cms::Exception("LogicError") << "TransientTrack built from a FreeTrajectoryState (TransientTrackFromFTS) can "
121  "not have an innermostMeasurementState";
122 }

References Exception.

◆ operator=()

TransientTrackFromFTS& reco::TransientTrackFromFTS::operator= ( const TransientTrackFromFTS tt)

◆ outermostMeasurementState()

TrajectoryStateOnSurface TransientTrackFromFTS::outermostMeasurementState ( ) const
overridevirtual

Implements reco::BasicTransientTrack.

Definition at line 114 of file TransientTrackFromFTS.cc.

114  {
115  throw cms::Exception("LogicError") << "TransientTrack built from a FreeTrajectoryState (TransientTrackFromFTS) can "
116  "not have an outermostMeasurementState";
117 }

References Exception.

◆ setBeamSpot()

void TransientTrackFromFTS::setBeamSpot ( const reco::BeamSpot beamSpot)
overridevirtual

Implements reco::BasicTransientTrack.

Definition at line 95 of file TransientTrackFromFTS.cc.

95  {
97  blStateAvailable = false;
98 }

References pwdgSkimBPark_cfi::beamSpot, blStateAvailable, and theBeamSpot.

◆ setTrackingGeometry()

void TransientTrackFromFTS::setTrackingGeometry ( const edm::ESHandle< GlobalTrackingGeometry > &  tg)
overridevirtual

Implements reco::BasicTransientTrack.

Definition at line 91 of file TransientTrackFromFTS.cc.

91  {
93 }

References theTrackingGeometry.

◆ stateAtBeamLine()

TrajectoryStateClosestToBeamLine TransientTrackFromFTS::stateAtBeamLine ( ) const
overridevirtual

◆ stateOnSurface()

TrajectoryStateOnSurface TransientTrackFromFTS::stateOnSurface ( const GlobalPoint point) const
overridevirtual

The TSOS at any point. The initial state will be used for the propagation.

Implements reco::BasicTransientTrack.

Definition at line 130 of file TransientTrackFromFTS.cc.

130  {
132  return tipe.extrapolate(initialFTS, point);
133 }

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

◆ timeExt()

double reco::TransientTrackFromFTS::timeExt ( ) const
inlineoverridevirtual

Implements reco::BasicTransientTrack.

Definition at line 69 of file TransientTrackFromFTS.h.

69 { return (hasTime ? timeExt_ : std::numeric_limits<double>::quiet_NaN()); }

References hasTime, and timeExt_.

◆ track()

const Track & TransientTrackFromFTS::track ( ) const
overridevirtual

◆ trackBaseRef()

TrackBaseRef reco::TransientTrackFromFTS::trackBaseRef ( ) const
inlineoverridevirtual

Implements reco::BasicTransientTrack.

Definition at line 65 of file TransientTrackFromFTS.h.

65 { return TrackBaseRef(); }

◆ trajectoryStateClosestToPoint()

TrajectoryStateClosestToPoint reco::TransientTrackFromFTS::trajectoryStateClosestToPoint ( const GlobalPoint point) const
inlineoverridevirtual

Implements reco::BasicTransientTrack.

Definition at line 44 of file TransientTrackFromFTS.h.

44  {
45  return builder(initialFTS, point);
46  }

References builder, initialFTS, and point.

Member Data Documentation

◆ blStateAvailable

bool reco::TransientTrackFromFTS::blStateAvailable
mutableprivate

Definition at line 80 of file TransientTrackFromFTS.h.

Referenced by setBeamSpot(), and stateAtBeamLine().

◆ builder

TSCPBuilderNoMaterial reco::TransientTrackFromFTS::builder
private

Definition at line 84 of file TransientTrackFromFTS.h.

Referenced by impactPointTSCP(), and trajectoryStateClosestToPoint().

◆ dtErrorExt_

double reco::TransientTrackFromFTS::dtErrorExt_
private

Definition at line 78 of file TransientTrackFromFTS.h.

Referenced by dtErrorExt().

◆ hasTime

bool reco::TransientTrackFromFTS::hasTime
private

Definition at line 76 of file TransientTrackFromFTS.h.

Referenced by dtErrorExt(), and timeExt().

◆ initialFTS

FreeTrajectoryState reco::TransientTrackFromFTS::initialFTS
private

◆ initialTSCP

TrajectoryStateClosestToPoint reco::TransientTrackFromFTS::initialTSCP
mutableprivate

Definition at line 82 of file TransientTrackFromFTS.h.

Referenced by impactPointTSCP(), and TransientTrackFromFTS().

◆ initialTSCPAvailable

bool reco::TransientTrackFromFTS::initialTSCPAvailable
mutableprivate

Definition at line 80 of file TransientTrackFromFTS.h.

Referenced by impactPointTSCP(), and TransientTrackFromFTS().

◆ initialTSOS

TrajectoryStateOnSurface reco::TransientTrackFromFTS::initialTSOS
mutableprivate

◆ initialTSOSAvailable

bool reco::TransientTrackFromFTS::initialTSOSAvailable
mutableprivate

◆ theBeamSpot

reco::BeamSpot reco::TransientTrackFromFTS::theBeamSpot
private

Definition at line 86 of file TransientTrackFromFTS.h.

Referenced by setBeamSpot(), and stateAtBeamLine().

◆ theField

const MagneticField* reco::TransientTrackFromFTS::theField
private

Definition at line 79 of file TransientTrackFromFTS.h.

Referenced by calculateTSOSAtVertex(), field(), and stateOnSurface().

◆ theTrack

Track reco::TransientTrackFromFTS::theTrack
mutableprivate

Definition at line 83 of file TransientTrackFromFTS.h.

Referenced by track().

◆ theTrackingGeometry

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

Definition at line 85 of file TransientTrackFromFTS.h.

Referenced by setTrackingGeometry().

◆ timeExt_

double reco::TransientTrackFromFTS::timeExt_
private

Definition at line 77 of file TransientTrackFromFTS.h.

Referenced by timeExt().

◆ trackAvailable

bool reco::TransientTrackFromFTS::trackAvailable
mutableprivate

Definition at line 80 of file TransientTrackFromFTS.h.

Referenced by track().

◆ trajectoryStateClosestToBeamLine

TrajectoryStateClosestToBeamLine reco::TransientTrackFromFTS::trajectoryStateClosestToBeamLine
mutableprivate

Definition at line 87 of file TransientTrackFromFTS.h.

Referenced by stateAtBeamLine().

Vector3DBase
Definition: Vector3DBase.h:8
FreeTrajectoryState::momentum
GlobalVector momentum() const
Definition: FreeTrajectoryState.h:68
reco::TransientTrackFromFTS::initialTSCPAvailable
bool initialTSCPAvailable
Definition: TransientTrackFromFTS.h:80
pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
reco::TransientTrackFromFTS::hasTime
bool hasTime
Definition: TransientTrackFromFTS.h:76
groupFilesInBlocks.tt
int tt
Definition: groupFilesInBlocks.py:144
reco::TransientTrackFromFTS::initialTSOS
TrajectoryStateOnSurface initialTSOS
Definition: TransientTrackFromFTS.h:81
pos
Definition: PixelAliasList.h:18
FreeTrajectoryState::charge
TrackCharge charge() const
Definition: FreeTrajectoryState.h:69
protons_cff.time
time
Definition: protons_cff.py:35
reco::TrackBaseRef
edm::RefToBase< reco::Track > TrackBaseRef
persistent reference to a Track, using views
Definition: TrackFwd.h:35
TransverseImpactPointExtrapolator
Definition: TransverseImpactPointExtrapolator.h:26
FreeTrajectoryState::position
GlobalPoint position() const
Definition: FreeTrajectoryState.h:67
findQualityFiles.v
v
Definition: findQualityFiles.py:179
UNLIKELY
#define UNLIKELY(x)
Definition: Likely.h:21
reco::TransientTrackFromFTS::builder
TSCPBuilderNoMaterial builder
Definition: TransientTrackFromFTS.h:84
reco::TransientTrackFromFTS::blStateAvailable
bool blStateAvailable
Definition: TransientTrackFromFTS.h:80
reco::TransientTrackFromFTS::initialTSCP
TrajectoryStateClosestToPoint initialTSCP
Definition: TransientTrackFromFTS.h:82
FreeTrajectoryState::curvilinearError
const CurvilinearTrajectoryError & curvilinearError() const
Definition: FreeTrajectoryState.h:89
reco::TransientTrackFromFTS::theField
const MagneticField * theField
Definition: TransientTrackFromFTS.h:79
reco::Track
Definition: Track.h:27
reco::TransientTrackFromFTS::theTrackingGeometry
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
Definition: TransientTrackFromFTS.h:85
Point3DBase< float, GlobalTag >
math::XYZPoint
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
reco::TransientTrackFromFTS::timeExt_
double timeExt_
Definition: TransientTrackFromFTS.h:77
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
FreeTrajectoryState::parameters
const GlobalTrajectoryParameters & parameters() const
Definition: FreeTrajectoryState.h:79
reco::TransientTrackFromFTS::theBeamSpot
reco::BeamSpot theBeamSpot
Definition: TransientTrackFromFTS.h:86
TSCBLBuilderNoMaterial
Definition: TSCBLBuilderNoMaterial.h:13
Exception
Definition: hltDiff.cc:245
reco::TransientTrackFromFTS::trackAvailable
bool trackAvailable
Definition: TransientTrackFromFTS.h:80
reco::TransientTrackFromFTS::theTrack
Track theTrack
Definition: TransientTrackFromFTS.h:83
GlobalTrajectoryParameters::magneticField
const MagneticField & magneticField() const
Definition: GlobalTrajectoryParameters.h:106
reco::TransientTrackFromFTS::calculateTSOSAtVertex
void calculateTSOSAtVertex() const
Definition: TransientTrackFromFTS.cc:124
reco::TransientTrackFromFTS::initialTSOSAvailable
bool initialTSOSAvailable
Definition: TransientTrackFromFTS.h:80
reco::TransientTrackFromFTS::trajectoryStateClosestToBeamLine
TrajectoryStateClosestToBeamLine trajectoryStateClosestToBeamLine
Definition: TransientTrackFromFTS.h:87
point
*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
Definition: invegas.h:5
reco::TransientTrackFromFTS::initialFTS
FreeTrajectoryState initialFTS
Definition: TransientTrackFromFTS.h:75
reco::TransientTrackFromFTS::dtErrorExt_
double dtErrorExt_
Definition: TransientTrackFromFTS.h:78