CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TrackTimeLifeInfo Class Reference

Structure to hold time-life information. More...

#include <TrackTimeLifeInfo.h>

Public Member Functions

float bField_z () const
 
const GlobalErrorflightCovariance () const
 
const Measurement1DflightLength () const
 
const GlobalVectorflightVector () const
 
bool hasSV () const
 
bool hasTrack () const
 
const GlobalErroripCovariance () const
 
const Measurement1DipLength () const
 
const GlobalVectoripVector () const
 
const GlobalPointpca () const
 
const GlobalErrorpcaCovariance () const
 
void setBField_z (float bField_z)
 
void setFlightLength (Measurement1D flightLength)
 
void setFlightVector (GlobalVector flight_vec, GlobalError flight_cov)
 
void setIP (GlobalVector ip_vec, GlobalError ip_cov)
 
void setIPLength (Measurement1D ipLength)
 
void setPCA (GlobalPoint pca, GlobalError pca_cov)
 
void setSV (reco::Vertex sv)
 
void setTrack (const reco::Track *track)
 
const reco::Vertexsv () const
 
const reco::Tracktrack () const
 
 TrackTimeLifeInfo ()
 
 ~TrackTimeLifeInfo ()
 

Private Attributes

float bField_z_
 
GlobalError flight_cov_
 
GlobalVector flight_vec_
 
Measurement1D flightLength_
 
bool hasSV_
 
bool hasTrack_
 
GlobalError ip_cov_
 
GlobalVector ip_vec_
 
Measurement1D ipLength_
 
GlobalPoint pca_
 
GlobalError pca_cov_
 
reco::Vertex sv_
 
reco::Track track_
 

Detailed Description

Structure to hold time-life information.

Author
Michal Bluj, NCBJ, Warsaw

Definition at line 18 of file TrackTimeLifeInfo.h.

Constructor & Destructor Documentation

◆ TrackTimeLifeInfo()

TrackTimeLifeInfo::TrackTimeLifeInfo ( )

Definition at line 3 of file TrackTimeLifeInfo.cc.

4  : hasSV_(false),
5  hasTrack_(false),
6  sv_(reco::Vertex()),
9  pca_(GlobalPoint()),
16  bField_z_(0.) {}
GlobalVector flight_vec_
GlobalError flight_cov_
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition: GlobalError.h:13
Measurement1D ipLength_
Measurement1D flightLength_
GlobalVector ip_vec_
Global3DVector GlobalVector
Definition: GlobalVector.h:10

◆ ~TrackTimeLifeInfo()

TrackTimeLifeInfo::~TrackTimeLifeInfo ( )
inline

Definition at line 21 of file TrackTimeLifeInfo.h.

21 {}

Member Function Documentation

◆ bField_z()

float TrackTimeLifeInfo::bField_z ( ) const
inline

Definition at line 68 of file TrackTimeLifeInfo.h.

References bField_z_.

Referenced by setBField_z().

68 { return bField_z_; }

◆ flightCovariance()

const GlobalError& TrackTimeLifeInfo::flightCovariance ( ) const
inline

Definition at line 36 of file TrackTimeLifeInfo.h.

References flight_cov_.

36 { return flight_cov_; }
GlobalError flight_cov_

◆ flightLength()

const Measurement1D& TrackTimeLifeInfo::flightLength ( ) const
inline

Definition at line 38 of file TrackTimeLifeInfo.h.

References flightLength_.

Referenced by setFlightLength().

38 { return flightLength_; }
Measurement1D flightLength_

◆ flightVector()

const GlobalVector& TrackTimeLifeInfo::flightVector ( ) const
inline

Definition at line 35 of file TrackTimeLifeInfo.h.

References flight_vec_.

35 { return flight_vec_; }
GlobalVector flight_vec_

◆ hasSV()

bool TrackTimeLifeInfo::hasSV ( ) const
inline

Definition at line 29 of file TrackTimeLifeInfo.h.

References hasSV_.

29 { return hasSV_; }

◆ hasTrack()

bool TrackTimeLifeInfo::hasTrack ( ) const
inline

Definition at line 66 of file TrackTimeLifeInfo.h.

References hasTrack_.

66 { return hasTrack_; }

◆ ipCovariance()

const GlobalError& TrackTimeLifeInfo::ipCovariance ( ) const
inline

Definition at line 52 of file TrackTimeLifeInfo.h.

References ip_cov_.

52 { return ip_cov_; }

◆ ipLength()

const Measurement1D& TrackTimeLifeInfo::ipLength ( ) const
inline

Definition at line 54 of file TrackTimeLifeInfo.h.

References ipLength_.

Referenced by setIPLength().

54 { return ipLength_; }
Measurement1D ipLength_

◆ ipVector()

const GlobalVector& TrackTimeLifeInfo::ipVector ( ) const
inline

Definition at line 51 of file TrackTimeLifeInfo.h.

References ip_vec_.

51 { return ip_vec_; }
GlobalVector ip_vec_

◆ pca()

const GlobalPoint& TrackTimeLifeInfo::pca ( ) const
inline

Definition at line 44 of file TrackTimeLifeInfo.h.

References pca_.

Referenced by setPCA().

44 { return pca_; }

◆ pcaCovariance()

const GlobalError& TrackTimeLifeInfo::pcaCovariance ( ) const
inline

Definition at line 45 of file TrackTimeLifeInfo.h.

References pca_cov_.

45 { return pca_cov_; }

◆ setBField_z()

void TrackTimeLifeInfo::setBField_z ( float  bField_z)
inline

Definition at line 67 of file TrackTimeLifeInfo.h.

References bField_z(), and bField_z_.

