CMS 3D CMS Logo

GflashTrajectoryPoint.h
Go to the documentation of this file.
1 #ifndef GflashTrajectoryPoint_H
2 #define GflashTrajectoryPoint_H
3 
4 #include "CLHEP/Geometry/Point3D.h"
5 #include "CLHEP/Geometry/Vector3D.h"
7 
9 public:
10  //-------------------------
11  // Constructor, destructor
12  //-------------------------
14 
15  GflashTrajectoryPoint(Gflash3Vector &position, Gflash3Vector &momentum, double pathLength);
16 
18 
19  double getPathLength() { return thePathLength; }
22  Gflash3Vector getOrthogonalUnitVector() { return theMomentum.orthogonal().unit(); }
24 
26  void setMomentum(const Gflash3Vector &momentum) { theMomentum = momentum; }
27  void setPathLength(double pathLength) { thePathLength = pathLength; }
28 
29 private:
32  double thePathLength;
33 };
34 
35 #endif
GflashTrajectoryPoint::theMomentum
Gflash3Vector theMomentum
Definition: GflashTrajectoryPoint.h:31
GflashTrajectoryPoint::setPosition
void setPosition(const Gflash3Vector &position)
Definition: GflashTrajectoryPoint.h:25
GflashTrajectoryPoint::thePosition
Gflash3Vector thePosition
Definition: GflashTrajectoryPoint.h:30
Gflash3Vector.h
GflashTrajectoryPoint::getMomentum
Gflash3Vector & getMomentum()
Definition: GflashTrajectoryPoint.h:21
GflashTrajectoryPoint::getOrthogonalUnitVector
Gflash3Vector getOrthogonalUnitVector()
Definition: GflashTrajectoryPoint.h:22
GflashTrajectoryPoint::setMomentum
void setMomentum(const Gflash3Vector &momentum)
Definition: GflashTrajectoryPoint.h:26
GflashTrajectoryPoint::GflashTrajectoryPoint
GflashTrajectoryPoint()
Definition: GflashTrajectoryPoint.cc:3
GflashTrajectoryPoint::getPosition
Gflash3Vector & getPosition()
Definition: GflashTrajectoryPoint.h:20
position
static int position[264][3]
Definition: ReadPGInfo.cc:289
GflashTrajectoryPoint::getCrossUnitVector
Gflash3Vector getCrossUnitVector()
Definition: GflashTrajectoryPoint.h:23
Gflash3Vector
CLHEP::Hep3Vector Gflash3Vector
Definition: Gflash3Vector.h:6
GflashTrajectoryPoint::~GflashTrajectoryPoint
~GflashTrajectoryPoint()
Definition: GflashTrajectoryPoint.cc:13
GflashTrajectoryPoint::thePathLength
double thePathLength
Definition: GflashTrajectoryPoint.h:32
GflashTrajectoryPoint::setPathLength
void setPathLength(double pathLength)
Definition: GflashTrajectoryPoint.h:27
GflashTrajectoryPoint
Definition: GflashTrajectoryPoint.h:8
GflashTrajectoryPoint::getPathLength
double getPathLength()
Definition: GflashTrajectoryPoint.h:19