1 #ifndef ALIEVETOFSTRIP_H
2 #define ALIEVETOFSTRIP_H
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 **************************************************************************/
11 // Main authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
14 // Class to visualize the TOF digit information
18 #include <TEveQuadSet.h>
24 class AliEveTOFStrip : public TEveQuadSet
28 virtual void InitModule();
29 virtual void SetTrans();
31 AliEveTOFStrip(const Text_t* n="AliEveTOFStrip", const Text_t* t=0);
32 AliEveTOFStrip(TGeoManager *localGeoManager,
33 Int_t nSector, Int_t nPlate, Int_t nStrip);
35 AliEveTOFStrip(TGeoManager *localGeoManager,
36 Int_t nSector, Int_t nPlate, Int_t nStrip,
37 TClonesArray *tofArray);
38 virtual ~AliEveTOFStrip();
40 void SetThreshold(Short_t t);
41 void SetMaxVal(Int_t mv);
42 Short_t GetThreshold() const { return fThreshold; }
43 Int_t GetMaxVal() const { return fMaxVal; }
44 virtual void DigitSelected(Int_t idx);
47 static Bool_t fgStaticInitDone; // Has initialization of static variables been done.
48 static void InitStatics(); // Initialize static variables.
50 static TEveFrameBox *fgTOFstripFrameBox; // Shared box-frame for all strips.
51 static TEveRGBAPalette *fgTOFstripPalette; // Shared palette.
56 AliEveTOFStrip(const AliEveTOFStrip&); // Not implemented
57 AliEveTOFStrip& operator=(const AliEveTOFStrip&); // Not implemented
60 AliTOFGeometry *fTOFgeometry; // pointer to TOF geometry
62 TClonesArray *fTOFarray; // pointer to TOF digits array
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
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)
73 TGeoManager *fGeoManager; // pointer to the ALICE geometry
75 ClassDef(AliEveTOFStrip, 0); // Representation of a TOF strip.