30
30
#include " TMatrixD.h"
31
31
#include " TObject.h"
32
32
33
-
34
- enum REST_HitType { unknown = -1 , X = 2 , Y = 3 , Z = 5 , XY = 6 , XZ = 10 , YZ = 15 , XYZ = 30 };
35
33
// ! It let save an event as a set of punctual deposition.
36
34
// ! It saves a 3-coordinate position and an energy for each punctual deposition.
37
35
class TRestHits : public TObject {
38
36
private:
37
+ enum REST_HitType { unknown = -1 , XZ = 1 , YZ = 2 , XY = 3 , XYZ = 0 };
38
+
39
39
public:
40
40
Int_t fNHits ; // /< Number of punctual energy depositions, it is the lenght
41
41
// /< for all the array
@@ -51,7 +51,7 @@ class TRestHits : public TObject {
51
51
// (units us, 0 is time of decay)
52
52
std::vector<Float_t> fEnergy ; // [fNHits] Energy deposited at each
53
53
// 3-coordinate position (units keV)
54
- std::vector < REST_HitType> fType ; //
54
+ REST_HitType fType ; // !
55
55
// ! Changes the origin of the Cartesian coordinate system
56
56
void Translate (Int_t n, Double_t x, Double_t y, Double_t z);
57
57
// / Event is rotated in XYZ.
@@ -63,8 +63,8 @@ class TRestHits : public TObject {
63
63
TVector3 vMean); // vMean is the mean position of the event from
64
64
// GetMeanPosition()
65
65
66
- void AddHit (Double_t x, Double_t y, Double_t z, Double_t en, Double_t t = 0 , REST_HitType type = XYZ );
67
- void AddHit (TVector3 pos, Double_t en, Double_t t = 0 , REST_HitType type = XYZ );
66
+ void AddHit (Double_t x, Double_t y, Double_t z, Double_t en, Double_t t = 0 );
67
+ void AddHit (TVector3 pos, Double_t en, Double_t t = 0 );
68
68
void AddHit (TRestHits& hits, Int_t n);
69
69
70
70
void RemoveHits ();
@@ -78,10 +78,10 @@ class TRestHits : public TObject {
78
78
virtual void SwapHits (Int_t i, Int_t j);
79
79
virtual void RemoveHit (int n);
80
80
81
- virtual Bool_t areXY ();
82
- virtual Bool_t areXZ ();
83
- virtual Bool_t areYZ ();
84
- virtual Bool_t areXYZ ();
81
+ Bool_t areXY ();
82
+ Bool_t areXZ ();
83
+ Bool_t areYZ ();
84
+ Bool_t areXYZ ();
85
85
86
86
Bool_t isNaN (Int_t n);
87
87
@@ -103,7 +103,6 @@ class TRestHits : public TObject {
103
103
Double_t GetY (int n) { return ((Double_t)fY [n]); } // return value in mm
104
104
Double_t GetZ (int n) { return ((Double_t)fZ [n]); } // return value in mm
105
105
Double_t GetTime (int n) { return ((Double_t)fT [n]); } // return value in us
106
- REST_HitType GetType (int n) { return fType [n]; }
107
106
108
107
TVector3 GetPosition (int n);
109
108
TVector3 GetVector (int i, int j);
@@ -184,11 +183,11 @@ class TRestHits : public TObject {
184
183
185
184
virtual void PrintHits (Int_t nHits = -1 );
186
185
187
- // Construtor
186
+ // Constructor
188
187
TRestHits ();
189
188
// Destructor
190
189
~TRestHits ();
191
190
192
- ClassDef (TRestHits, 5 );
191
+ ClassDef (TRestHits, 4 );
193
192
};
194
193
#endif
0 commit comments