rx.hpp
1 // rx.hpp //
4 
5 #ifndef RX_HPP
6 #define RX_HPP 1
7 
8 // Standard Library #includes
9 #include <vector>
10 
11 // ROOT Library #includes
12 #include "TObject.h"
13 
14 // from RVersion.h
15 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,0,0)
16 #if ROOT_VERSION_CODE < ROOT_VERSION(6,22,0)
17 #include "TClingRuntime.h"
18 #endif
19 #else
20 #include "TCint.h"
21 #endif
22 
23 class RX : public TObject {
24 public:
25  unsigned phi_sector;
26  unsigned layer;
27  double x, y, z;
28  std::vector <double>* waveform;
29  std::vector <double>* digitized;
30  RX (void) : phi_sector(0xffff),layer(0xffff), x(0),y(0),z(0), waveform (NULL), digitized (NULL) {}
31  ~RX (void) {delete waveform; delete digitized;}
32  ClassDef(RX, 1);
33 };
34 
35 #endif
Definition: rx.hpp:23