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 setES (const edm::EventSetup &) 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 61 of file TransientTrackFromFTS.h.

61 { return initialFTS.charge(); }

References FreeTrajectoryState::charge(), and initialFTS.

◆ dtErrorExt()

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

Implements reco::BasicTransientTrack.

Definition at line 72 of file TransientTrackFromFTS.h.

72 { 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 63 of file TransientTrackFromFTS.h.

63 { return theField; }

References theField.

◆ impactPointState()

TrajectoryStateOnSurface TransientTrackFromFTS::impactPointState ( ) const
overridevirtual

Implements reco::BasicTransientTrack.

Definition at line 104 of file TransientTrackFromFTS.cc.

104  {
105  if
107  return initialTSOS;
108 }

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

◆ impactPointStateAvailable()

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

Implements reco::BasicTransientTrack.

Definition at line 59 of file TransientTrackFromFTS.h.

59 { return initialTSOSAvailable; }

References initialTSOSAvailable.

◆ impactPointTSCP()

TrajectoryStateClosestToPoint TransientTrackFromFTS::impactPointTSCP ( ) const
overridevirtual

Implements reco::BasicTransientTrack.

Definition at line 110 of file TransientTrackFromFTS.cc.

110  {
111  if
114  initialTSCPAvailable = true;
115  }
116  return initialTSCP;
117 }

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

◆ initialFreeState()

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

Implements reco::BasicTransientTrack.

Definition at line 40 of file TransientTrackFromFTS.h.

40 { return initialFTS; }

References initialFTS.

◆ innermostMeasurementState()

TrajectoryStateOnSurface TransientTrackFromFTS::innermostMeasurementState ( ) const
overridevirtual

Implements reco::BasicTransientTrack.

Definition at line 124 of file TransientTrackFromFTS.cc.

124  {
125  throw cms::Exception("LogicError") << "TransientTrack built from a FreeTrajectoryState (TransientTrackFromFTS) can "
126  "not have an innermostMeasurementState";
127 }

References Exception.

◆ operator=()

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

◆ outermostMeasurementState()

TrajectoryStateOnSurface TransientTrackFromFTS::outermostMeasurementState ( ) 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 outermostMeasurementState";
122 }

References Exception.

◆ setBeamSpot()

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

Implements reco::BasicTransientTrack.

Definition at line 99 of file TransientTrackFromFTS.cc.

99  {
101  blStateAvailable = false;
102 }

References pwdgSkimBPark_cfi::beamSpot, blStateAvailable, and theBeamSpot.

◆ setES()

void TransientTrackFromFTS::setES ( const edm::EventSetup setup)
overridevirtual

◆ setTrackingGeometry()

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

Implements reco::BasicTransientTrack.

Definition at line 95 of file TransientTrackFromFTS.cc.

95  {
97 }

References theTrackingGeometry.

◆ stateAtBeamLine()

TrajectoryStateClosestToBeamLine TransientTrackFromFTS::stateAtBeamLine ( ) const
overridevirtual

Implements reco::BasicTransientTrack.

Definition at line 154 of file TransientTrackFromFTS.cc.

154  {
155  if
157  TSCBLBuilderNoMaterial blsBuilder;
159  blStateAvailable = true;
160  }
162 }

References blStateAvailable, initialFTS, theBeamSpot, trajectoryStateClosestToBeamLine, and UNLIKELY.

◆ 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 135 of file TransientTrackFromFTS.cc.

135  {
137  return tipe.extrapolate(initialFTS, point);
138 }

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

◆ timeExt()

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

Implements reco::BasicTransientTrack.

Definition at line 71 of file TransientTrackFromFTS.h.

