CMS 3D CMS Logo

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

#include <G4SimTrack.h>

Public Member Functions

void copyCrossedBoundaryVars (const TrackWithHistory *track)
 
bool crossedBoundary () const
 
double energy () const
 
 G4SimTrack ()
 
 G4SimTrack (int iid, int ipart, const math::XYZVectorD &ip, double ie)
 
 G4SimTrack (int iid, int ipart, const math::XYZVectorD &ip, double ie, int iv, int ig, const math::XYZVectorD &ipmom)
 
 G4SimTrack (int iid, int ipart, const math::XYZVectorD &ip, double ie, int iv, int ig, const math::XYZVectorD &ipmom, const math::XYZVectorD &tkpos, const math::XYZTLorentzVectorD &tkmom)
 
int getIDAtBoundary () const
 
const math::XYZTLorentzVectorFgetMomentumAtBoundary () const
 
const math::XYZTLorentzVectorFgetPositionAtBoundary () const
 
int id () const
 
int igenpart () const
 
int ivert () const
 
const math::XYZVectorDmomentum () const
 
int parentID () const
 
const math::XYZVectorDparentMomentum () const
 
int part () const
 
const math::XYZTLorentzVectorDtrackerSurfaceMomentum () const
 
const math::XYZVectorDtrackerSurfacePosition () const
 
 ~G4SimTrack ()
 

Private Attributes

bool crossedBoundary_
 
int id_
 
int idAtBoundary_
 
double ie_
 
int igenpart_
 
math::XYZVectorD ip_
 
int ipart_
 
int ivert_
 
math::XYZTLorentzVectorF momentumAtBoundary_
 
int parentID_
 
math::XYZVectorD parentMomentum_
 
math::XYZTLorentzVectorF positionAtBoundary_
 
math::XYZTLorentzVectorD tkSurfaceMomentum_
 
math::XYZVectorD tkSurfacePosition_
 

Detailed Description

Definition at line 11 of file G4SimTrack.h.

Constructor & Destructor Documentation

◆ G4SimTrack() [1/4]

G4SimTrack::G4SimTrack ( )
inline

Definition at line 13 of file G4SimTrack.h.

13 {}

◆ G4SimTrack() [2/4]

G4SimTrack::G4SimTrack ( int  iid,
int  ipart,
const math::XYZVectorD ip,
double  ie 
)
inline

Definition at line 15 of file G4SimTrack.h.

16  : id_(iid),
17  ipart_(ipart),
18  ip_(ip),
19  ie_(ie),
20  ivert_(-1),
21  igenpart_(-1),
22  parentID_(-1),
23  parentMomentum_(math::XYZVectorD(0., 0., 0.)),
26  crossedBoundary_(false) {}
int ipart_
Definition: G4SimTrack.h:92
bool crossedBoundary_
Definition: G4SimTrack.h:101
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:14
int ivert_
Definition: G4SimTrack.h:95
math::XYZVectorD parentMomentum_
Definition: G4SimTrack.h:98
math::XYZTLorentzVectorD tkSurfaceMomentum_
Definition: G4SimTrack.h:100
int igenpart_
Definition: G4SimTrack.h:96
math::XYZVectorD tkSurfacePosition_
Definition: G4SimTrack.h:99
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
Definition: Vector3D.h:8
math::XYZVectorD ip_
Definition: G4SimTrack.h:93
int parentID_
Definition: G4SimTrack.h:97
double ie_
Definition: G4SimTrack.h:94

◆ G4SimTrack() [3/4]

G4SimTrack::G4SimTrack ( int  iid,
int  ipart,
const math::XYZVectorD ip,
double  ie,
int  iv,
int  ig,
const math::XYZVectorD ipmom 
)
inline

Definition at line 28 of file G4SimTrack.h.

29  : id_(iid),
30  ipart_(ipart),
31  ip_(ip),
32  ie_(ie),
33  ivert_(iv),
34  igenpart_(ig),
35  parentMomentum_(ipmom),
38  crossedBoundary_(false) {}
int ipart_
Definition: G4SimTrack.h:92
bool crossedBoundary_
Definition: G4SimTrack.h:101
int32_t *__restrict__ iv
ROOT::Math::LorentzVector< ROOT::Math::PxPyPzE4D< double > > XYZTLorentzVectorD
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:14
int ivert_
Definition: G4SimTrack.h:95
math::XYZVectorD parentMomentum_
Definition: G4SimTrack.h:98
math::XYZTLorentzVectorD tkSurfaceMomentum_
Definition: G4SimTrack.h:100
int igenpart_
Definition: G4SimTrack.h:96
math::XYZVectorD tkSurfacePosition_
Definition: G4SimTrack.h:99
ROOT::Math::DisplacementVector3D< ROOT::Math::Cartesian3D< double > > XYZVectorD
spatial vector with cartesian internal representation
Definition: Vector3D.h:8
math::XYZVectorD ip_
Definition: G4SimTrack.h:93
double ie_
Definition: G4SimTrack.h:94

