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 
25  void setPosition(const Gflash3Vector &position) { thePosition = position; }
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
Gflash3Vector getCrossUnitVector()
void setPathLength(double pathLength)
Gflash3Vector getOrthogonalUnitVector()
void setPosition(const Gflash3Vector &position)
CLHEP::Hep3Vector Gflash3Vector
Definition: Gflash3Vector.h:6
Gflash3Vector & getPosition()
static int position[264][3]
Definition: ReadPGInfo.cc:509
Gflash3Vector & getMomentum()
void setMomentum(const Gflash3Vector &momentum)