71 { 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 67 of file TransientTrackFromFTS.h.

67 { return TrackBaseRef(); }

◆ trajectoryStateClosestToPoint()

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

Implements reco::BasicTransientTrack.

Definition at line 46 of file TransientTrackFromFTS.h.

46  {
47  return builder(initialFTS, point);
48  }

References builder, initialFTS, and point.

Member Data Documentation

◆ blStateAvailable

bool reco::TransientTrackFromFTS::blStateAvailable
mutableprivate

Definition at line 82 of file TransientTrackFromFTS.h.

Referenced by setBeamSpot(), and stateAtBeamLine().

◆ builder

TSCPBuilderNoMaterial reco::TransientTrackFromFTS::builder
private

Definition at line 86 of file TransientTrackFromFTS.h.

Referenced by impactPointTSCP(), and trajectoryStateClosestToPoint().

◆ dtErrorExt_

double reco::TransientTrackFromFTS::dtErrorExt_
private

Definition at line 80 of file TransientTrackFromFTS.h.

Referenced by dtErrorExt().

◆ hasTime

bool reco::TransientTrackFromFTS::hasTime
private

Definition at line 78 of file TransientTrackFromFTS.h.

Referenced by dtErrorExt(), and timeExt().

◆ initialFTS

FreeTrajectoryState reco::TransientTrackFromFTS::initialFTS
private

◆ initialTSCP

TrajectoryStateClosestToPoint reco::TransientTrackFromFTS::initialTSCP
mutableprivate

Definition at line 84 of file TransientTrackFromFTS.h.

Referenced by impactPointTSCP(), and TransientTrackFromFTS().

◆ initialTSCPAvailable

bool reco::TransientTrackFromFTS::initialTSCPAvailable
mutableprivate

Definition at line 82 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 88 of file TransientTrackFromFTS.h.

Referenced by setBeamSpot(), and stateAtBeamLine().

◆ theField

const MagneticField* reco::TransientTrackFromFTS::theField
private

Definition at line 81 of file TransientTrackFromFTS.h.

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

◆ theTrack

Track reco::TransientTrackFromFTS::theTrack
mutableprivate

Definition at line 85 of file TransientTrackFromFTS.h.

Referenced by track().

◆ theTrackingGeometry

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

Definition at line 87 of file TransientTrackFromFTS.h.

Referenced by setES(), and setTrackingGeometry().

◆ timeExt_

double reco::TransientTrackFromFTS::timeExt_
private

Definition at line 79 of file TransientTrackFromFTS.h.

Referenced by timeExt().

◆ trackAvailable

bool reco::TransientTrackFromFTS::trackAvailable
mutableprivate

Definition at line 82 of file TransientTrackFromFTS.h.

Referenced by track().

◆ trajectoryStateClosestToBeamLine

TrajectoryStateClosestToBeamLine reco::TransientTrackFromFTS::trajectoryStateClosestToBeamLine
mutableprivate

Definition at line 89 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:82
pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
reco::TransientTrackFromFTS::hasTime
bool hasTime
Definition: TransientTrackFromFTS.h:78
groupFilesInBlocks.tt
int tt
Definition: groupFilesInBlocks.py:144
reco::TransientTrackFromFTS::initialTSOS
TrajectoryStateOnSurface initialTSOS
Definition: TransientTrackFromFTS.h:83
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
pos
Definition: PixelAliasList.h:18
FreeTrajectoryState::charge
TrackCharge charge() const
Definition: FreeTrajectoryState.h:69
GlobalTrackingGeometryRecord
Definition: GlobalTrackingGeometryRecord.h:17
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
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
UNLIKELY
#define UNLIKELY(x)
Definition: Likely.h:21
reco::TransientTrackFromFTS::builder
TSCPBuilderNoMaterial builder
Definition: TransientTrackFromFTS.h:86
reco::TransientTrackFromFTS::blStateAvailable
bool blStateAvailable
Definition: TransientTrackFromFTS.h:82
reco::TransientTrackFromFTS::initialTSCP
TrajectoryStateClosestToPoint initialTSCP
Definition: TransientTrackFromFTS.h:84
FreeTrajectoryState::curvilinearError
const CurvilinearTrajectoryError & curvilinearError() const
Definition: FreeTrajectoryState.h:89
reco::TransientTrackFromFTS::theField
const MagneticField * theField
Definition: TransientTrackFromFTS.h:81
reco::Track
Definition: Track.h:27
reco::TransientTrackFromFTS::theTrackingGeometry
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
Definition: TransientTrackFromFTS.h:87
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:79
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::get
T get(const Candidate &c)
Definition: component.h:60
reco::TransientTrackFromFTS::theBeamSpot
reco::BeamSpot theBeamSpot
Definition: TransientTrackFromFTS.h:88
TSCBLBuilderNoMaterial
Definition: TSCBLBuilderNoMaterial.h:13
Exception
Definition: hltDiff.cc:246
reco::TransientTrackFromFTS::trackAvailable
bool trackAvailable
Definition: TransientTrackFromFTS.h:82
reco::TransientTrackFromFTS::theTrack
Track theTrack
Definition: TransientTrackFromFTS.h:85
GlobalTrajectoryParameters::magneticField
const MagneticField & magneticField() const
Definition: GlobalTrajectoryParameters.h:106
reco::TransientTrackFromFTS::calculateTSOSAtVertex
void calculateTSOSAtVertex() const
Definition: TransientTrackFromFTS.cc:129
reco::TransientTrackFromFTS::initialTSOSAvailable
bool initialTSOSAvailable
Definition: TransientTrackFromFTS.h:82
reco::TransientTrackFromFTS::trajectoryStateClosestToBeamLine
TrajectoryStateClosestToBeamLine trajectoryStateClosestToBeamLine
Definition: TransientTrackFromFTS.h:89
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
ntuplemaker.time
time
Definition: ntuplemaker.py:310
reco::TransientTrackFromFTS::initialFTS
FreeTrajectoryState initialFTS
Definition: TransientTrackFromFTS.h:77
reco::TransientTrackFromFTS::dtErrorExt_
double dtErrorExt_
Definition: TransientTrackFromFTS.h:80