]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/EveDet/AliEveTRDModuleImp.h
Handle missing rec-point tree in a uniform way: return null pointer to TEvePointSet.
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveTRDModuleImp.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 #ifndef AliEveTRDModuleImp_H
11 #define AliEveTRDModuleImp_H
12
13 /////////////////////////////////////////////////////////////////////////
14 //
15 // Implementation of AliEveTRDModule:
16 //    - AliEveTRDChamber - Data holder
17 //    - AliEveTRDNode    - Node structure
18 //
19 // by A.Bercuci (A.Bercuci@gsi.de)   Fri Oct 27 2006
20 /////////////////////////////////////////////////////////////////////////
21
22 #include <vector>
23
24 #include <TEveElement.h>
25
26 #include "AliEveTRDModule.h"
27
28 class AliTRDpadPlane;
29 class AliTRDgeometry;
30 class AliTRDhit;
31 class AliTRDdataArrayI;
32 class AliTRDdigitsManager;
33 class TObjArray;
34
35 class TEveTrack;
36
37 class AliEveTRDHits;
38 class AliEveTRDDigits;
39
40 class AliEveTRDChamber : public TEveElement, public AliEveTRDModule
41 {
42   friend class AliEveTRDDigits;
43
44 public:
45
46   AliEveTRDChamber(Int_t det=0);
47   virtual ~AliEveTRDChamber() {}
48
49   void  AddHit(AliTRDhit *hit);
50   Int_t GetRowMax()  const {return fRowMax;}
51   Int_t GetColMax()  const {return fColMax;}
52   Int_t GetTimeMax() const {return fTimeMax;}
53   Int_t GetSM() const;
54   Int_t GetSTK() const;
55   Int_t GetPlane() const {return fPla;}
56
57   void  LoadClusters(TObjArray *cs);
58   void  LoadDigits(AliTRDdigitsManager *digits);
59   void  LoadTracklets(TObjArray *ts);
60   void  Paint(Option_t* option="");
61   void  Reset();
62   void  SetGeometry(AliTRDgeometry *geo);
63
64 protected:
65   AliEveTRDDigits         *fDigits;    // digits representation
66   AliEveTRDHits           *fHits;      // hits representation
67   AliEveTRDHits           *fRecPoints; // cluster representation
68   std::vector<TEveTrack*> *fTracklets; // mcm tracklets
69
70   // data representation section
71   Int_t           fRowMax;   // number of rows for this pad plane
72   Int_t           fColMax;   // number of columns for this pad plane
73   Int_t           fTimeMax;  // number of timebins
74   Float_t         fSamplingFrequency; // sampling frequency
75   Float_t         fX0;       // radial distance from vertex to the chamber
76   Int_t           fPla;      // detector plane
77   AliTRDpadPlane *fPadPlane; // pad plane object
78   AliTRDgeometry *fGeo;      // TRD geometry
79
80 private:
81   AliEveTRDChamber(const AliEveTRDChamber&);            // Not implemented.
82   AliEveTRDChamber& operator=(const AliEveTRDChamber&); // Not implemented.
83
84   ClassDef(AliEveTRDChamber, 0); // Holder for TRD chamber data
85 };
86
87
88 class AliEveTRDNode : public TEveElement, public AliEveTRDModule
89 {
90 public:
91   AliEveTRDNode(const char *typ, Int_t det=0);
92
93   void Paint(Option_t* option="");
94   void Reset();
95
96   void Collapse();            // *MENU*
97   void Expand();              // *MENU*
98   void EnableListElements();  // *MENU*
99   void DisableListElements(); // *MENU*
100   void UpdateLeaves();
101   void UpdateNode();
102
103   List_i begin() { return fChildren.begin(); }
104   List_i end()   { return fChildren.end(); }
105
106   ClassDef(AliEveTRDNode, 0);
107 };
108
109 #endif