]>
Commit | Line | Data |
---|---|---|
a282bf09 | 1 | ///////////////////////////////////////////////////////////////////////// |
2 | // | |
3 | // - AliEVE implementation - | |
4 | // Containers for visualisation of TRD data structures | |
5 | // - TRDHits - visualisation of MC Hits, Clusters (RecPoints) | |
6 | // - TRDDigits - visualisation of TRD digits | |
7 | // | |
8 | // by A.Bercuci (A.Bercuci@gsi.de) Fri Oct 27 2006 | |
9 | /////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef ALIEVE_TRDData_H | |
12 | #define ALIEVE_TRDData_H | |
13 | ||
14 | #ifndef REVE_QuadSet_H | |
15 | #include <Reve/QuadSet.h> | |
16 | #endif | |
17 | ||
18 | #ifndef REVE_BoxSet_H | |
19 | #include <Reve/BoxSet.h> | |
20 | #endif | |
21 | ||
22 | #ifndef REVE_PointSet_H | |
23 | #include <Reve/PointSet.h> | |
24 | #endif | |
25 | ||
edf0c4a0 | 26 | #ifndef ROOT_TGedFrame |
27 | #include <TGedFrame.h> | |
28 | #endif | |
29 | ||
a282bf09 | 30 | #include "AliTRDdataArrayI.h" |
31 | ||
14217b5f | 32 | class AliTRDdigitsManager; |
a282bf09 | 33 | namespace Alieve { |
34 | class TRDChamber; | |
35 | class TRDHits : public Reve::PointSet | |
36 | { | |
37 | public: | |
edf0c4a0 | 38 | TRDHits(TRDChamber *p); |
a282bf09 | 39 | |
40 | void PointSelected(Int_t n); | |
41 | ||
edf0c4a0 | 42 | protected: |
43 | TRDChamber *fParent; | |
44 | ||
a282bf09 | 45 | ClassDef(TRDHits,1) // Base class for TRD hits visualisation |
46 | }; | |
47 | ||
edf0c4a0 | 48 | class TRDHitsEditor : public TGedFrame |
49 | { | |
50 | public: | |
51 | TRDHitsEditor(const TGWindow* p=0, Int_t width = 170, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground()); | |
52 | ~TRDHitsEditor(); | |
53 | ||
54 | virtual void SetModel(TObject* obj); | |
55 | ||
56 | protected: | |
57 | TRDHits* fM; | |
58 | ||
59 | ClassDef(TRDHitsEditor,1) // Editor for TRDHits | |
60 | }; | |
61 | ||
62 | ||
bb299a96 | 63 | class TRDDigits : public Reve::OldQuadSet, public Reve::RenderElement |
a282bf09 | 64 | { |
edf0c4a0 | 65 | friend class TRDDigitsEditor; |
a282bf09 | 66 | public: |
67 | TRDDigits(TRDChamber *p); | |
68 | ||
69 | void ComputeRepresentation(); | |
70 | void Paint(Option_t *opt=""); | |
71 | void Reset(); | |
14217b5f | 72 | void SetData(AliTRDdigitsManager *digits); |
a282bf09 | 73 | |
74 | protected: | |
edf0c4a0 | 75 | TRDChamber *fParent; |
a282bf09 | 76 | |
77 | private: | |
a282bf09 | 78 | Reve::BoxSet fBoxes; |
79 | AliTRDdataArrayI fData; | |
80 | ||
81 | ClassDef(TRDDigits,1) // Digits visualisation for TRD | |
82 | }; | |
edf0c4a0 | 83 | |
84 | class TRDDigitsEditor : public TGedFrame | |
85 | { | |
86 | public: | |
87 | TRDDigitsEditor(const TGWindow* p=0, Int_t width = 170, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground()); | |
88 | ~TRDDigitsEditor(); | |
89 | ||
90 | virtual void SetModel(TObject* obj); | |
91 | ||
92 | protected: | |
93 | TRDDigits* fM; | |
94 | ||
95 | ClassDef(TRDDigitsEditor,1) // Editor for TRDDigits | |
96 | }; | |
97 | ||
98 | ||
99 | class TRDClusters : public TRDHits | |
100 | { | |
101 | public: | |
102 | TRDClusters(TRDChamber *p); | |
103 | ||
104 | void PointSelected(Int_t n); | |
105 | ||
106 | ClassDef(TRDClusters,1) // Base class for TRD clusters visualisation | |
107 | }; | |
108 | ||
a282bf09 | 109 | } |
110 | ||
111 | #endif |