]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/EveDet/AliEveTRDModuleImp.h
fix user histogram management and style (Ben)
[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 TTree;
29 class TObjArray;
30 class TClonesArray;
31
32 class TEveTrack;
33 class TEveGeoTopNode;
34
35 class AliTRDgeometry;
36 class AliTRDdataArrayI;
37 class AliTRDdigitsManager;
38
39 class AliEveTRDHits;
40 class AliEveTRDDigits;
41 class AliTRDtrackingChamber;
42 class AliEveTRDChamber : public TEveElement, public AliEveTRDModule
43 {
44   friend class AliEveTRDDigits;
45
46 public:
47
48   AliEveTRDChamber(Int_t det=-1);
49   virtual ~AliEveTRDChamber() {}
50
51   Int_t GetNrows()  const {return fNrows;}
52   Int_t GetNcols()  const {return fNcols;}
53   Int_t GetNtime() const {return fNtime;}
54
55   void  LoadHits(TClonesArray *hits, Int_t &idx);
56   void  LoadClusters(TObjArray *cs);
57   void  LoadClusters(AliTRDtrackingChamber *tc);
58   void  LoadDigits(AliTRDdigitsManager *digits);
59   void  LoadTracklets(TTree *trklTree);
60
61   void  Paint(Option_t* option="");
62   void  Reset();
63
64   void  SetGeometry(AliTRDgeometry *geo);
65   void  SetNtime(Int_t nt) {fNtime = nt;}
66
67 protected:
68   AliEveTRDDigits  *fDigits;    // digits representation
69   AliEveTRDHits    *fHits;      // hits representation
70   AliEveTRDHits    *fRecPoints; // cluster representation
71   TClonesArray     *fTracklets; // mcm tracklets
72   AliTRDgeometry   *fGeo;      // TRD geometry
73   TEveGeoTopNode   *fShape;    // rendarable geometry of the chamber 
74   // data representation section
75   Int_t           fNrows;   // number of rows for this pad plane
76   Int_t           fNcols;   // number of columns for this pad plane
77   Int_t           fNtime;  // number of timebins
78
79 private:
80   AliEveTRDChamber(const AliEveTRDChamber&);            // Not implemented.
81   AliEveTRDChamber& operator=(const AliEveTRDChamber&); // Not implemented.
82
83   ClassDef(AliEveTRDChamber, 0); // Holder for TRD chamber data
84 };
85
86
87 class AliEveTRDNode : public TEveElement, public AliEveTRDModule
88 {
89 public:
90   AliEveTRDNode(const char *typ, Int_t det=0);
91
92   void Paint(Option_t* option="");
93   void Reset();
94
95   void Collapse();            // *MENU*
96   void Expand();              // *MENU*
97   void EnableListElements();  // *MENU*
98   void DisableListElements(); // *MENU*
99   void UpdateLeaves();
100   void UpdateNode();
101
102   List_i begin() { return fChildren.begin(); }
103   List_i end()   { return fChildren.end(); }
104
105   ClassDef(AliEveTRDNode, 0);
106 };
107
108 #endif