]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/EveDet/AliEveTOFSector.h
TOF Raw data and clusters visualization
[u/mrichter/AliRoot.git] / EVE / EveDet / 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 *
51346b82 7 * full copyright notice. *
d810d0de 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
ee9d8eca 24
d810d0de 25 class AliEveTOFSector : public TEveQuadSet
ee9d8eca 26
8616d353 27 {
d810d0de 28 AliEveTOFSector(const AliEveTOFSector&); // Not implemented
29 AliEveTOFSector& operator=(const AliEveTOFSector&); // Not implemented
ee9d8eca 30
8616d353 31 //Int_t fSectorID;
32 private:
33
34 void LoadQuads();
51346b82 35
8616d353 36 protected:
51346b82 37
8616d353 38 AliTOFGeometry *fTOFgeometry;
51346b82 39
8616d353 40 TClonesArray *fTOFarray;
41 TTree *fTOFtree;
51346b82 42
8616d353 43 Int_t fSector;
44 //Int_t fPlate;
45 //Int_t fStrip;
51346b82 46
8616d353 47 Float_t fDx;
48 Float_t fDy;
49 Float_t fDz;
50 ///////////////////////////////
51
ee9d8eca 52 Bool_t fAutoTrans;
53 //Int_t fMinTime;
54 //Int_t fMaxTime;
8616d353 55 Short_t fThreshold;
56 Int_t fMaxVal;
51346b82 57 Int_t fSectorID;
8616d353 58 Bool_t *fPlateFlag;
59
ee9d8eca 60 //Bool_t fPlateFlag0;
61 //Bool_t fPlateFlag1;
62 //Bool_t fPlateFlag2;
63 //Bool_t fPlateFlag3;
64 //Bool_t fPlateFlag4;
51346b82 65
ee9d8eca 66 //Color_t fFrameColor;
67 //Bool_t fRnrFrame;
51346b82 68
8616d353 69 TGeoManager *fGeoManager;
51346b82 70
71 public:
8616d353 72 // Bool_t fAutoTrans;
51346b82 73
8616d353 74 virtual void InitModule();
ee9d8eca 75 virtual void SetTrans();
d810d0de 76 AliEveTOFSector(const Text_t* n="AliEveTOFSector", const Text_t* t=0);
77 AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector);
ee9d8eca 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();
51346b82 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 ///////////////////////////////////////////
51346b82 99
8616d353 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);
51346b82 106 };
8616d353 107#endif