◆ G4SimTrack() [4/4]

G4SimTrack::G4SimTrack ( int  iid,
int  ipart,
const math::XYZVectorD ip,
double  ie,
int  iv,
int  ig,
const math::XYZVectorD ipmom,
const math::XYZVectorD tkpos,
const math::XYZTLorentzVectorD tkmom 
)
inline

Definition at line 40 of file G4SimTrack.h.

49  : id_(iid),
50  ipart_(ipart),
51  ip_(ip),
52  ie_(ie),
53  ivert_(iv),
54  igenpart_(ig),
55  parentMomentum_(ipmom),
56  tkSurfacePosition_(tkpos),
57  tkSurfaceMomentum_(tkmom),
58  crossedBoundary_(false) {}
int ipart_
Definition: G4SimTrack.h:92
bool crossedBoundary_
Definition: G4SimTrack.h:101
int32_t *__restrict__ iv
int ivert_
Definition: G4SimTrack.h:95
math::XYZVectorD parentMomentum_
Definition: G4SimTrack.h:98
math::XYZTLorentzVectorD tkSurfaceMomentum_
Definition: G4SimTrack.h:100
int igenpart_
Definition: G4SimTrack.h:96
math::XYZVectorD tkSurfacePosition_
Definition: G4SimTrack.h:99
math::XYZVectorD ip_
Definition: G4SimTrack.h:93
double ie_
Definition: G4SimTrack.h:94

◆ ~G4SimTrack()

G4SimTrack::~G4SimTrack ( )
inline

Definition at line 60 of file G4SimTrack.h.

60 {}

Member Function Documentation

◆ copyCrossedBoundaryVars()

void G4SimTrack::copyCrossedBoundaryVars ( const TrackWithHistory track)
inline

Definition at line 77 of file G4SimTrack.h.

References crossedBoundary_, idAtBoundary_, momentumAtBoundary_, positionAtBoundary_, and HLT_2022v12_cff::track.

Referenced by SimTrackManager::reallyStoreTracks().

77  {
78  if (track->crossedBoundary()) {
79  crossedBoundary_ = track->crossedBoundary();
80  idAtBoundary_ = track->getIDAtBoundary();
81  positionAtBoundary_ = track->getPositionAtBoundary();
82  momentumAtBoundary_ = track->getMomentumAtBoundary();
83  }
84  }
bool crossedBoundary_
Definition: G4SimTrack.h:101
math::XYZTLorentzVectorF positionAtBoundary_
Definition: G4SimTrack.h:103
int idAtBoundary_
Definition: G4SimTrack.h:102
math::XYZTLorentzVectorF momentumAtBoundary_
Definition: G4SimTrack.h:104

◆ crossedBoundary()

bool G4SimTrack::crossedBoundary ( ) const
inline

Definition at line 85 of file G4SimTrack.h.

References crossedBoundary_.

Referenced by G4SimEvent::load().

85 { return crossedBoundary_; }
bool crossedBoundary_
Definition: G4SimTrack.h:101

◆ energy()

double G4SimTrack::energy ( void  ) const
inline

Definition at line 65 of file G4SimTrack.h.

References ie_.

Referenced by G4SimEvent::load(), and Jet.Jet::rawEnergy().

65 { return ie_; }
double ie_
Definition: G4SimTrack.h:94

◆ getIDAtBoundary()

int G4SimTrack::getIDAtBoundary ( ) const
inline

Definition at line 88 of file G4SimTrack.h.

References idAtBoundary_.

Referenced by G4SimEvent::load().

88 { return idAtBoundary_; }
int idAtBoundary_
Definition: G4SimTrack.h:102

◆ getMomentumAtBoundary()

const math::XYZTLorentzVectorF& G4SimTrack::getMomentumAtBoundary ( ) const
inline

Definition at line 87 of file G4SimTrack.h.

References momentumAtBoundary_.

Referenced by G4SimEvent::load().

87 { return momentumAtBoundary_; }
math::XYZTLorentzVectorF momentumAtBoundary_
Definition: G4SimTrack.h:104

◆ getPositionAtBoundary()

const math::XYZTLorentzVectorF& G4SimTrack::getPositionAtBoundary ( ) const
inline

Definition at line 86 of file G4SimTrack.h.

References positionAtBoundary_.

Referenced by G4SimEvent::load().

86 { return positionAtBoundary_; }
math::XYZTLorentzVectorF positionAtBoundary_
Definition: G4SimTrack.h:103

◆ id()

int G4SimTrack::id ( void  ) const
inline

Definition at line 62 of file G4SimTrack.h.

References id_.

Referenced by G4SimEvent::load().

62 { return id_; }

◆ igenpart()

int G4SimTrack::igenpart ( ) const
inline

Definition at line 67 of file G4SimTrack.h.

