otsdaq  v1_01_02
 All Classes Namespaces Functions
Visual3DEvent.h
1 #ifndef _ots_Visual3DEvent_h
2 #define _ots_Visual3DEvent_h
3 
4 #include <vector>
5 
6 namespace ots
7 {
8 
9 class VisualHit
10 {
11 public:
12  double x;
13  double y;
14  double z;
15  double charge;
16  VisualHit& operator*(double factor){this->x*=factor;this->y*=factor;this->z*=factor;return *this;}
17 };
18 
20 {
21 public:
22  double slopeX;
23  double interceptX;
24  double slopeY;
25  double interceptY;
26 };
27 
28 typedef std::vector<VisualHit> VisualHits;
29 typedef std::vector<VisualTrack> VisualTracks;
30 
32 {
33 public:
34 
35  Visual3DEvent(){;}
36  ~Visual3DEvent(void){;}
37 
38  void addHit (VisualHit& hit) {hits_ .push_back(hit);}
39  void addTrack(VisualTrack& track){tracks_.push_back(track);}
40 
41  const VisualHits& getHits (void) const {return hits_;}
42  const VisualTracks& getTracks(void) const {return tracks_;}
43 private:
44  VisualHits hits_;
45  VisualTracks tracks_;
46 };
47 
48 typedef std::vector<Visual3DEvent> Visual3DEvents;
49 
50 }
51 
52 #endif