1 | // $Id: EChipTrackSegment.hh 1488 2005-02-15 13:51:18Z pesce $ |
---|
2 | // Author: R.Pesce 2005/02/15 |
---|
3 | |
---|
4 | /***************************************************************************** |
---|
5 | * ESAF: Euso Simulation and Analysis Framework * |
---|
6 | * * |
---|
7 | * Id: EChipTrackSegment * |
---|
8 | * Package: <packagename> * |
---|
9 | * Coordinator: <coordinator> * |
---|
10 | * * |
---|
11 | *****************************************************************************/ |
---|
12 | |
---|
13 | #ifndef __ECHIPTRACKSEGMENT_HH__ |
---|
14 | #define __ECHIPTRACKSEGMENT_HH__ |
---|
15 | |
---|
16 | #include "TObject.h" |
---|
17 | #include "EFillable.hh" |
---|
18 | |
---|
19 | //////////////////////////////////////////////////////////////////////////////// |
---|
20 | // // |
---|
21 | // EChipTrackSegment // |
---|
22 | // // |
---|
23 | // <brief class description> // |
---|
24 | // // |
---|
25 | //////////////////////////////////////////////////////////////////////////////// |
---|
26 | |
---|
27 | class EChipTrackSegment : public TObject { |
---|
28 | public: |
---|
29 | EChipTrackSegment(); |
---|
30 | //ctor |
---|
31 | |
---|
32 | virtual ~EChipTrackSegment(); |
---|
33 | //dtor |
---|
34 | |
---|
35 | EChipTrackSegment( const EChipTrackSegment& other ); |
---|
36 | //copy ctor |
---|
37 | |
---|
38 | virtual void Copy( TObject& other ) const; |
---|
39 | //Copy method |
---|
40 | |
---|
41 | virtual void Clear( Option_t* = "" ); |
---|
42 | //Clear method |
---|
43 | |
---|
44 | //getters |
---|
45 | inline Int_t GetCellId() const { return fCellId; } |
---|
46 | inline Int_t GetChipUid() const { return fChipUid; } |
---|
47 | inline Int_t GetGtuStart() const { return fGtuStart; } |
---|
48 | inline Int_t GetGtuEnd() const { return fGtuEnd; } |
---|
49 | inline Int_t GetCrossBorder() const { return fCrossBorder; } |
---|
50 | inline Int_t GetTrackLength() const { return fTrackLength; } |
---|
51 | inline Bool_t GetHasHole() const { return fHasHole; } |
---|
52 | inline Bool_t GetTriggered() const { return fTriggered; } |
---|
53 | |
---|
54 | //setters |
---|
55 | inline void SetCellId(Int_t v) { fCellId = v; } |
---|
56 | inline void SetChipUid(Int_t v) { fChipUid = v; } |
---|
57 | inline void SetGtuStart(Int_t v) { fGtuStart = v; } |
---|
58 | inline void SetGtuEnd(Int_t v) { fGtuEnd = v; } |
---|
59 | inline void SetCrossBorder(Int_t v) { fCrossBorder = v; } |
---|
60 | inline void SetTrackLength(Int_t v) { fTrackLength = v; } |
---|
61 | inline void SetHasHole(Bool_t v) { fHasHole = v; } |
---|
62 | inline void SetTriggered(Bool_t v) { fTriggered = v; } |
---|
63 | |
---|
64 | |
---|
65 | private: |
---|
66 | Int_t fCellId; // id of macrocell where track occured |
---|
67 | Int_t fChipUid; // uid of chip where track occurred |
---|
68 | Int_t fGtuStart; // first gtu |
---|
69 | Int_t fGtuEnd; // last gtu |
---|
70 | Int_t fCrossBorder; // true if track is touching the chip border |
---|
71 | Int_t fTrackLength; // length in number of pixels and gtu |
---|
72 | Bool_t fHasHole; // true if the track has a hole |
---|
73 | Bool_t fTriggered; // true if the track is a segment of a trigger track |
---|
74 | |
---|
75 | SetEVisitable() |
---|
76 | ClassDef(EChipTrackSegment,1) |
---|
77 | }; |
---|
78 | |
---|
79 | #endif /* __ECHIPTRACKSEGMENT_HH__ */ |
---|
80 | |
---|