CMS 3D CMS Logo

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

#include <GsfTransientTrack.h>

Inheritance diagram for reco::GsfTransientTrack:
reco::GsfTrack reco::BasicTransientTrack reco::Track reco::TrackBase

Public Member Functions

TrackCharge charge () const override
 
double dtErrorExt () const override
 
const MagneticFieldfield () const override
 
 GsfTransientTrack ()
 
 GsfTransientTrack (const GsfTrack &tk, const double time, const double dtime, const MagneticField *field)
 
 GsfTransientTrack (const GsfTrack &tk, const double time, const double dtime, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 GsfTransientTrack (const GsfTrack &tk, const MagneticField *field)
 
 GsfTransientTrack (const GsfTrack &tk, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 GsfTransientTrack (const GsfTrackRef &tk, const double time, const double dtime, const MagneticField *field)
 
 GsfTransientTrack (const GsfTrackRef &tk, const double time, const double dtime, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 GsfTransientTrack (const GsfTrackRef &tk, const MagneticField *field)
 
 GsfTransientTrack (const GsfTrackRef &tk, const MagneticField *field, const edm::ESHandle< GlobalTrackingGeometry > &trackingGeometry)
 
 GsfTransientTrack (const GsfTransientTrack &tt)
 
TrajectoryStateOnSurface impactPointState () const override
 
bool impactPointStateAvailable () const override
 
TrajectoryStateClosestToPoint impactPointTSCP () const override
 
FreeTrajectoryState initialFreeState () const override
 
TrajectoryStateOnSurface innermostMeasurementState () const override
 
GsfTransientTrackoperator= (const GsfTransientTrack &tt)
 
TrajectoryStateOnSurface outermostMeasurementState () const override
 
GsfTrackRef persistentTrackRef () const
 
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
 
- Public Member Functions inherited from reco::GsfTrack
int chargeMode () const
 track electric charge from mode More...
 
CovarianceMatrixMode covarianceMode () const
 return track covariance matrix from mode More...
 
double covarianceMode (int i, int j) const
 (i,j)-th element of covarianve matrix ( i, j = 0, ... 2 ) from mode More...
 
double errorMode (int i) const
 error on specified element from mode More...
 
double etaMode () const
 pseudorapidity of momentum vector from mode More...
 
double etaModeError () const
 error on eta from mode More...
 
const GsfTrackExtraRefgsfExtra () const
 reference to "extra" object More...
 
 GsfTrack ()
 default constructor More...
 
 GsfTrack (double chi2, double ndof, const Point &, const Vector &, int charge, const CovarianceMatrix &)
 
double lambdaMode () const
 Lambda angle from mode. More...
 
double lambdaModeError () const
 error on lambda from mode More...
 
const VectormomentumMode () const
 track momentum vector from mode More...
 
double parameterMode (int i) const
 i-th parameter ( i = 0, ... 2 ) from mode More...
 
ParameterVectorMode parametersMode () const
 Track parameters with one-to-one correspondence to the covariance matrix from mode. More...
 
double phiMode () const
 azimuthal angle of momentum vector from mode More...
 
double phiModeError () const
 error on phi from mode More...
 
double pMode () const
 momentum vector magnitude from mode More...
 
double ptMode () const
 track transverse momentum from mode More...
 
double ptModeError () const
 error on Pt (set to 1000 TeV if charge==0 for safety) from mode More...
 
double pxMode () const
 x coordinate of momentum vector from mode More...
 
double pyMode () const
 y coordinate of momentum vector from mode More...
 
double pzMode () const
 z coordinate of momentum vector from mode More...
 
double qoverpMode () const
 q/p from mode More...
 
double qoverpModeError () const
 error on signed transverse curvature from mode More...
 
void setGsfExtra (const GsfTrackExtraRef &ref)
 set reference to GSF "extra" object More...
 
void setMode (int chargeMode, const Vector &momentumMode, const CovarianceMatrixMode &covarianceMode)
 set mode parameters More...
 
double thetaMode () const
 polar angle from mode More...
 
double thetaModeError () const
 error on theta from mode More...
 
- 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 Member Functions

void calculateTSOSAtVertex () const
 
void init ()
 

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
 
TransverseImpactPointExtrapolator theTIPExtrapolator
 
edm::ESHandle< GlobalTrackingGeometrytheTrackingGeometry
 
double timeExt_
 
GsfTrackRef tkr_
 
TrajectoryStateClosestToBeamLine trajectoryStateClosestToBeamLine
 

Additional Inherited Members

- Public Types inherited from reco::GsfTrack
enum  { dimensionMode = 3 }
 parameter dimension mode More...
 
enum  { covarianceSizeMode = dimensionMode * (dimensionMode + 1) / 2 }
 error matrix size mode More...
 
typedef math::Error< dimensionMode >::type CovarianceMatrixMode
 3 parameter covariance matrix (momentum part) from mode More...
 
typedef math::Vector< dimensionMode >::type ParameterVectorMode
 parameter vector (momentum part) from mode More...
 
- 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, reservedForUpgrades1 = 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 GsfTransientTrack.h.

Constructor & Destructor Documentation

◆ GsfTransientTrack() [1/10]

GsfTransientTrack::GsfTransientTrack ( )

Definition at line 13 of file GsfTransientTrack.cc.

14  : GsfTrack(),
15  tkr_(),
16  hasTime(false),
17  timeExt_(0.),
18  dtErrorExt_(0.),
19  theField(nullptr),
20  initialTSOSAvailable(false),
21  initialTSCPAvailable(false),
22  blStateAvailable(false),

◆ GsfTransientTrack() [2/10]

GsfTransientTrack::GsfTransientTrack ( const GsfTrack tk,
const MagneticField field 
)

Definition at line 25 of file GsfTransientTrack.cc.

26  : GsfTrack(tk),
27  tkr_(),
28  hasTime(false),
29  timeExt_(0.),
30  dtErrorExt_(0.),
31  theField(field),
32  initialTSOSAvailable(false),
33  initialTSCPAvailable(false),
34  blStateAvailable(false) {
36 }

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

◆ GsfTransientTrack() [3/10]

GsfTransientTrack::GsfTransientTrack ( const GsfTrack tk,
const double  time,
const double  dtime,
const MagneticField field 
)

Definition at line 38 of file GsfTransientTrack.cc.

42  : GsfTrack(tk),
43  tkr_(),
44  hasTime(true),
45  timeExt_(time),
46  dtErrorExt_(dtime),
47  theField(field),
48  initialTSOSAvailable(false),
49  initialTSCPAvailable(false),
50  blStateAvailable(false) {
52 }

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

◆ GsfTransientTrack() [4/10]

GsfTransientTrack::GsfTransientTrack ( const GsfTrackRef tk,
const MagneticField field 
)

◆ GsfTransientTrack() [5/10]

GsfTransientTrack::GsfTransientTrack ( const GsfTrackRef tk,
const double  time,
const double  dtime,
const MagneticField field 
)

◆ GsfTransientTrack() [6/10]

GsfTransientTrack::GsfTransientTrack ( const GsfTrackRef tk,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

Definition at line 121 of file GsfTransientTrack.cc.

124  : GsfTrack(*tk),
125  tkr_(tk),
126  hasTime(false),
127  timeExt_(0.),
128  dtErrorExt_(0.),
129  theField(field),
130  initialTSOSAvailable(false),
131  initialTSCPAvailable(false),
132  blStateAvailable(false),
136 }

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

◆ GsfTransientTrack() [7/10]

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

Definition at line 138 of file GsfTransientTrack.cc.

143  : GsfTrack(*tk),
144  tkr_(tk),
145  hasTime(true),
146  timeExt_(time),
147  dtErrorExt_(dtime),
148  theField(field),
149  initialTSOSAvailable(false),
150  initialTSCPAvailable(false),
151  blStateAvailable(false),
155 }

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

◆ GsfTransientTrack() [8/10]

GsfTransientTrack::GsfTransientTrack ( const GsfTrack tk,
const MagneticField field,
const edm::ESHandle< GlobalTrackingGeometry > &  trackingGeometry 
)

◆ GsfTransientTrack() [9/10]

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

Definition at line 102 of file GsfTransientTrack.cc.

107  : GsfTrack(tk),
108  tkr_(),
109  hasTime(true),
110  timeExt_(time),
111  dtErrorExt_(dtime),
112  theField(field),
113  initialTSOSAvailable(false),
114  initialTSCPAvailable(false),
115  blStateAvailable(false),
119 }

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

◆ GsfTransientTrack() [10/10]

GsfTransientTrack::GsfTransientTrack ( const GsfTransientTrack tt)

Definition at line 157 of file GsfTransientTrack.cc.

158  : GsfTrack(tt),
159  tkr_(tt.persistentTrackRef()),
160  hasTime(tt.hasTime),
161  timeExt_(tt.timeExt_),
162  dtErrorExt_(tt.dtErrorExt_),
163  theField(tt.field()),
164  initialFTS(tt.initialFreeState()),
165  initialTSOSAvailable(false),
166  initialTSCPAvailable(false),
168  if (tt.initialTSOSAvailable) {
169  initialTSOS = tt.impactPointState();
170  initialTSOSAvailable = true;
171  }
172  if (tt.initialTSCPAvailable) {
173  initialTSCP = tt.impactPointTSCP();
174  initialTSCPAvailable = true;
175  }
176 }

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

