]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/Alieve/AliEveTOFSector.h
Put all classes in Alieve/ sub-module out of the Alieve namespace and
[u/mrichter/AliRoot.git] / EVE / Alieve / AliEveTOFSector.h
CommitLineData
d810d0de 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 **************************************************************************/
8616d353 9#ifndef ALIEVE_TOFSector_H
10#define ALIEVE_TOFSector_H
11
84aff7a4 12#include <TEveQuadSet.h>
13#include <TEveElement.h>
8616d353 14
84aff7a4 15#include <TEveRGBAPalette.h>
16#include <TEveFrameBox.h>
8616d353 17
18#include <TGeoManager.h>
19#include <TClonesArray.h>
20#include <TTree.h>
21
22#include <AliTOFGeometry.h>
8616d353 23
8616d353 24
d810d0de 25 class AliEveTOFSector : public TEveQuadSet
8616d353 26
27 {
d810d0de 28 AliEveTOFSector(const AliEveTOFSector&); // Not implemented
29 AliEveTOFSector& operator=(const AliEveTOFSector&); // Not implemented
8616d353 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();
d810d0de 76 AliEveTOFSector(const Text_t* n="AliEveTOFSector", const Text_t* t=0);
77 AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector);
8616d353 78
d810d0de 79 AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector,
8616d353 80 TClonesArray *tofArray);
d810d0de 81 AliEveTOFSector(TGeoManager *localGeoManager,
8616d353 82 Int_t nSector, TTree *tofTree);
d810d0de 83 virtual ~AliEveTOFSector();
32e219c2 84
8616d353 85 static Bool_t fgStaticInitDone;
86 static void InitStatics();
32e219c2 87
8616d353 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;};
32e219c2 97 virtual void DigitSelected(Int_t idx);
8616d353 98 ///////////////////////////////////////////
99
100 void SetPlate(Int_t nPlate, Bool_t r);
101
84aff7a4 102 static TEveFrameBox *fgTOFsectorFrameBox;
103 static TEveRGBAPalette *fgTOFsectorPalette;
8616d353 104
d810d0de 105 ClassDef(AliEveTOFSector, 1);
8616d353 106 };
8616d353 107#endif