◆ setFlightLength()

void TrackTimeLifeInfo::setFlightLength ( Measurement1D  flightLength)
inline

Definition at line 37 of file TrackTimeLifeInfo.h.

References flightLength(), and flightLength_.

Measurement1D flightLength_
const Measurement1D & flightLength() const

◆ setFlightVector()

void TrackTimeLifeInfo::setFlightVector ( GlobalVector  flight_vec,
GlobalError  flight_cov 
)
inline

Definition at line 30 of file TrackTimeLifeInfo.h.

References flight_cov_, and flight_vec_.

30  {
31  flight_vec_ = flight_vec;
32  flight_cov_ = flight_cov;
33  }
GlobalVector flight_vec_
GlobalError flight_cov_

◆ setIP()

void TrackTimeLifeInfo::setIP ( GlobalVector  ip_vec,
GlobalError  ip_cov 
)
inline

Definition at line 47 of file TrackTimeLifeInfo.h.

References ip_cov_, and ip_vec_.

47  {
48  ip_vec_ = ip_vec;
49  ip_cov_ = ip_cov;
50  }
GlobalVector ip_vec_

◆ setIPLength()

void TrackTimeLifeInfo::setIPLength ( Measurement1D  ipLength)
inline

Definition at line 53 of file TrackTimeLifeInfo.h.

References ipLength(), and ipLength_.

53 { ipLength_ = ipLength; }
const Measurement1D & ipLength() const
Measurement1D ipLength_

◆ setPCA()

void TrackTimeLifeInfo::setPCA ( GlobalPoint  pca,
GlobalError  pca_cov 
)
inline

Definition at line 40 of file TrackTimeLifeInfo.h.

References pca(), pca_, and pca_cov_.

40  {
41  pca_ = pca;
42  pca_cov_ = pca_cov;
43  }
const GlobalPoint & pca() const

◆ setSV()

void TrackTimeLifeInfo::setSV ( reco::Vertex  sv)
inline

Definition at line 24 of file TrackTimeLifeInfo.h.

References hasSV_, sv(), and sv_.

24  {
25  sv_ = sv;
26  hasSV_ = true;
27  }
const reco::Vertex & sv() const

◆ setTrack()

void TrackTimeLifeInfo::setTrack ( const reco::Track track)
inline

Definition at line 56 of file TrackTimeLifeInfo.h.

References hasTrack_, track(), and track_.

56  {
57  if (track != nullptr) {
58  track_ = *track;
59  hasTrack_ = true;
60  } else {
61  track_ = reco::Track();
62  hasTrack_ = false;
63  }
64  }
const reco::Track * track() const

◆ sv()

const reco::Vertex& TrackTimeLifeInfo::sv ( ) const
inline

Definition at line 28 of file TrackTimeLifeInfo.h.

References sv_.

Referenced by setSV().

28 { return sv_; }

◆ track()

const reco::Track* TrackTimeLifeInfo::track ( ) const
inline

Definition at line 65 of file TrackTimeLifeInfo.h.

References track_.

Referenced by setTrack().

65 { return &track_; }

Member Data Documentation

◆ bField_z_

float TrackTimeLifeInfo::bField_z_
private

Definition at line 78 of file TrackTimeLifeInfo.h.

Referenced by bField_z(), and setBField_z().

◆ flight_cov_

GlobalError TrackTimeLifeInfo::flight_cov_
private

Definition at line 75 of file TrackTimeLifeInfo.h.

Referenced by flightCovariance(), and setFlightVector().

◆ flight_vec_

GlobalVector TrackTimeLifeInfo::flight_vec_
private

Definition at line 73 of file TrackTimeLifeInfo.h.

Referenced by flightVector(), and setFlightVector().

◆ flightLength_

Measurement1D TrackTimeLifeInfo::flightLength_
private

Definition at line 76 of file TrackTimeLifeInfo.h.

Referenced by flightLength(), and setFlightLength().

◆ hasSV_

bool TrackTimeLifeInfo::hasSV_
private

Definition at line 71 of file TrackTimeLifeInfo.h.

Referenced by hasSV(), and setSV().

◆ hasTrack_

bool TrackTimeLifeInfo::hasTrack_
private

Definition at line 71 of file TrackTimeLifeInfo.h.

Referenced by hasTrack(), and setTrack().

◆ ip_cov_

GlobalError TrackTimeLifeInfo::ip_cov_
private

Definition at line 75 of file TrackTimeLifeInfo.h.

Referenced by ipCovariance(), and setIP().

◆ ip_vec_

GlobalVector TrackTimeLifeInfo::ip_vec_
private

Definition at line 73 of file TrackTimeLifeInfo.h.

Referenced by ipVector(), and setIP().

◆ ipLength_

Measurement1D TrackTimeLifeInfo::ipLength_
private

Definition at line 76 of file TrackTimeLifeInfo.h.

Referenced by ipLength(), and setIPLength().

◆ pca_

GlobalPoint TrackTimeLifeInfo::pca_
private

Definition at line 74 of file TrackTimeLifeInfo.h.

Referenced by pca(), and setPCA().

◆ pca_cov_

GlobalError TrackTimeLifeInfo::pca_cov_
private

Definition at line 75 of file TrackTimeLifeInfo.h.

Referenced by pcaCovariance(), and setPCA().

◆ sv_

reco::Vertex TrackTimeLifeInfo::sv_
private

Definition at line 72 of file TrackTimeLifeInfo.h.

Referenced by setSV(), and sv().

◆ track_

reco::Track TrackTimeLifeInfo::track_
private

Definition at line 77 of file TrackTimeLifeInfo.h.

Referenced by setTrack(), and track().