#include <GflashTrajectoryPoint.h>
Public Member Functions | |
Gflash3Vector | getCrossUnitVector () |
Gflash3Vector & | getMomentum () |
Gflash3Vector | getOrthogonalUnitVector () |
double | getPathLength () |
Gflash3Vector & | getPosition () |
GflashTrajectoryPoint (Gflash3Vector &position, Gflash3Vector &momentum, double pathLength) | |
GflashTrajectoryPoint () | |
void | setMomentum (const Gflash3Vector &momentum) |
void | setPathLength (double pathLength) |
void | setPosition (const Gflash3Vector &position) |
~GflashTrajectoryPoint () | |
Private Attributes | |
Gflash3Vector | theMomentum |
double | thePathLength |
Gflash3Vector | thePosition |
Definition at line 8 of file GflashTrajectoryPoint.h.
GflashTrajectoryPoint::GflashTrajectoryPoint | ( | ) |
Definition at line 4 of file GflashTrajectoryPoint.cc.
: thePosition(0,0,0), theMomentum(0,0,0), thePathLength(0) { //default constructor }
GflashTrajectoryPoint::GflashTrajectoryPoint | ( | Gflash3Vector & | position, |
Gflash3Vector & | momentum, | ||
double | pathLength | ||
) |
Definition at line 10 of file GflashTrajectoryPoint.cc.
References position, theMomentum, thePathLength, and thePosition.
{ thePosition = position; theMomentum = momentum; thePathLength = pathLength; }
GflashTrajectoryPoint::~GflashTrajectoryPoint | ( | ) |
Definition at line 18 of file GflashTrajectoryPoint.cc.
{ }
Gflash3Vector GflashTrajectoryPoint::getCrossUnitVector | ( | ) | [inline] |
Definition at line 25 of file GflashTrajectoryPoint.h.
References getOrthogonalUnitVector(), and theMomentum.
Referenced by HFGflash::gfParameterization(), GflashEMShowerProfile::locateHitPosition(), and GflashHadronShowerProfile::locateHitPosition().
{ return theMomentum.cross(getOrthogonalUnitVector()).unit(); }
Gflash3Vector& GflashTrajectoryPoint::getMomentum | ( | ) | [inline] |
Definition at line 23 of file GflashTrajectoryPoint.h.
References theMomentum.
Referenced by GflashTrajectory::getGflashTrajectoryPoint().
{ return theMomentum; }
Gflash3Vector GflashTrajectoryPoint::getOrthogonalUnitVector | ( | ) | [inline] |
Definition at line 24 of file GflashTrajectoryPoint.h.
References theMomentum.
Referenced by getCrossUnitVector(), HFGflash::gfParameterization(), GflashEMShowerProfile::locateHitPosition(), and GflashHadronShowerProfile::locateHitPosition().
{ return theMomentum.orthogonal().unit(); }
double GflashTrajectoryPoint::getPathLength | ( | ) | [inline] |
Definition at line 21 of file GflashTrajectoryPoint.h.
References thePathLength.
{ return thePathLength; }
Gflash3Vector& GflashTrajectoryPoint::getPosition | ( | ) | [inline] |
Definition at line 22 of file GflashTrajectoryPoint.h.
References thePosition.
Referenced by GflashTrajectory::getGflashTrajectoryPoint(), HFGflash::gfParameterization(), GflashHadronShowerProfile::hoProfile(), GflashEMShowerProfile::locateHitPosition(), GflashHadronShowerProfile::locateHitPosition(), GflashShowino::simulateFirstInteractionPoint(), and GflashShowino::updateShowino().
{ return thePosition; }
void GflashTrajectoryPoint::setMomentum | ( | const Gflash3Vector & | momentum | ) | [inline] |
Definition at line 28 of file GflashTrajectoryPoint.h.
References theMomentum.
{ theMomentum = momentum; }
void GflashTrajectoryPoint::setPathLength | ( | double | pathLength | ) | [inline] |
Definition at line 29 of file GflashTrajectoryPoint.h.
References thePathLength.
Referenced by GflashTrajectory::getGflashTrajectoryPoint().
{ thePathLength = pathLength; }
void DTRecHit1DPair::setPosition | ( | const Gflash3Vector & | position | ) | [inline] |
Definition at line 27 of file GflashTrajectoryPoint.h.
References position, and thePosition.
{ thePosition = position; }
Definition at line 33 of file GflashTrajectoryPoint.h.
Referenced by getCrossUnitVector(), getMomentum(), getOrthogonalUnitVector(), GflashTrajectoryPoint(), and setMomentum().
double GflashTrajectoryPoint::thePathLength [private] |
Definition at line 34 of file GflashTrajectoryPoint.h.
Referenced by getPathLength(), GflashTrajectoryPoint(), and setPathLength().
Definition at line 32 of file GflashTrajectoryPoint.h.
Referenced by getPosition(), GflashTrajectoryPoint(), and setPosition().