]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EVE/Alieve/AliEveTOFSector.h
Temporary fix to avoid xrootd thrashing
[u/mrichter/AliRoot.git] / EVE / Alieve / 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 ALIEVE_TOFSector_H
10 #define ALIEVE_TOFSector_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   {
28     AliEveTOFSector(const AliEveTOFSector&);            // Not implemented
29     AliEveTOFSector& operator=(const AliEveTOFSector&); // Not implemented
30
31     //Int_t       fSectorID;
32   private:
33
34     void LoadQuads();
35
36   protected:
37
38     AliTOFGeometry *fTOFgeometry;
39
40     TClonesArray   *fTOFarray;
41     TTree          *fTOFtree;
42
43     Int_t fSector;
44     //Int_t fPlate;
45     //Int_t fStrip;
46
47     Float_t  fDx;
48     Float_t  fDy;
49     Float_t  fDz;
50     ///////////////////////////////
51
52     Bool_t      fAutoTrans;
53     Int_t       fMinTime;
54     Int_t       fMaxTime;
55     Short_t     fThreshold;
56     Int_t       fMaxVal;
57     Int_t       fSectorID;
58     Bool_t      *fPlateFlag;
59
60     Bool_t      fPlateFlag0;
61     Bool_t      fPlateFlag1;
62     Bool_t      fPlateFlag2;
63     Bool_t      fPlateFlag3;
64     Bool_t      fPlateFlag4;
65
66     Color_t     fFrameColor;
67     Bool_t      fRnrFrame;
68
69     TGeoManager *fGeoManager;
70
71   public:
72     // Bool_t       fAutoTrans;
73
74     virtual void InitModule();
75     virtual void SetTrans();
76     AliEveTOFSector(const Text_t* n="AliEveTOFSector", const Text_t* t=0);
77     AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector);
78
79     AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector,
80               TClonesArray *tofArray);
81     AliEveTOFSector(TGeoManager *localGeoManager,
82               Int_t nSector, TTree *tofTree);
83     virtual ~AliEveTOFSector();
84
85     static Bool_t    fgStaticInitDone;
86     static void      InitStatics();
87
88     void SetSectorID(Int_t id);
89     void SetAutoTrans(Bool_t r){fAutoTrans=r;};
90     void SetThreshold(Short_t t);
91     void SetMaxVal(Int_t mv);
92     Bool_t GetPlate(Int_t nPlate) const {return fPlateFlag[nPlate];};
93     Short_t GetThreshold() const {return fThreshold;};
94     Int_t GetMaxVal() const {return fMaxVal;};
95     Bool_t GetAutoTrans() const {return fAutoTrans;};
96     Int_t GetSectorID() const {return fSectorID;};
97     virtual void DigitSelected(Int_t idx);
98     ///////////////////////////////////////////
99
100     void SetPlate(Int_t nPlate, Bool_t r);
101
102     static TEveFrameBox    *fgTOFsectorFrameBox;
103     static TEveRGBAPalette *fgTOFsectorPalette;
104
105   ClassDef(AliEveTOFSector, 1);
106   };
107 #endif