CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types | Private Attributes
reco::TrackTransientTrack Class Reference

#include <TrackTransientTrack.h>

Inheritance diagram for reco::TrackTransientTrack:
reco::Track reco::BasicTransientTrack reco::TrackBase

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
 
TrackTransientTrackoperator= (const TrackTransientTrack &tt)
 
TrajectoryStateOnSurface outermostMeasurementState () const override
 
TrackRef persistentTrackRef () const
 
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
 
 TrackTransientTrack ()
 
 TrackTransientTrack (const Track &tk, const double time, const double dtime, const MagneticField *field)
 
 TrackTransientTrack (const Track &tk, const double time, const double dtime, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 TrackTransientTrack (const Track &tk, const MagneticField *field)
 
 TrackTransientTrack (const Track &tk, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 TrackTransientTrack (const TrackRef &tk, const double time, const double dtime, const MagneticField *field)
 
 TrackTransientTrack (const TrackRef &tk, const double time, const double dtime, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 TrackTransientTrack (const TrackRef &tk, const MagneticField *field)
 
 TrackTransientTrack (const TrackRef &tk, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 TrackTransientTrack (const TrackTransientTrack &tt)
 
TrajectoryStateClosestToPoint trajectoryStateClosestToPoint (const GlobalPoint &point) const override
 
- Public Member Functions inherited from reco::Track
const TrackExtraRefextra () const
 reference to "extra" object More...
 
CovarianceMatrixfillInner (CovarianceMatrix &v) const
 
CovarianceMatrixfillOuter (CovarianceMatrix &v) const
 fill outermost trajectory state curvilinear errors More...
 
unsigned short found () const
 Number of valid hits on track. More...
 
unsigned int innerDetId () const
 DetId of the detector on which surface the innermost state is located. More...
 
const math::XYZVectorinnerMomentum () const
 momentum vector at the innermost hit position More...
 
bool innerOk () const
 return true if the innermost hit is valid More...
 
const math::XYZPointinnerPosition () const
 position of the innermost hit More...
 
CovarianceMatrix innerStateCovariance () const
 innermost trajectory state curvilinear errors More...
 
unsigned short lost () const
 Number of lost (=invalid) hits on track. More...
 
unsigned int outerDetId () const
 DetId of the detector on which surface the outermost state is located. More...
 
double outerEta () const
 pseudorapidity of the momentum vector at the outermost hit position More...
 
const math::XYZVectorouterMomentum () const
 momentum vector at the outermost hit position More...
 
bool outerOk () const
 return true if the outermost hit is valid More...
 
double outerP () const
 magnitude of momentum vector at the outermost hit position More...
 
double outerPhi () const
 azimuthal angle of the momentum vector at the outermost hit position More...
 
const math::XYZPointouterPosition () const
 position of the outermost hit More...
 
double outerPt () const
 transverse momentum at the outermost hit position More...
 
double outerPx () const
 x coordinate of momentum vector at the outermost hit position More...
 
double outerPy () const
 y coordinate of momentum vector at the outermost hit position More...
 
double outerPz () const
 z coordinate of momentum vector at the outermost hit position More...
 
double outerRadius () const
 polar radius of the outermost hit position More...
 
CovarianceMatrix outerStateCovariance () const
 outermost trajectory state curvilinear errors More...
 
double outerTheta () const
 polar angle of the momentum vector at the outermost hit position More...
 
double outerX () const
 x coordinate of the outermost hit position More...
 
double outerY () const
 y coordinate of the outermost hit position More...
 
double outerZ () const
 z coordinate of the outermost hit position More...
 
TrackingRecHitRef recHit (size_t i) const
 Get i-th hit on the track. More...
 
auto recHits () const
 Access to reconstructed hits on the track. More...
 
trackingRecHit_iterator recHitsBegin () const
 Iterator to first hit on the track. More...
 
trackingRecHit_iterator recHitsEnd () const
 Iterator to last hit on the track. More...
 
size_t recHitsSize () const
 Get number of RecHits. (Warning, this includes invalid hits, which are not physical hits). More...
 
const TrackResidualsresiduals () const
 get the residuals More...
 
const PropagationDirectionseedDirection () const
 direction of how the hits were sorted in the original seed More...
 
const edm::RefToBase< TrajectorySeed > & seedRef () const
 
void setExtra (const TrackExtraRef &ref)
 set reference to "extra" object More...
 
 Track ()
 default constructor More...
 
 Track (double chi2, double ndof, const Point &referencePoint, const Vector &momentum, int charge, const CovarianceMatrix &, TrackAlgorithm=undefAlgorithm, TrackQuality quality=undefQuality, float t0=0, float beta=0, float covt0t0=-1., float covbetabeta=-1.)
 constructor from fit parameters and error matrix More...
 
 ~Track () override
 virtual destructor More...
 
- Public Member Functions inherited from reco::TrackBase
TrackAlgorithm algo () const
 
AlgoMask algoMask () const
 
unsigned long long algoMaskUL () const
 
std::string algoName () const
 
bool appendHitPattern (const DetId &id, TrackingRecHit::Type hitType, const TrackerTopology &ttopo)
 
bool appendHitPattern (const TrackingRecHit &hit, const TrackerTopology &ttopo)
 append a single hit to the HitPattern More...
 
bool appendHitPattern (const uint16_t pattern, TrackingRecHit::Type hitType)
 
template<typename C >
bool appendHits (const C &c, const TrackerTopology &ttopo)
 append hit patterns from vector of hit references More...
 
template<typename I >
bool appendHits (const I &begin, const I &end, const TrackerTopology &ttopo)
 
bool appendMuonHitPattern (const DetId &id, TrackingRecHit::Type hitType)
 
bool appendTrackerHitPattern (uint16_t subdet, uint16_t layer, uint16_t stereo, TrackingRecHit::Type hitType)
 
double beta () const
 velocity at the reference point in natural units More...
 
double betaError () const
 error on beta More...
 
int charge () const
 track electric charge More...
 
double chi2 () const
 chi-squared of the fit More...
 
CovarianceMatrix covariance () const
 return track covariance matrix More...
 
double covariance (int i, int j) const
 (i,j)-th element of covariance matrix (i, j = 0, ... 4) More...
 
double covBetaBeta () const
 error on beta More...
 
double covt0t0 () const
 error on t0 More...
 
double d0 () const
 dxy parameter in perigee convention (d0 = -dxy) More...
 
double d0Error () const
 error on d0 More...
 
double dsz () const
 dsz parameter (THIS IS NOT the SZ impact parameter to (0,0,0) if refPoint is far from (0,0,0): see parametrization definition above for details) More...
 
double dsz (const Point &myBeamSpot) const
 dsz parameter with respect to a user-given beamSpot (WARNING: this quantity can only be interpreted as the distance in the S-Z plane to the beamSpot, if the beam spot is reasonably close to the refPoint, since linear approximations are involved). This is a good approximation for Tracker tracks. More...
 
double dszError () const
 error on dsz More...
 
double dxy () const
 dxy parameter. (This is the transverse impact parameter w.r.t. to (0,0,0) ONLY if refPoint is close to (0,0,0): see parametrization definition above for details). See also function dxy(myBeamSpot). More...
 
double dxy (const BeamSpot &theBeamSpot) const
 dxy parameter with respect to the beamSpot taking into account the beamspot slopes (WARNING: this quantity can only be interpreted as a minimum transverse distance if beamSpot, if the beam spot is reasonably close to the refPoint, since linear approximations are involved). This is a good approximation for Tracker tracks. More...
 
double dxy (const Point &myBeamSpot) const
 dxy parameter with respect to a user-given beamSpot (WARNING: this quantity can only be interpreted as a minimum transverse distance if beamSpot, if the beam spot is reasonably close to the refPoint, since linear approximations are involved). This is a good approximation for Tracker tracks. More...
 
double dxyError () const
 error on dxy More...
 
double dxyError (const BeamSpot &theBeamSpot) const
 error on dxy with respect to a user-given beamspot More...
 
double dxyError (Point const &vtx, math::Error< 3 >::type const &vertexCov) const
 error on dxy with respect to a user-given reference point + uncertainty (i.e. reco::Vertex position) More...
 
double dz () const
 dz parameter (= dsz/cos(lambda)). This is the track z0 w.r.t (0,0,0) only if the refPoint is close to (0,0,0). See also function dz(myBeamSpot) More...
 
double dz (const Point &myBeamSpot) const
 dz parameter with respect to a user-given beamSpot (WARNING: this quantity can only be interpreted as the track z0, if the beamSpot is reasonably close to the refPoint, since linear approximations are involved). This is a good approximation for Tracker tracks. More...
 
double dzError () const
 error on dz More...
 
double error (int i) const
 error on specified element More...
 
double eta () const
 pseudorapidity of momentum vector More...
 
double etaError () const
 error on eta More...
 
CovarianceMatrixfill (CovarianceMatrix &v) const
 fill SMatrix More...
 
const HitPatternhitPattern () const
 Access the hit pattern, indicating in which Tracker layers the track has hits. More...
 
bool isAlgoInMask (TrackAlgorithm a) const
 
bool isLooper () const
 
bool isTimeOk () const
 return true if timing measurement is usable More...
 
double lambda () const
 Lambda angle. More...
 
double lambdaError () const
 error on lambda More...
 
int missingInnerHits () const
 number of hits expected from inner track extrapolation but missing More...
 
int missingOuterHits () const
 number of hits expected from outer track extrapolation but missing More...
 
const Vectormomentum () const
 track momentum vector More...
 
double ndof () const
 number of degrees of freedom of the fit More...
 
signed char nLoops () const
 
double normalizedChi2 () const
 chi-squared divided by n.d.o.f. (or chi-squared * 1e6 if n.d.o.f. is zero) More...
 
unsigned short numberOfLostHits () const
 number of cases where track crossed a layer without getting a hit. More...
 
unsigned short numberOfValidHits () const
 number of valid hits found More...
 
TrackAlgorithm originalAlgo () const
 
double p () const
 momentum vector magnitude More...
 
double p2 () const
 momentum vector magnitude square More...
 
double parameter (int i) const
 i-th parameter ( i = 0, ... 4 ) More...
 
ParameterVector parameters () const
 Track parameters with one-to-one correspondence to the covariance matrix. More...
 
double phi () const
 azimuthal angle of momentum vector More...
 
double phiError () const
 error on phi More...
 
double pt () const
 track transverse momentum More...
 
double pt2 () const
 track transverse momentum square More...
 
double ptError () const
 error on Pt (set to 1000 TeV if charge==0 for safety) More...
 
double ptError2 () const
 error on Pt (set to 1000**2 TeV**2 if charge==0 for safety) More...
 
double px () const
 x coordinate of momentum vector More...
 
double py () const
 y coordinate of momentum vector More...
 
double pz () const
 z coordinate of momentum vector More...
 
double qoverp () const
 q / p More...
 
double qoverpError () const
 error on signed transverse curvature More...
 
bool quality (const TrackQuality) const
 Track quality. More...
 
int qualityMask () const
 
const PointreferencePoint () const
 Reference point on the track. More...
 
void resetHitPattern ()
 Sets HitPattern as empty. More...
 
void setAlgoMask (AlgoMask a)
 
void setAlgorithm (const TrackAlgorithm a)
 Track algorithm. More...
 
void setNLoops (signed char value)
 
void setOriginalAlgorithm (const TrackAlgorithm a)
 
void setQuality (const TrackQuality)
 
void setQualityMask (int qualMask)
 
void setStopReason (uint8_t value)
 
uint8_t stopReason () const
 
double t0 () const
 time at the reference point More...
 
double t0Error () const
 error on t0 More...
 
double theta () const
 polar angle More...
 
double thetaError () const
 error on theta More...
 
 TrackBase ()
 default constructor More...
 
 TrackBase (double chi2, double ndof, const Point &vertex, const Vector &momentum, int charge, const CovarianceMatrix &cov, TrackAlgorithm=undefAlgorithm, TrackQuality quality=undefQuality, signed char nloops=0, uint8_t stopReason=0, float t0=0.f, float beta=0.f, float covt0t0=-1.f, float covbetabeta=-1.f)
 constructor from fit parameters and error matrix More...
 
double validFraction () const
 fraction of valid hits on the track More...
 
const Pointvertex () const
 reference point on the track. This method is DEPRECATED, please use referencePoint() instead More...
 
double vx () const
 x coordinate of the reference point on track More...
 
double vy () const
 y coordinate of the reference point on track More...
 
double vz () const
 z coordinate of the reference point on track More...
 
virtual ~TrackBase ()
 virtual destructor More...
 
- Public Member Functions inherited from reco::BasicTransientTrack
virtual CandidatePtr candidate () const
 
virtual ~BasicTransientTrack ()
 

Private Types

enum  CacheStates { kUnset, kSetting, kSet }
 

Private Attributes

TSCPBuilderNoMaterial builder
 
double dtErrorExt_
 
bool hasTime
 
FreeTrajectoryState initialFTS
 
TrajectoryStateClosestToPoint initialTSCP
 
TrajectoryStateOnSurface initialTSOS
 
std::atomic< char > m_SCTBL
 
std::atomic< char > m_TSCP
 
std::atomic< char > m_TSOS
 
reco::BeamSpot theBeamSpot
 
const MagneticFieldtheField
 
edm::ESHandle< GlobalTrackingGeometrytheTrackingGeometry
 
double timeExt_
 
TrackRef tkr_
 
TrajectoryStateClosestToBeamLine trajectoryStateClosestToBeamLine
 

Additional Inherited Members

- Public Types inherited from reco::TrackBase
enum  { dimension = 5 }
 parameter dimension More...
 
enum  { covarianceSize = dimension * (dimension + 1) / 2 }
 error matrix size More...
 
enum  {
  i_qoverp = 0, i_lambda, i_phi, i_dxy,
  i_dsz
}
 enumerator provided indices to the five parameters More...
 
typedef std::bitset< algoSizeAlgoMask
 algo mask More...
 
typedef math::Error< dimension >::type CovarianceMatrix
 5 parameter covariance matrix More...
 
typedef unsigned int index
 index type More...
 
typedef math::Vector< dimension >::type ParameterVector
 parameter vector More...
 
typedef math::XYZPoint Point
 point in the space More...
 
enum  TrackAlgorithm {
  undefAlgorithm = 0, ctf = 1, duplicateMerge = 2, cosmics = 3,
  initialStep = 4, lowPtTripletStep = 5, pixelPairStep = 6, detachedTripletStep = 7,
  mixedTripletStep = 8, pixelLessStep = 9, tobTecStep = 10, jetCoreRegionalStep = 11,
  conversionStep = 12, muonSeededStepInOut = 13, muonSeededStepOutIn = 14, outInEcalSeededConv = 15,
  inOutEcalSeededConv = 16, nuclInter = 17, standAloneMuon = 18, globalMuon = 19,
  cosmicStandAloneMuon = 20, cosmicGlobalMuon = 21, highPtTripletStep = 22, lowPtQuadStep = 23,
  detachedQuadStep = 24, displacedGeneralStep = 25, reservedForUpgrades2 = 26, bTagGhostTracks = 27,
  beamhalo = 28, gsf = 29, hltPixel = 30, hltIter0 = 31,
  hltIter1 = 32, hltIter2 = 33, hltIter3 = 34, hltIter4 = 35,
  hltIterX = 36, hiRegitMuInitialStep = 37, hiRegitMuLowPtTripletStep = 38, hiRegitMuPixelPairStep = 39,
  hiRegitMuDetachedTripletStep = 40, hiRegitMuMixedTripletStep = 41, hiRegitMuPixelLessStep = 42, hiRegitMuTobTecStep = 43,
  hiRegitMuMuonSeededStepInOut = 44, hiRegitMuMuonSeededStepOutIn = 45, algoSize = 46
}
 track algorithm More...
 
enum  TrackQuality {
  undefQuality = -1, loose = 0, tight = 1, highPurity = 2,
  confirmed = 3, goodIterative = 4, looseSetWithPV = 5, highPuritySetWithPV = 6,
  discarded = 7, qualitySize = 8
}
 track quality More...
 
typedef math::XYZVector Vector
 spatial vector More...
 
- Public Types inherited from reco::BasicTransientTrack
using BTT = BasicTransientTrack
 
using Proxy = ProxyBase11< BTT >
 
- Static Public Member Functions inherited from reco::TrackBase
static TrackAlgorithm algoByName (const std::string &name)
 
static std::string algoName (TrackAlgorithm)
 
static index covIndex (index i, index j)
 covariance matrix index in array More...
 
static TrackQuality qualityByName (const std::string &name)
 
static std::string qualityName (TrackQuality)
 
- Static Public Attributes inherited from reco::TrackBase
static const std::string algoNames []
 
static const std::string qualityNames []
 

Detailed Description

Definition at line 18 of file TrackTransientTrack.h.

Member Enumeration Documentation

◆ CacheStates

Enumerator
kUnset 
kSetting 
kSet 

Definition at line 116 of file TrackTransientTrack.h.

116 { kUnset, kSetting, kSet };

Constructor & Destructor Documentation

◆ TrackTransientTrack() [1/10]

TrackTransientTrack::TrackTransientTrack ( )

Definition at line 23 of file TrackTransientTrack.cc.

24  : Track(),
25  tkr_(),
26  hasTime(false),
27  timeExt_(0.),
28  dtErrorExt_(0.),
29  theField(nullptr),
30  m_TSOS(kUnset),
31  m_TSCP(kUnset),
33 
34 {}

◆ TrackTransientTrack() [2/10]

TrackTransientTrack::TrackTransientTrack ( const Track tk,
const MagneticField field 
)

Definition at line 36 of file TrackTransientTrack.cc.

37  : Track(tk),
38  tkr_(),
39  hasTime(false),
40  timeExt_(0.),
41  dtErrorExt_(0.),
42  theField(field),
43  m_TSOS(kUnset),
44  m_TSCP(kUnset),
45  m_SCTBL(kUnset) {
47 }

References field(), trajectoryStateTransform::initialFreeState(), and initialFTS.

◆ TrackTransientTrack() [3/10]

TrackTransientTrack::TrackTransientTrack ( const Track tk,
const double  time,
const double  dtime,
const MagneticField field 
)

Definition at line 49 of file TrackTransientTrack.cc.

53  : Track(tk),
54  tkr_(),
55  hasTime(true),
56  timeExt_(time),
57  dtErrorExt_(dtime),
58  theField(field),
59  m_TSOS(kUnset),
60  m_TSCP(kUnset),
61  m_SCTBL(kUnset) {
63 }

References field(), trajectoryStateTransform::initialFreeState(), and initialFTS.

◆ TrackTransientTrack() [4/10]

TrackTransientTrack::TrackTransientTrack ( const TrackRef tk,
const MagneticField field 
)

Definition at line 65 of file TrackTransientTrack.cc.

66  : Track(*tk),
67  tkr_(tk),
68  hasTime(false),
69  timeExt_(0.),
70  dtErrorExt_(0.),
71  theField(field),
72  m_TSOS(kUnset),
73  m_TSCP(kUnset),
74  m_SCTBL(kUnset) {
76 }

References field(), trajectoryStateTransform::initialFreeState(), and initialFTS.

◆ TrackTransientTrack() [5/10]

TrackTransientTrack::TrackTransientTrack ( const TrackRef tk,
const double  time,
const double  dtime,
const MagneticField field 
)

Definition at line 78 of file TrackTransientTrack.cc.

82  : Track(*tk),
83  tkr_(tk),
84  hasTime(true),
85  timeExt_(time),
86  dtErrorExt_(dtime),
87  theField(field),
88  m_TSOS(kUnset),
89  m_TSCP(kUnset),
90  m_SCTBL(kUnset) {
92 }

References field(), trajectoryStateTransform::initialFreeState(), and initialFTS.

◆ TrackTransientTrack() [6/10]

TrackTransientTrack::TrackTransientTrack ( const TrackRef tk,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 110 of file TrackTransientTrack.cc.

113  : Track(*tk),
114  tkr_(tk),
115  hasTime(false),
116  timeExt_(0.),
117  dtErrorExt_(0.),
118  theField(field),
119  m_TSOS(kUnset),
120  m_TSCP(kUnset),
121  m_SCTBL(kUnset),
122  theTrackingGeometry(tg) {
124 }

References field(), trajectoryStateTransform::initialFreeState(), and initialFTS.

◆ TrackTransientTrack() [7/10]

TrackTransientTrack::TrackTransientTrack ( const TrackRef tk,
const double  time,
const double  dtime,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 144 of file TrackTransientTrack.cc.

149  : Track(*tk),
150  tkr_(tk),
151  hasTime(true),
152  timeExt_(time),
153  dtErrorExt_(dtime),
154  theField(field),
155  m_TSOS(kUnset),
156  m_TSCP(kUnset),
157  m_SCTBL(kUnset),
158  theTrackingGeometry(tg) {
160 }

References field(), trajectoryStateTransform::initialFreeState(), and initialFTS.

◆ TrackTransientTrack() [8/10]

TrackTransientTrack::TrackTransientTrack ( const Track tk,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 94 of file TrackTransientTrack.cc.

97  : Track(tk),
98  tkr_(),
99  hasTime(false),
100  timeExt_(0.),
101  dtErrorExt_(0.),
102  theField(field),
103  m_TSOS(kUnset),
104  m_TSCP(kUnset),
105  m_SCTBL(kUnset),
106  theTrackingGeometry(tg) {
108 }

References field(), trajectoryStateTransform::initialFreeState(), and initialFTS.

◆ TrackTransientTrack() [9/10]

TrackTransientTrack::TrackTransientTrack ( const Track tk,
const double  time,
const double  dtime,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 126 of file TrackTransientTrack.cc.

131  : Track(tk),
132  tkr_(),
133  hasTime(true),
134  timeExt_(time),
135  dtErrorExt_(dtime),
136  theField(field),
137  m_TSOS(kUnset),
138  m_TSCP(kUnset),
139  m_SCTBL(kUnset),
140  theTrackingGeometry(tg) {
142 }

References field(), trajectoryStateTransform::initialFreeState(), and initialFTS.

◆ TrackTransientTrack() [10/10]

TrackTransientTrack::TrackTransientTrack ( const TrackTransientTrack tt)

Definition at line 162 of file TrackTransientTrack.cc.

163  : Track(tt),
164  tkr_(tt.persistentTrackRef()),
165  hasTime(tt.hasTime),
166  timeExt_(tt.timeExt()),
167  dtErrorExt_(tt.dtErrorExt()),
168  theField(tt.field()),
169  initialFTS(tt.initialFreeState()),
170  m_TSOS(kUnset),
171  m_TSCP(kUnset) {
172  // see ThreadSafe statement above about the order of operator= and store
173  if (kSet == tt.m_TSOS.load()) {
174  initialTSOS = tt.impactPointState();
175  m_TSOS.store(kSet);
176  }
177  // see ThreadSafe statement above about the order of operator= and store
178  if (kSet == tt.m_TSCP.load()) {
179  initialTSCP = tt.impactPointTSCP();
180  m_TSCP.store(kSet);
181  }
182 }

References initialTSCP, initialTSOS, kSet, m_TSCP, m_TSOS, and groupFilesInBlocks::tt.

Member Function Documentation

◆ charge()

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

Implements reco::BasicTransientTrack.

Definition at line 82 of file TrackTransientTrack.h.

82 { return Track::charge(); }

References reco::TrackBase::charge().

◆ dtErrorExt()

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

Implements reco::BasicTransientTrack.

Definition at line 91 of file TrackTransientTrack.h.

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

References dtErrorExt_, and hasTime.

◆ field()

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

Implements reco::BasicTransientTrack.

Definition at line 84 of file TrackTransientTrack.h.

84 { return theField; }

References theField.

Referenced by TrackTransientTrack().

◆ impactPointState()

TrajectoryStateOnSurface TrackTransientTrack::impactPointState ( ) const
overridevirtual

Implements reco::BasicTransientTrack.

Definition at line 193 of file TrackTransientTrack.cc.

193  {
194  // see ThreadSafe statement above about the order of operator= and store
195  if (kSet == m_TSOS.load())
196  return initialTSOS;
198  auto tmp = tipe.extrapolate(initialFTS, initialFTS.position());
199  char expected = kUnset;
200  if (m_TSOS.compare_exchange_strong(expected, kSetting)) {
201  initialTSOS = tmp;
202  m_TSOS.store(kSet);
203  return initialTSOS;
204  }
205  return tmp;
206 }

References TransverseImpactPointExtrapolator::extrapolate(), initialFTS, initialTSOS, kSet, kSetting, kUnset, m_TSOS, FreeTrajectoryState::position(), theField, and createJobs::tmp.

◆ impactPointStateAvailable()

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

Implements reco::BasicTransientTrack.

Definition at line 73 of file TrackTransientTrack.h.

73 { return (m_TSOS.load() == kSet ? true : false); }

References kSet, m_TSOS, and funct::true.

◆ impactPointTSCP()

TrajectoryStateClosestToPoint TrackTransientTrack::impactPointTSCP ( ) const
overridevirtual

Implements reco::BasicTransientTrack.

Definition at line 208 of file TrackTransientTrack.cc.

208  {
209  // see ThreadSafe statement above about the order of operator= and store
210  if (kSet == m_TSCP.load())
211  return initialTSCP;
213  char expected = kUnset;
214  if (m_TSCP.compare_exchange_strong(expected, kSetting)) {
215  initialTSCP = tmp;
216  m_TSCP.store(kSet);
217  return initialTSCP;
218  }
219  return tmp;
220 }

References builder, initialFTS, initialTSCP, kSet, kSetting, kUnset, m_TSCP, FreeTrajectoryState::position(), and createJobs::tmp.

◆ initialFreeState()

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

Implements reco::BasicTransientTrack.

Definition at line 54 of file TrackTransientTrack.h.

54 { return initialFTS; }

References initialFTS.

◆ innermostMeasurementState()

TrajectoryStateOnSurface TrackTransientTrack::innermostMeasurementState ( ) const
overridevirtual

◆ operator=()

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

◆ outermostMeasurementState()

TrajectoryStateOnSurface TrackTransientTrack::outermostMeasurementState ( ) const
overridevirtual

◆ persistentTrackRef()

TrackRef reco::TrackTransientTrack::persistentTrackRef ( ) const
inline

access to original persistent track

Definition at line 78 of file TrackTransientTrack.h.

78 { return tkr_; }

References tkr_.

Referenced by KinematicVertex::operator reco::Vertex(), and ConversionTrackPairFinder::run().

◆ setBeamSpot()

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

Implements reco::BasicTransientTrack.

Definition at line 188 of file TrackTransientTrack.cc.

188  {
190  m_SCTBL = kUnset;
191 }

References pwdgSkimBPark_cfi::beamSpot, kUnset, m_SCTBL, and theBeamSpot.

◆ setTrackingGeometry()

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

Implements reco::BasicTransientTrack.

Definition at line 184 of file TrackTransientTrack.cc.

184  {
185  theTrackingGeometry = tg;
186 }

References theTrackingGeometry.

◆ stateAtBeamLine()

TrajectoryStateClosestToBeamLine TrackTransientTrack::stateAtBeamLine ( ) const
overridevirtual

Implements reco::BasicTransientTrack.

Definition at line 235 of file TrackTransientTrack.cc.

235  {
236  // see ThreadSafe statement above about the order of operator= and store
237  if (kSet == m_SCTBL.load())
239  TSCBLBuilderNoMaterial blsBuilder;
240  const auto tmp = blsBuilder(initialFTS, theBeamSpot);
241  char expected = kUnset;
242  if (m_SCTBL.compare_exchange_strong(expected, kSetting)) {
244  m_SCTBL.store(kSet);
246  }
247  return tmp;
248 }

References initialFTS, kSet, kSetting, kUnset, m_SCTBL, theBeamSpot, createJobs::tmp, and trajectoryStateClosestToBeamLine.

◆ stateOnSurface()

TrajectoryStateOnSurface TrackTransientTrack::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 230 of file TrackTransientTrack.cc.

230  {
232  return tipe.extrapolate(initialFTS, point);
233 }

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

◆ timeExt()

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

Implements reco::BasicTransientTrack.

Definition at line 90 of file TrackTransientTrack.h.

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

References hasTime, and timeExt_.

◆ track()

const Track& reco::TrackTransientTrack::track ( ) const
inlineoverridevirtual

Implements reco::BasicTransientTrack.

Definition at line 86 of file TrackTransientTrack.h.

86 { return *this; }

◆ trackBaseRef()

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

Implements reco::BasicTransientTrack.

Definition at line 80 of file TrackTransientTrack.h.

80 { return TrackBaseRef(tkr_); }

References tkr_.

Referenced by VertexFitterResult::fill().

◆ trajectoryStateClosestToPoint()

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

Implements reco::BasicTransientTrack.

Definition at line 60 of file TrackTransientTrack.h.

60  {
61  return builder(initialFTS, point);
62  }

References builder, initialFTS, and point.

Member Data Documentation

◆ builder

TSCPBuilderNoMaterial reco::TrackTransientTrack::builder
private

Definition at line 111 of file TrackTransientTrack.h.

Referenced by impactPointTSCP(), and trajectoryStateClosestToPoint().

◆ dtErrorExt_

double reco::TrackTransientTrack::dtErrorExt_
private

Definition at line 96 of file TrackTransientTrack.h.

Referenced by dtErrorExt().

◆ hasTime

bool reco::TrackTransientTrack::hasTime
private

Definition at line 95 of file TrackTransientTrack.h.

Referenced by dtErrorExt(), and timeExt().

◆ initialFTS

FreeTrajectoryState reco::TrackTransientTrack::initialFTS
private

◆ initialTSCP

TrajectoryStateClosestToPoint reco::TrackTransientTrack::initialTSCP
mutableprivate

Definition at line 104 of file TrackTransientTrack.h.

Referenced by impactPointTSCP(), and TrackTransientTrack().

◆ initialTSOS

TrajectoryStateOnSurface reco::TrackTransientTrack::initialTSOS
mutableprivate

Definition at line 103 of file TrackTransientTrack.h.

Referenced by impactPointState(), and TrackTransientTrack().

◆ m_SCTBL

std::atomic<char> reco::TrackTransientTrack::m_SCTBL
mutableprivate

Definition at line 109 of file TrackTransientTrack.h.

Referenced by setBeamSpot(), and stateAtBeamLine().

◆ m_TSCP

std::atomic<char> reco::TrackTransientTrack::m_TSCP
mutableprivate

Definition at line 108 of file TrackTransientTrack.h.

Referenced by impactPointTSCP(), and TrackTransientTrack().

◆ m_TSOS

std::atomic<char> reco::TrackTransientTrack::m_TSOS
mutableprivate

◆ theBeamSpot

reco::BeamSpot reco::TrackTransientTrack::theBeamSpot
private

Definition at line 113 of file TrackTransientTrack.h.

Referenced by setBeamSpot(), and stateAtBeamLine().

◆ theField

const MagneticField* reco::TrackTransientTrack::theField
private

◆ theTrackingGeometry

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

◆ timeExt_

double reco::TrackTransientTrack::timeExt_
private

Definition at line 96 of file TrackTransientTrack.h.

Referenced by timeExt().

◆ tkr_

TrackRef reco::TrackTransientTrack::tkr_
private

Definition at line 94 of file TrackTransientTrack.h.

Referenced by persistentTrackRef(), and trackBaseRef().

◆ trajectoryStateClosestToBeamLine

TrajectoryStateClosestToBeamLine reco::TrackTransientTrack::trajectoryStateClosestToBeamLine
mutableprivate

Definition at line 105 of file TrackTransientTrack.h.

Referenced by stateAtBeamLine().

reco::TrackTransientTrack::kSet
Definition: TrackTransientTrack.h:116
reco::TrackTransientTrack::timeExt_
double timeExt_
Definition: TrackTransientTrack.h:96
reco::TrackTransientTrack::builder
TSCPBuilderNoMaterial builder
Definition: TrackTransientTrack.h:111
reco::TrackTransientTrack::m_TSCP
std::atomic< char > m_TSCP
Definition: TrackTransientTrack.h:108
pwdgSkimBPark_cfi.beamSpot
beamSpot
Definition: pwdgSkimBPark_cfi.py:5
trajectoryStateTransform::initialFreeState
FreeTrajectoryState initialFreeState(const reco::Track &tk, const MagneticField *field, bool withErr=true)
Definition: TrajectoryStateTransform.cc:58
groupFilesInBlocks.tt
int tt
Definition: groupFilesInBlocks.py:144
reco::TrackTransientTrack::m_TSOS
std::atomic< char > m_TSOS
Definition: TrackTransientTrack.h:107
reco::TrackTransientTrack::dtErrorExt_
double dtErrorExt_
Definition: TrackTransientTrack.h:96
reco::TrackTransientTrack::hasTime
bool hasTime
Definition: TrackTransientTrack.h:95
protons_cff.time
time
Definition: protons_cff.py:35
reco::TrackTransientTrack::field
const MagneticField * field() const override
Definition: TrackTransientTrack.h:84
reco::TrackBaseRef
edm::RefToBase< reco::Track > TrackBaseRef
persistent reference to a Track, using views
Definition: TrackFwd.h:35
reco::TrackTransientTrack::theBeamSpot
reco::BeamSpot theBeamSpot
Definition: TrackTransientTrack.h:113
TransverseImpactPointExtrapolator
Definition: TransverseImpactPointExtrapolator.h:26
FreeTrajectoryState::position
GlobalPoint position() const
Definition: FreeTrajectoryState.h:67
createJobs.tmp
tmp
align.sh
Definition: createJobs.py:716
trajectoryStateTransform::outerStateOnSurface
TrajectoryStateOnSurface outerStateOnSurface(const reco::Track &tk, const TrackingGeometry &geom, const MagneticField *field, bool withErr=true)
Definition: TrajectoryStateTransform.cc:118
reco::TrackTransientTrack::trajectoryStateClosestToBeamLine
TrajectoryStateClosestToBeamLine trajectoryStateClosestToBeamLine
Definition: TrackTransientTrack.h:105
reco::TrackTransientTrack::tkr_
TrackRef tkr_
Definition: TrackTransientTrack.h:94
reco::TrackBase::charge
int charge() const
track electric charge
Definition: TrackBase.h:596
reco::TrackTransientTrack::theField
const MagneticField * theField
Definition: TrackTransientTrack.h:97
funct::true
true
Definition: Factorize.h:173
reco::TrackTransientTrack::theTrackingGeometry
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
Definition: TrackTransientTrack.h:112
reco::TrackTransientTrack::initialTSOS
TrajectoryStateOnSurface initialTSOS
Definition: TrackTransientTrack.h:103
reco::TrackTransientTrack::m_SCTBL
std::atomic< char > m_SCTBL
Definition: TrackTransientTrack.h:109
reco::TrackTransientTrack::initialFTS
FreeTrajectoryState initialFTS
Definition: TrackTransientTrack.h:99
TSCBLBuilderNoMaterial
Definition: TSCBLBuilderNoMaterial.h:13
reco::Track::Track
Track()
default constructor
Definition: Track.h:30
reco::TrackTransientTrack::kUnset
Definition: TrackTransientTrack.h:116
trajectoryStateTransform::innerStateOnSurface
TrajectoryStateOnSurface innerStateOnSurface(const reco::Track &tk, const TrackingGeometry &geom, const MagneticField *field, bool withErr=true)
Definition: TrajectoryStateTransform.cc:110
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::TrackTransientTrack::kSetting
Definition: TrackTransientTrack.h:116
reco::TrackTransientTrack::initialTSCP
TrajectoryStateClosestToPoint initialTSCP
Definition: TrackTransientTrack.h:104