]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/EveDet/AliEveTOFSector.h
update extra library list needed for class
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveTOFSector.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 #ifndef AliEveTOFSector_H
10 #define AliEveTOFSector_H
11
12 #include <TEveQuadSet.h>
13 #include <TEveElement.h>
14
15 #include <TEveRGBAPalette.h>
16 #include <TEveFrameBox.h>
17
18 #include <TGeoManager.h>
19 #include <TClonesArray.h>
20 #include <TTree.h>
21
22 #include <AliTOFGeometry.h>
23
24   
25 class AliEveTOFSector : public TEveQuadSet
26 {
27 public:
28   AliEveTOFSector(const Text_t* n="AliEveTOFSector", const Text_t* t=0);
29   AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector);
30     
31   AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector,
32                   TClonesArray *tofArray);
33   AliEveTOFSector(TGeoManager *localGeoManager,
34                   Int_t nSector, TTree *tofTree);
35   virtual ~AliEveTOFSector();
36
37   virtual void InitModule();
38   virtual void SetTrans(); 
39
40   static Bool_t    fgStaticInitDone;
41   static void      InitStatics();
42
43   void SetSectorID(Int_t id);
44   void SetAutoTrans(Bool_t r){fAutoTrans=r;};
45   void SetThreshold(Short_t t);
46   void SetMaxVal(Int_t mv);
47   Bool_t GetPlate(Int_t nPlate) const {return fPlateFlag[nPlate];};
48   Short_t GetThreshold() const {return fThreshold;};
49   Int_t GetMaxVal() const {return fMaxVal;};
50   Bool_t GetAutoTrans() const {return fAutoTrans;};
51   Int_t GetSectorID() const {return fSectorID;};
52   virtual void DigitSelected(Int_t idx);
53   ///////////////////////////////////////////
54
55   void SetPlate(Int_t nPlate, Bool_t r);
56
57   static TEveFrameBox    *fgTOFsectorFrameBox;
58   static TEveRGBAPalette *fgTOFsectorPalette;
59  
60 protected:
61   AliTOFGeometry *fTOFgeometry;
62
63   TClonesArray   *fTOFarray;
64   TTree          *fTOFtree;
65
66   Int_t fSector;
67   //Int_t fPlate;
68   //Int_t fStrip;
69
70   Float_t  fDx;
71   Float_t  fDy;
72   Float_t  fDz;
73   ///////////////////////////////
74
75   Bool_t      fAutoTrans; 
76   //Int_t       fMinTime;     
77   //Int_t       fMaxTime;
78   Short_t     fThreshold;
79   Int_t       fMaxVal;
80   Int_t       fSectorID;
81   Bool_t     *fPlateFlag;
82
83   //Bool_t      fPlateFlag0;
84   //Bool_t      fPlateFlag1;
85   //Bool_t      fPlateFlag2;
86   //Bool_t      fPlateFlag3;
87   //Bool_t      fPlateFlag4;
88
89   //Color_t     fFrameColor;
90   //Bool_t      fRnrFrame;
91
92   TGeoManager *fGeoManager;
93
94 private:
95   void LoadQuads();
96
97   AliEveTOFSector(const AliEveTOFSector&);            // Not implemented
98   AliEveTOFSector& operator=(const AliEveTOFSector&); // Not implemented
99
100   ClassDef(AliEveTOFSector, 0); // Representation of a TOF sector.
101 };
102 #endif