CMS 3D CMS Logo

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

#include <GflashTrajectoryPoint.h>

Public Member Functions

Gflash3Vector getCrossUnitVector ()
 
Gflash3VectorgetMomentum ()
 
Gflash3Vector getOrthogonalUnitVector ()
 
double getPathLength ()
 
Gflash3VectorgetPosition ()
 
 GflashTrajectoryPoint ()
 
 GflashTrajectoryPoint (Gflash3Vector &position, Gflash3Vector &momentum, double pathLength)
 
void setMomentum (const Gflash3Vector &momentum)
 
void setPathLength (double pathLength)
 
void setPosition (const Gflash3Vector &position)
 
 ~GflashTrajectoryPoint ()
 

Private Attributes

Gflash3Vector theMomentum
 
double thePathLength
 
Gflash3Vector thePosition
 

Detailed Description

Definition at line 8 of file GflashTrajectoryPoint.h.

Constructor & Destructor Documentation

◆ GflashTrajectoryPoint() [1/2]

GflashTrajectoryPoint::GflashTrajectoryPoint ( )

Definition at line 3 of file GflashTrajectoryPoint.cc.

3  : thePosition(0, 0, 0), theMomentum(0, 0, 0), thePathLength(0) {
4  // default constructor
5 }

◆ GflashTrajectoryPoint() [2/2]

GflashTrajectoryPoint::GflashTrajectoryPoint ( Gflash3Vector position,
Gflash3Vector momentum,
double  pathLength 
)

Definition at line 7 of file GflashTrajectoryPoint.cc.

7  {
9  theMomentum = momentum;
10  thePathLength = pathLength;
11 }

References position, theMomentum, thePathLength, and thePosition.

◆ ~GflashTrajectoryPoint()

GflashTrajectoryPoint::~GflashTrajectoryPoint ( )

Definition at line 13 of file GflashTrajectoryPoint.cc.

13 {}

Member Function Documentation

◆ getCrossUnitVector()

Gflash3Vector GflashTrajectoryPoint::getCrossUnitVector ( )
inline

Definition at line 23 of file GflashTrajectoryPoint.h.

23 { return theMomentum.cross(getOrthogonalUnitVector()).unit(); }

References getOrthogonalUnitVector(), and theMomentum.

Referenced by HFGflash::gfParameterization().

◆ getMomentum()

Gflash3Vector& GflashTrajectoryPoint::getMomentum ( )
inline

Definition at line 21 of file GflashTrajectoryPoint.h.

21 { return theMomentum; }

References theMomentum.

◆ getOrthogonalUnitVector()

Gflash3Vector GflashTrajectoryPoint::getOrthogonalUnitVector ( )
inline

Definition at line 22 of file GflashTrajectoryPoint.h.

22 { return theMomentum.orthogonal().unit(); }

References theMomentum.

Referenced by getCrossUnitVector(), and HFGflash::gfParameterization().

◆ getPathLength()

double GflashTrajectoryPoint::getPathLength ( )
inline

Definition at line 19 of file GflashTrajectoryPoint.h.

19 { return thePathLength; }

References thePathLength.

◆ getPosition()

Gflash3Vector& GflashTrajectoryPoint::getPosition ( )
inline

◆ setMomentum()

void GflashTrajectoryPoint::setMomentum ( const Gflash3Vector momentum)
inline

Definition at line 26 of file GflashTrajectoryPoint.h.

26 { theMomentum = momentum; }

References theMomentum.

◆ setPathLength()

void GflashTrajectoryPoint::setPathLength ( double  pathLength)
inline

Definition at line 27 of file GflashTrajectoryPoint.h.

27 { thePathLength = pathLength; }

References thePathLength.

◆ setPosition()

void GflashTrajectoryPoint::setPosition ( const Gflash3Vector position)
inline

Definition at line 25 of file GflashTrajectoryPoint.h.

25 { thePosition = position; }

References position, and thePosition.

Member Data Documentation

◆ theMomentum

Gflash3Vector GflashTrajectoryPoint::theMomentum
private

◆ thePathLength

double GflashTrajectoryPoint::thePathLength
private

Definition at line 32 of file GflashTrajectoryPoint.h.

Referenced by getPathLength(), GflashTrajectoryPoint(), and setPathLength().

◆ thePosition

Gflash3Vector GflashTrajectoryPoint::thePosition
private

Definition at line 30 of file GflashTrajectoryPoint.h.

Referenced by getPosition(), GflashTrajectoryPoint(), and setPosition().

GflashTrajectoryPoint::theMomentum
Gflash3Vector theMomentum
Definition: GflashTrajectoryPoint.h:31
GflashTrajectoryPoint::thePosition
Gflash3Vector thePosition
Definition: GflashTrajectoryPoint.h:30
GflashTrajectoryPoint::getOrthogonalUnitVector
Gflash3Vector getOrthogonalUnitVector()
Definition: GflashTrajectoryPoint.h:22
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
GflashTrajectoryPoint::thePathLength
double thePathLength
Definition: GflashTrajectoryPoint.h:32