Member Function Documentation

◆ calculateTSOSAtVertex()

void GsfTransientTrack::calculateTSOSAtVertex ( ) const
private

◆ charge()

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

Implements reco::BasicTransientTrack.

Definition at line 96 of file GsfTransientTrack.h.

96 { return GsfTrack::charge(); }

References reco::TrackBase::charge().

◆ dtErrorExt()

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

Implements reco::BasicTransientTrack.

Definition at line 106 of file GsfTransientTrack.h.

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

References dtErrorExt_, and hasTime.

◆ field()

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

Implements reco::BasicTransientTrack.

Definition at line 98 of file GsfTransientTrack.h.

98 { return theField; }

References theField.

Referenced by GsfTransientTrack().

◆ impactPointState()

TrajectoryStateOnSurface GsfTransientTrack::impactPointState ( ) const
overridevirtual

The TSOS at the initial state, made from the stored singl-component state.

Implements reco::BasicTransientTrack.

Definition at line 191 of file GsfTransientTrack.cc.

191  {
194  return initialTSOS;
195 }

References calculateTSOSAtVertex(), initialTSOS, and initialTSOSAvailable.

◆ impactPointStateAvailable()

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

Implements reco::BasicTransientTrack.

Definition at line 87 of file GsfTransientTrack.h.