References igenpart_.

Referenced by G4SimEvent::load().

67 { return igenpart_; }
int igenpart_
Definition: G4SimTrack.h:96

◆ ivert()

int G4SimTrack::ivert ( ) const
inline

Definition at line 66 of file G4SimTrack.h.

References ivert_.

Referenced by G4SimEvent::load().

66 { return ivert_; }
int ivert_
Definition: G4SimTrack.h:95

◆ momentum()

const math::XYZVectorD& G4SimTrack::momentum ( ) const
inline

Definition at line 64 of file G4SimTrack.h.

References ip_.

Referenced by G4SimEvent::load().

64 { return ip_; }
math::XYZVectorD ip_
Definition: G4SimTrack.h:93

◆ parentID()

int G4SimTrack::parentID ( ) const
inline

Definition at line 75 of file G4SimTrack.h.

References parentID_.

75 { return parentID_; }
int parentID_
Definition: G4SimTrack.h:97

◆ parentMomentum()

const math::XYZVectorD& G4SimTrack::parentMomentum ( ) const
inline

Definition at line 69 of file G4SimTrack.h.

References parentMomentum_.

69 { return parentMomentum_; }
math::XYZVectorD parentMomentum_
Definition: G4SimTrack.h:98

◆ part()

int G4SimTrack::part ( ) const
inline

Definition at line 63 of file G4SimTrack.h.

References ipart_.

Referenced by G4SimEvent::load().

63 { return ipart_; }
int ipart_
Definition: G4SimTrack.h:92

◆ trackerSurfaceMomentum()

const math::XYZTLorentzVectorD& G4SimTrack::trackerSurfaceMomentum ( ) const
inline

Definition at line 72 of file G4SimTrack.h.

References tkSurfaceMomentum_.

Referenced by G4SimEvent::load().

72 { return tkSurfaceMomentum_; }
math::XYZTLorentzVectorD tkSurfaceMomentum_
Definition: G4SimTrack.h:100

◆ trackerSurfacePosition()

const math::XYZVectorD& G4SimTrack::trackerSurfacePosition ( ) const
inline

Definition at line 71 of file G4SimTrack.h.

References tkSurfacePosition_.

Referenced by G4SimEvent::load().

71 { return tkSurfacePosition_; }
math::XYZVectorD tkSurfacePosition_
Definition: G4SimTrack.h:99

Member Data Documentation

◆ crossedBoundary_

bool G4SimTrack::crossedBoundary_
private

Definition at line 101 of file G4SimTrack.h.

Referenced by copyCrossedBoundaryVars(), and crossedBoundary().

◆ id_

int G4SimTrack::id_
private

Definition at line 91 of file G4SimTrack.h.

Referenced by id().

◆ idAtBoundary_

int G4SimTrack::idAtBoundary_
private

Definition at line 102 of file G4SimTrack.h.

Referenced by copyCrossedBoundaryVars(), and getIDAtBoundary().

◆ ie_

double G4SimTrack::ie_
private

Definition at line 94 of file G4SimTrack.h.

Referenced by energy().

◆ igenpart_

int G4SimTrack::igenpart_
private

Definition at line 96 of file G4SimTrack.h.

Referenced by igenpart().

◆ ip_

math::XYZVectorD G4SimTrack::ip_
private

Definition at line 93 of file G4SimTrack.h.

Referenced by momentum().

◆ ipart_

int G4SimTrack::ipart_
private

Definition at line 92 of file G4SimTrack.h.

Referenced by part().

◆ ivert_

int G4SimTrack::ivert_
private

Definition at line 95 of file G4SimTrack.h.

Referenced by ivert().

◆ momentumAtBoundary_

math::XYZTLorentzVectorF G4SimTrack::momentumAtBoundary_
private

Definition at line 104 of file G4SimTrack.h.

Referenced by copyCrossedBoundaryVars(), and getMomentumAtBoundary().

◆ parentID_

int G4SimTrack::parentID_
private

Definition at line 97 of file G4SimTrack.h.

Referenced by parentID().

◆ parentMomentum_

math::XYZVectorD G4SimTrack::parentMomentum_
private

Definition at line 98 of file G4SimTrack.h.

Referenced by parentMomentum().

◆ positionAtBoundary_

math::XYZTLorentzVectorF G4SimTrack::positionAtBoundary_
private

Definition at line 103 of file G4SimTrack.h.

Referenced by copyCrossedBoundaryVars(), and getPositionAtBoundary().

◆ tkSurfaceMomentum_

math::XYZTLorentzVectorD G4SimTrack::tkSurfaceMomentum_
private

Definition at line 100 of file G4SimTrack.h.

Referenced by trackerSurfaceMomentum().

◆ tkSurfacePosition_

math::XYZVectorD G4SimTrack::tkSurfacePosition_
private

Definition at line 99 of file G4SimTrack.h.

Referenced by trackerSurfacePosition().