]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/EveDet/AliEveTOFSector.h
With Rossella. Add more configurability to ITS raw/digit visualization: a) select...
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveTOFSector.h
index b60f35874a360d092799fadbdc475d2c7a5528b6..7ddf63fd7db8f6e23c003a2dd75c6aa743e8d8c1 100644 (file)
 #include <AliTOFGeometry.h>
 
   
-  class AliEveTOFSector : public TEveQuadSet
-                   
-  {
-    AliEveTOFSector(const AliEveTOFSector&);            // Not implemented
-    AliEveTOFSector& operator=(const AliEveTOFSector&); // Not implemented
+class AliEveTOFSector : public TEveQuadSet
+{
+public:
+  AliEveTOFSector(const Text_t* n="AliEveTOFSector", const Text_t* t=0);
+  AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector);
+    
+  AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector,
+                  TClonesArray *tofArray);
+  AliEveTOFSector(TGeoManager *localGeoManager,
+                  Int_t nSector, TTree *tofTree);
+  virtual ~AliEveTOFSector();
+
+  virtual void InitModule();
+  virtual void SetTrans(); 
+
+  static Bool_t    fgStaticInitDone;
+  static void      InitStatics();
+
+  void SetSectorID(Int_t id);
+  void SetAutoTrans(Bool_t r){fAutoTrans=r;};
+  void SetThreshold(Short_t t);
+  void SetMaxVal(Int_t mv);
+  Bool_t GetPlate(Int_t nPlate) const {return fPlateFlag[nPlate];};
+  Short_t GetThreshold() const {return fThreshold;};
+  Int_t GetMaxVal() const {return fMaxVal;};
+  Bool_t GetAutoTrans() const {return fAutoTrans;};
+  Int_t GetSectorID() const {return fSectorID;};
+  virtual void DigitSelected(Int_t idx);
+  ///////////////////////////////////////////
+
+  void SetPlate(Int_t nPlate, Bool_t r);
+
+  static TEveFrameBox    *fgTOFsectorFrameBox;
+  static TEveRGBAPalette *fgTOFsectorPalette;
  
-    //Int_t       fSectorID;
-  private:
-
-    void LoadQuads();
+protected:
+  AliTOFGeometry *fTOFgeometry;
 
-  protected:
+  TClonesArray   *fTOFarray;
+  TTree          *fTOFtree;
 
-    AliTOFGeometry *fTOFgeometry;
+  Int_t fSector;
+  //Int_t fPlate;
+  //Int_t fStrip;
 
-    TClonesArray   *fTOFarray;
-    TTree          *fTOFtree;
+  Float_t  fDx;
+  Float_t  fDy;
+  Float_t  fDz;
+  ///////////////////////////////
 
-    Int_t fSector;
-    //Int_t fPlate;
-    //Int_t fStrip;
+  Bool_t      fAutoTrans; 
+  //Int_t       fMinTime;     
+  //Int_t       fMaxTime;
+  Short_t     fThreshold;
+  Int_t       fMaxVal;
+  Int_t       fSectorID;
+  Bool_t     *fPlateFlag;
 
-    Float_t  fDx;
-    Float_t  fDy;
-    Float_t  fDz;
-    ///////////////////////////////
+  //Bool_t      fPlateFlag0;
+  //Bool_t      fPlateFlag1;
+  //Bool_t      fPlateFlag2;
+  //Bool_t      fPlateFlag3;
+  //Bool_t      fPlateFlag4;
 
-    Bool_t      fAutoTrans; 
-    //Int_t       fMinTime;     
-    //Int_t       fMaxTime;
-    Short_t     fThreshold;
-    Int_t       fMaxVal;
-    Int_t       fSectorID;
-    Bool_t     *fPlateFlag;
+  //Color_t     fFrameColor;
+  //Bool_t      fRnrFrame;
 
-    //Bool_t      fPlateFlag0;
-    //Bool_t      fPlateFlag1;
-    //Bool_t      fPlateFlag2;
-    //Bool_t      fPlateFlag3;
-    //Bool_t      fPlateFlag4;
+  TGeoManager *fGeoManager;
 
-    //Color_t     fFrameColor;
-    //Bool_t      fRnrFrame;
+private:
+  void LoadQuads();
 
-    TGeoManager *fGeoManager;
+  AliEveTOFSector(const AliEveTOFSector&);            // Not implemented
+  AliEveTOFSector& operator=(const AliEveTOFSector&); // Not implemented
 
-  public:
-    // Bool_t       fAutoTrans;
-
-    virtual void InitModule();
-    virtual void SetTrans(); 
-    AliEveTOFSector(const Text_t* n="AliEveTOFSector", const Text_t* t=0);
-    AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector);
-    
-    AliEveTOFSector(TGeoManager *localGeoManager, Int_t nSector,
-             TClonesArray *tofArray);
-    AliEveTOFSector(TGeoManager *localGeoManager,
-             Int_t nSector, TTree *tofTree);
-    virtual ~AliEveTOFSector();
-
-    static Bool_t    fgStaticInitDone;
-    static void      InitStatics();
-
-    void SetSectorID(Int_t id);
-    void SetAutoTrans(Bool_t r){fAutoTrans=r;};
-    void SetThreshold(Short_t t);
-    void SetMaxVal(Int_t mv);
-    Bool_t GetPlate(Int_t nPlate) const {return fPlateFlag[nPlate];};
-    Short_t GetThreshold() const {return fThreshold;};
-    Int_t GetMaxVal() const {return fMaxVal;};
-    Bool_t GetAutoTrans() const {return fAutoTrans;};
-    Int_t GetSectorID() const {return fSectorID;};
-    virtual void DigitSelected(Int_t idx);
-    ///////////////////////////////////////////
-
-    void SetPlate(Int_t nPlate, Bool_t r);
-
-    static TEveFrameBox    *fgTOFsectorFrameBox;
-    static TEveRGBAPalette *fgTOFsectorPalette;
-
-  ClassDef(AliEveTOFSector, 1);
-  };
+  ClassDef(AliEveTOFSector, 0); // Representation of a TOF sector.
+};
 #endif