]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/TRDData.h
Put all the naming conventions into AlIQA
[u/mrichter/AliRoot.git] / EVE / Alieve / TRDData.h
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
26 #ifndef ROOT_TGedFrame
27 #include <TGedFrame.h>
28 #endif
29
30 #include "AliTRDdataArrayI.h"
31
32 class AliTRDdigitsManager;
33 namespace Alieve {
34         class TRDChamber;
35         class TRDHits : public Reve::PointSet
36         {
37         public:
38                 TRDHits(TRDChamber *p);
39
40                 void PointSelected(Int_t n);
41
42         protected:
43                 TRDChamber *fParent;
44         
45         ClassDef(TRDHits,1) // Base class for TRD hits visualisation
46         };
47
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
63         class TRDDigits : public Reve::OldQuadSet, public Reve::RenderElement
64         {
65         friend class TRDDigitsEditor;
66         public:
67                 TRDDigits(TRDChamber *p);
68
69                 void                    ComputeRepresentation();
70                 void                    Paint(Option_t *opt="");
71                 void                    Reset();
72                 void                    SetData(AliTRDdigitsManager *digits);
73
74         protected:
75                 TRDChamber *fParent;
76         
77         private:
78                 Reve::BoxSet                    fBoxes;
79                 AliTRDdataArrayI        fData;
80                 
81                 ClassDef(TRDDigits,1) // Digits visualisation for TRD
82         };
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
109 }
110
111 #endif