1 | // ESAF : Euso Simulation and Analysis Framework |
---|
2 | // $Id: ChipTrackSegment.hh 1505 2005-02-16 13:02:48Z pesce $ |
---|
3 | // M. Pallavicini created Oct, 24 2003 |
---|
4 | // Piece of track found by ChipTrackingTrgEngine |
---|
5 | // |
---|
6 | #ifndef __CHIPTRACKSEGMENT_HH_ |
---|
7 | #define __CHIPTRACKSEGMENT_HH_ |
---|
8 | |
---|
9 | #include <iostream> |
---|
10 | #include "euso.hh" |
---|
11 | |
---|
12 | class ChipTrackSegment { |
---|
13 | public: |
---|
14 | // ctor |
---|
15 | ChipTrackSegment(); |
---|
16 | |
---|
17 | // dtor |
---|
18 | virtual ~ChipTrackSegment(); |
---|
19 | |
---|
20 | inline Int_t GetChipUid() const { return fChipUid; } |
---|
21 | inline Int_t GetGtuStart() const { return fGtuStart; } |
---|
22 | inline Int_t GetGtuEnd() const { return fGtuEnd; } |
---|
23 | inline Int_t GetCrossBorder() const { return fCrossBorder; } |
---|
24 | inline Int_t GetTrackLength() const { return fTrackLength; } |
---|
25 | inline Bool_t GetHasHole() const { return fHasHole; } |
---|
26 | inline Bool_t GetTriggered() const { return fTriggered; } |
---|
27 | |
---|
28 | inline void SetChipUid(Int_t v) { fChipUid = v; } |
---|
29 | inline void SetGtuStart(Int_t v) { fGtuStart = v; } |
---|
30 | inline void SetGtuEnd(Int_t v) { fGtuEnd = v; } |
---|
31 | inline void SetCrossBorder(Int_t v) { fCrossBorder = v; } |
---|
32 | inline void SetTrackLength(Int_t v) { fTrackLength = v; } |
---|
33 | inline void SetHasHole(Bool_t v) { fHasHole = v; } |
---|
34 | inline void SetTriggered(Bool_t v) { fTriggered = v; } |
---|
35 | |
---|
36 | |
---|
37 | private: |
---|
38 | ClassDef(ChipTrackSegment,0) |
---|
39 | |
---|
40 | // uid of chip where track occurred |
---|
41 | Int_t fChipUid; |
---|
42 | |
---|
43 | // first gtu |
---|
44 | Int_t fGtuStart; |
---|
45 | |
---|
46 | // last gtu |
---|
47 | Int_t fGtuEnd; |
---|
48 | |
---|
49 | // true if track is touching the chip border |
---|
50 | Bool_t fCrossBorder; |
---|
51 | |
---|
52 | // length in number of pixels and gtu |
---|
53 | Int_t fTrackLength; |
---|
54 | |
---|
55 | // true if the track has a hole |
---|
56 | Bool_t fHasHole; |
---|
57 | |
---|
58 | // true if the track is a segment of a trigger track |
---|
59 | Bool_t fTriggered; |
---|
60 | }; |
---|
61 | |
---|
62 | ostream& operator << (ostream& os, const ChipTrackSegment& seg); |
---|
63 | |
---|
64 | #endif /* __CHIPTRACKSEGMENT_HH_ */ |
---|
65 | |
---|