87 { return initialTSOSAvailable; }

References initialTSOSAvailable.

◆ impactPointTSCP()

TrajectoryStateClosestToPoint GsfTransientTrack::impactPointTSCP ( ) const
overridevirtual

The TrajectoryStateClosestToPoint at the initial state, made from the stored singl-component state.

Implements reco::BasicTransientTrack.

Definition at line 197 of file GsfTransientTrack.cc.

197  {
198  if (!initialTSCPAvailable) {
200  initialTSCPAvailable = true;
201  }
202  return initialTSCP;
203 }

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

◆ init()

void reco::GsfTransientTrack::init ( )
private

◆ initialFreeState()

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

Implements reco::BasicTransientTrack.

Definition at line 56 of file GsfTransientTrack.h.

56 { return initialFTS; }

References initialFTS.

◆ innermostMeasurementState()

TrajectoryStateOnSurface GsfTransientTrack::innermostMeasurementState ( ) const
overridevirtual

◆ operator=()

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

◆ outermostMeasurementState()

TrajectoryStateOnSurface GsfTransientTrack::outermostMeasurementState ( ) const
overridevirtual

◆ persistentTrackRef()

GsfTrackRef reco::GsfTransientTrack::persistentTrackRef ( ) const
inline

access to original persistent track

Definition at line 92 of file GsfTransientTrack.h.

92 { return tkr_; }

References tkr_.

Referenced by KinematicVertex::operator reco::Vertex().

◆ setBeamSpot()

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

Implements reco::BasicTransientTrack.

Definition at line 186 of file GsfTransientTrack.cc.

186  {
188  blStateAvailable = false;
189 }

References pwdgSkimBPark_cfi::beamSpot, blStateAvailable, and theBeamSpot.

◆ setES()

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

◆ setTrackingGeometry()

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

Implements reco::BasicTransientTrack.

Definition at line 182 of file GsfTransientTrack.cc.

182  {
183  theTrackingGeometry = tg;
184 }

References theTrackingGeometry.

◆ stateAtBeamLine()

TrajectoryStateClosestToBeamLine GsfTransientTrack::stateAtBeamLine ( ) const
overridevirtual

Implements reco::BasicTransientTrack.

Definition at line 227 of file GsfTransientTrack.cc.

227  {
228  if (!blStateAvailable) {
229  TSCBLBuilderNoMaterial blsBuilder;
231  blStateAvailable = true;
232  }
234 }

References blStateAvailable, initialFTS, theBeamSpot, and trajectoryStateClosestToBeamLine.

◆ stateOnSurface()

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

