]>
Commit | Line | Data |
---|---|---|
fd54c9e3 | 1 | #ifndef ALIEVETOFSTRIP_H |
2 | #define ALIEVETOFSTRIP_H | |
d810d0de | 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 | **************************************************************************/ |
d810d0de | 9 | |
fd54c9e3 | 10 | // $Id$ |
11 | // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007 | |
d810d0de | 12 | |
fd54c9e3 | 13 | // |
14 | // Class to visualize the TOF digit information | |
15 | // in TOF strip frame | |
16 | // | |
d810d0de | 17 | |
fd54c9e3 | 18 | #include <TEveQuadSet.h> |
d810d0de | 19 | |
fd54c9e3 | 20 | class TClonesArray; |
d810d0de | 21 | |
fd54c9e3 | 22 | class AliTOFGeometry; |
d810d0de | 23 | |
24 | class AliEveTOFStrip : public TEveQuadSet | |
25 | { | |
d810d0de | 26 | public: |
a8256688 | 27 | |
28 | virtual void InitModule(); | |
29 | virtual void SetTrans(); | |
30 | ||
d810d0de | 31 | AliEveTOFStrip(const Text_t* n="AliEveTOFStrip", const Text_t* t=0); |
32 | AliEveTOFStrip(TGeoManager *localGeoManager, | |
ee9d8eca | 33 | Int_t nSector, Int_t nPlate, Int_t nStrip); |
d810d0de | 34 | |
35 | AliEveTOFStrip(TGeoManager *localGeoManager, | |
ee9d8eca | 36 | Int_t nSector, Int_t nPlate, Int_t nStrip, |
37 | TClonesArray *tofArray); | |
d810d0de | 38 | virtual ~AliEveTOFStrip(); |
39 | ||
a8256688 | 40 | void SetThreshold(Short_t t); |
41 | void SetMaxVal(Int_t mv); | |
4b456ebb | 42 | Short_t GetThreshold() const { return fThreshold; } |
43 | Int_t GetMaxVal() const { return fMaxVal; } | |
a8256688 | 44 | virtual void DigitSelected(Int_t idx); |
45 | ||
4b456ebb | 46 | protected: |
47 | static Bool_t fgStaticInitDone; // Has initialization of static variables been done. | |
48 | static void InitStatics(); // Initialize static variables. | |
49 | ||
50 | static TEveFrameBox *fgTOFstripFrameBox; // Shared box-frame for all strips. | |
51 | static TEveRGBAPalette *fgTOFstripPalette; // Shared palette. | |
d810d0de | 52 | |
4b456ebb | 53 | private: |
54 | void LoadQuads(); | |
55 | ||
56 | AliEveTOFStrip(const AliEveTOFStrip&); // Not implemented | |
57 | AliEveTOFStrip& operator=(const AliEveTOFStrip&); // Not implemented | |
d810d0de | 58 | |
fd54c9e3 | 59 | |
60 | AliTOFGeometry *fTOFgeometry; // pointer to TOF geometry | |
61 | ||
62 | TClonesArray *fTOFarray; // pointer to TOF digits array | |
63 | ||
64 | Short_t fThreshold; // threshold to cut on visualization | |
65 | Int_t fMaxVal; // max value to cut on visualization | |
66 | Int_t fSector; // TOF sector index | |
67 | Int_t fPlate; // TOF module index | |
68 | Int_t fStrip; // TOF strip index | |
69 | ||
70 | Float_t fDx; // x position of TOF digit (in TOF strip RF) | |
71 | Float_t fDz; // z position of TOF digit (in TOF strip RF) | |
72 | ||
73 | TGeoManager *fGeoManager; // pointer to the ALICE geometry | |
74 | ||
4b456ebb | 75 | ClassDef(AliEveTOFStrip, 0); // Representation of a TOF strip. |
51346b82 | 76 | }; |
d810d0de | 77 | #endif |