RotationTransformation.h
Go to the documentation of this file.
1 #ifndef ROTATIONTRANSFORMATION_H
2 #define ROTATIONTRANSFORMATION_H 1
3 
4 #include "Api/PandoraApi.h"
5 
6 #include "CLHEP/Units/PhysicalConstants.h"
7 
8 namespace gar {
9  namespace gar_pandora {
10 
12  {
13  public:
14  RotationTransformation(int kAxis, float angle);
15 
16  virtual ~RotationTransformation();
17 
18  const pandora::CartesianVector MakeRotation(const pandora::CartesianVector &initialVec) const;
19 
20  static const int kAxisX;
21  static const int kAxisY;
22  static const int kAxisZ;
23  private:
24  void SetRotationX();
25  void SetRotationY();
26  void SetRotationZ();
27 
30  float fRotMatrix[9]; //the rotation matrix
31  };
32  }
33 }
34 
35 #endif
const pandora::CartesianVector MakeRotation(const pandora::CartesianVector &initialVec) const
General GArSoft Utilities.