The TSOS at any point. The inner-most multi-state state will be used for the propagation. The TSOS will therefore have multiple components.

Implements reco::BasicTransientTrack.

Definition at line 219 of file GsfTransientTrack.cc.

References TransverseImpactPointExtrapolator::extrapolate(), innermostMeasurementState(), point, and theTIPExtrapolator.

Referenced by trajectoryStateClosestToPoint().

◆ timeExt()

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

Implements reco::BasicTransientTrack.

Definition at line 104 of file GsfTransientTrack.h.

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

References hasTime, and timeExt_.

◆ track()

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

Implements reco::BasicTransientTrack.

Definition at line 100 of file GsfTransientTrack.h.

100 { return *this; }

◆ trackBaseRef()

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

Implements reco::BasicTransientTrack.

Definition at line 94 of file GsfTransientTrack.h.

94 { return TrackBaseRef(tkr_); }

References tkr_.

◆ trajectoryStateClosestToPoint()

TrajectoryStateClosestToPoint GsfTransientTrack::trajectoryStateClosestToPoint ( const GlobalPoint point) const
overridevirtual

The TrajectoryStateClosestToPoint at any point. The inner-most multi-state state will be used for the propagation. The TSCP will be built out of the collapsed mult-component TSOS.

Implements reco::BasicTransientTrack.

Definition at line 223 of file GsfTransientTrack.cc.

223  {
224  return builder(stateOnSurface(point), point);
225 }

References builder, point, and stateOnSurface().

Member Data Documentation

◆ blStateAvailable

bool reco::GsfTransientTrack::blStateAvailable
mutableprivate

Definition at line 118 of file GsfTransientTrack.h.

Referenced by setBeamSpot(), and stateAtBeamLine().

◆ builder

TSCPBuilderNoMaterial reco::GsfTransientTrack::builder
private

Definition at line 121 of file GsfTransientTrack.h.

Referenced by impactPointTSCP(), and trajectoryStateClosestToPoint().

◆ dtErrorExt_

double reco::GsfTransientTrack::dtErrorExt_
private

Definition at line 114 of file GsfTransientTrack.h.

Referenced by dtErrorExt().

◆ hasTime

bool reco::GsfTransientTrack::hasTime
private

Definition at line 113 of file GsfTransientTrack.h.

Referenced by dtErrorExt(), and timeExt().

◆ initialFTS

FreeTrajectoryState reco::GsfTransientTrack::initialFTS
private

◆ initialTSCP

TrajectoryStateClosestToPoint reco::GsfTransientTrack::initialTSCP
mutableprivate

Definition at line 120 of file GsfTransientTrack.h.

Referenced by GsfTransientTrack(), and impactPointTSCP().

◆ initialTSCPAvailable

bool reco::GsfTransientTrack::initialTSCPAvailable
mutableprivate

Definition at line 118 of file GsfTransientTrack.h.

Referenced by GsfTransientTrack(), and impactPointTSCP().

◆ initialTSOS

TrajectoryStateOnSurface reco::GsfTransientTrack::initialTSOS
mutableprivate

Definition at line 119 of file GsfTransientTrack.h.

Referenced by calculateTSOSAtVertex(), GsfTransientTrack(), and impactPointState().

◆ initialTSOSAvailable

bool reco::GsfTransientTrack::initialTSOSAvailable
mutableprivate

◆ theBeamSpot

reco::BeamSpot reco::GsfTransientTrack::theBeamSpot
private

Definition at line 123 of file GsfTransientTrack.h.

Referenced by setBeamSpot(), and stateAtBeamLine().

◆ theField

const MagneticField* reco::GsfTransientTrack::theField
private

◆ theTIPExtrapolator

TransverseImpactPointExtrapolator reco::GsfTransientTrack::theTIPExtrapolator
private

Definition at line 126 of file GsfTransientTrack.h.

Referenced by stateOnSurface().

◆ theTrackingGeometry

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

◆ timeExt_

double reco::GsfTransientTrack::timeExt_
private

Definition at line 114 of file GsfTransientTrack.h.

Referenced by timeExt().

◆ tkr_

GsfTrackRef reco::GsfTransientTrack::tkr_
private

Definition at line 112 of file GsfTransientTrack.h.

Referenced by persistentTrackRef(), and trackBaseRef().

◆ trajectoryStateClosestToBeamLine

TrajectoryStateClosestToBeamLine reco::GsfTransientTrack::trajectoryStateClosestToBeamLine
mutableprivate

