]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/AliEveTRDData.h
Temporary fix to avoid xrootd thrashing
[u/mrichter/AliRoot.git] / EVE / Alieve / AliEveTRDData.h
1 // $Id$
2 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3
4 /**************************************************************************
5  * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6  * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for          *
7  * full copyright notice.                                                 *
8  **************************************************************************/
9 /////////////////////////////////////////////////////////////////////////
10 //
11 // - AliEVE implementation -
12 // Containers for visualisation of TRD data structures
13 //    - AliEveTRDHits - visualisation of MC Hits, Clusters (RecPoints)
14 //    - AliEveTRDDigits - visualisation of TRD digits
15 //
16 // by A.Bercuci (A.Bercuci@gsi.de)   Fri Oct 27 2006
17 ///////////////////////////////////////////////////////////////////////
18
19 #ifndef ALIEVE_TRDData_H
20 #define ALIEVE_TRDData_H
21
22 #ifndef REVE_QuadSet_H
23 #include <TEveQuadSet.h>
24 #endif
25
26 #ifndef REVE_BoxSet_H
27 #include <TEveBoxSet.h>
28 #endif
29
30 #ifndef REVE_PointSet_H
31 #include <TEvePointSet.h>
32 #endif
33
34 #ifndef ROOT_TGedFrame
35 #include <TGedFrame.h>
36 #endif
37
38 #include "AliTRDdataArrayI.h"
39
40 class AliTRDdigitsManager;
41
42         class AliEveTRDChamber;
43         class AliEveTRDHits : public TEvePointSet
44         {
45         public:
46                 AliEveTRDHits(AliEveTRDChamber *p);
47
48                 void PointSelected(Int_t n);
49
50         protected:
51                 AliEveTRDChamber *fParent;
52
53         ClassDef(AliEveTRDHits,1) // Base class for TRD hits visualisation
54         };
55
56         class AliEveTRDHitsEditor : public TGedFrame
57         {
58         public:
59                 AliEveTRDHitsEditor(const TGWindow* p=0, Int_t width = 170, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground());
60                 ~AliEveTRDHitsEditor();
61
62                 virtual void SetModel(TObject* obj);
63
64         protected:
65                 AliEveTRDHits* fM;
66
67         ClassDef(AliEveTRDHitsEditor,1) // Editor for AliEveTRDHits
68         };
69
70
71         class AliEveTRDDigits : public TEveQuadSet
72         {
73         friend class AliEveTRDDigitsEditor;
74         public:
75                 AliEveTRDDigits(AliEveTRDChamber *p);
76
77                 void                    ComputeRepresentation();
78                 void                    Paint(Option_t *opt="");
79                 void                    Reset();
80                 void                    SetData(AliTRDdigitsManager *digits);
81
82         protected:
83                 AliEveTRDChamber *fParent;
84
85         private:
86                 TEveBoxSet                      fBoxes;
87                 AliTRDdataArrayI        fData;
88
89                 ClassDef(AliEveTRDDigits,1) // Digits visualisation for TRD
90         };
91
92         class AliEveTRDDigitsEditor : public TGedFrame
93         {
94         public:
95                 AliEveTRDDigitsEditor(const TGWindow* p=0, Int_t width = 170, Int_t height = 30, UInt_t options = kChildFrame, Pixel_t back = GetDefaultFrameBackground());
96                 ~AliEveTRDDigitsEditor();
97
98                 virtual void SetModel(TObject* obj);
99
100         protected:
101                 AliEveTRDDigits* fM;
102
103         ClassDef(AliEveTRDDigitsEditor,1) // Editor for AliEveTRDDigits
104         };
105
106
107         class AliEveTRDClusters : public AliEveTRDHits
108         {
109         public:
110                 AliEveTRDClusters(AliEveTRDChamber *p);
111
112                 void PointSelected(Int_t n);
113
114         ClassDef(AliEveTRDClusters,1) // Base class for TRD clusters visualisation
115         };
116
117 #endif