Definition at line 124 of file GsfTransientTrack.h.

Referenced by stateAtBeamLine().

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::GsfTransientTrack::field
const MagneticField * field() const override
Definition: GsfTransientTrack.h:98
reco::GsfTrack::GsfTrack
GsfTrack()
default constructor
Definition: GsfTrack.cc:4
reco::GsfTransientTrack::initialFTS
FreeTrajectoryState initialFTS
Definition: GsfTransientTrack.h:117
reco::GsfTransientTrack::initialTSOS
TrajectoryStateOnSurface initialTSOS
Definition: GsfTransientTrack.h:119
reco::GsfTransientTrack::theTIPExtrapolator
TransverseImpactPointExtrapolator theTIPExtrapolator
Definition: GsfTransientTrack.h:126
reco::GsfTransientTrack::tkr_
GsfTrackRef tkr_
Definition: GsfTransientTrack.h:112
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
reco::GsfTransientTrack::hasTime
bool hasTime
Definition: GsfTransientTrack.h:113
FreeTrajectoryState::position
GlobalPoint position() const
Definition: FreeTrajectoryState.h:67
reco::GsfTransientTrack::blStateAvailable
bool blStateAvailable
Definition: GsfTransientTrack.h:118
singleTopDQM_cfi.setup
setup
Definition: singleTopDQM_cfi.py:37
MultiTrajectoryStateTransform::outerStateOnSurface
TrajectoryStateOnSurface outerStateOnSurface(const reco::GsfTrack &tk) const
Definition: MultiTrajectoryStateTransform.cc:19
reco::GsfTransientTrack::trajectoryStateClosestToBeamLine
TrajectoryStateClosestToBeamLine trajectoryStateClosestToBeamLine
Definition: GsfTransientTrack.h:124
reco::GsfTransientTrack::theBeamSpot
reco::BeamSpot theBeamSpot
Definition: GsfTransientTrack.h:123
reco::GsfTransientTrack::initialTSCPAvailable
bool initialTSCPAvailable
Definition: GsfTransientTrack.h:118
reco::TrackBase::charge
int charge() const
track electric charge
Definition: TrackBase.h:596
reco::GsfTransientTrack::theTrackingGeometry
edm::ESHandle< GlobalTrackingGeometry > theTrackingGeometry
Definition: GsfTransientTrack.h:122
reco::GsfTransientTrack::timeExt_
double timeExt_
Definition: GsfTransientTrack.h:114
AnalyticalPropagator_cfi.AnalyticalPropagator
AnalyticalPropagator
Definition: AnalyticalPropagator_cfi.py:3
reco::GsfTransientTrack::stateOnSurface
TrajectoryStateOnSurface stateOnSurface(const GlobalPoint &point) const override
Definition: GsfTransientTrack.cc:219
reco::GsfTransientTrack::initialTSCP
TrajectoryStateClosestToPoint initialTSCP
Definition: GsfTransientTrack.h:120
reco::GsfTransientTrack::theField
const MagneticField * theField
Definition: GsfTransientTrack.h:115
reco::GsfTransientTrack::dtErrorExt_
double dtErrorExt_
Definition: GsfTransientTrack.h:114
reco::get
T get(const Candidate &c)
Definition: component.h:60
TSCBLBuilderNoMaterial
Definition: TSCBLBuilderNoMaterial.h:13
reco::GsfTransientTrack::calculateTSOSAtVertex
void calculateTSOSAtVertex() const
Definition: GsfTransientTrack.cc:213
TransverseImpactPointExtrapolator::extrapolate
TrajectoryStateOnSurface extrapolate(const FreeTrajectoryState &fts, const GlobalPoint &vtx) const
extrapolation with default (=geometrical) propagator
Definition: TransverseImpactPointExtrapolator.cc:23
MultiTrajectoryStateTransform::innerStateOnSurface
TrajectoryStateOnSurface innerStateOnSurface(const reco::GsfTrack &tk) const
Definition: MultiTrajectoryStateTransform.cc:23
reco::GsfTransientTrack::initialTSOSAvailable
bool initialTSOSAvailable
Definition: GsfTransientTrack.h:118
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::GsfTransientTrack::builder
TSCPBuilderNoMaterial builder
Definition: GsfTransientTrack.h:121
alongMomentum
Definition: PropagationDirection.h:4
reco::GsfTransientTrack::innermostMeasurementState
TrajectoryStateOnSurface innermostMeasurementState() const override
Definition: GsfTransientTrack.cc:209