ROOT logo
#ifndef ALITRDCHMBINFO_H
#define ALITRDCHMBINFO_H

/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
 * See cxx source for full Copyright notice                               */
////////////////////////////////////////////////////////////////////////////
//                                                                        //
//  Chamber Info Incapsulation                                            //
//                                                                        //
//  Authors:                                                              //
//    Alexandru Bercuci <A.Bercuci@gsi.de>                                //
//                                                                        //
////////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TNamed
#include "TNamed.h"
#endif

class TBox;
class TLatex;
class TCollection;
class AliTRDchmbInfo : public TNamed
{
public:  
  AliTRDchmbInfo();
  AliTRDchmbInfo(Int_t det, Int_t stat, Double_t p[4]);
  virtual ~AliTRDchmbInfo();

  void        Draw(Option_t* option = "");  // *MENU*
  Short_t     GetDetector() const          { return fDet;}
  const Double_t*   GetPosition() const    { return &fPosition[0];}
  Char_t      GetStatus() const            { return fStatus;}
  Long64_t    Merge(TCollection* /*list*/) { return 0;}
  void        Print(Option_t *o="") const;  // *MENU*
  void        SetDetector(Int_t det);
  void        SetPosition(Double_t p[4])   { memcpy(fPosition, p, 4*sizeof(Double_t));}
  void        SetStatus(Int_t stat)        { fStatus = stat;}

private:
  AliTRDchmbInfo(const AliTRDchmbInfo &ref);
  const AliTRDchmbInfo& operator=(const AliTRDchmbInfo &ref);

  Short_t     fDet;           // chamber no.
  Char_t      fStatus;        // status of chamber
  Double_t    fPosition[4];   // eta-phi position
  TBox        *fBox;          //! graph representation of chmb info
  TBox        *fShade;        //! graph representation of not OK status
  TLatex      *fLabel;        //! detector name
  ClassDef(AliTRDchmbInfo, 1) // TRD chamber position/status representation
};

#endif

 AliTRDchmbInfo.h:1
 AliTRDchmbInfo.h:2
 AliTRDchmbInfo.h:3
 AliTRDchmbInfo.h:4
 AliTRDchmbInfo.h:5
 AliTRDchmbInfo.h:6
 AliTRDchmbInfo.h:7
 AliTRDchmbInfo.h:8
 AliTRDchmbInfo.h:9
 AliTRDchmbInfo.h:10
 AliTRDchmbInfo.h:11
 AliTRDchmbInfo.h:12
 AliTRDchmbInfo.h:13
 AliTRDchmbInfo.h:14
 AliTRDchmbInfo.h:15
 AliTRDchmbInfo.h:16
 AliTRDchmbInfo.h:17
 AliTRDchmbInfo.h:18
 AliTRDchmbInfo.h:19
 AliTRDchmbInfo.h:20
 AliTRDchmbInfo.h:21
 AliTRDchmbInfo.h:22
 AliTRDchmbInfo.h:23
 AliTRDchmbInfo.h:24
 AliTRDchmbInfo.h:25
 AliTRDchmbInfo.h:26
 AliTRDchmbInfo.h:27
 AliTRDchmbInfo.h:28
 AliTRDchmbInfo.h:29
 AliTRDchmbInfo.h:30
 AliTRDchmbInfo.h:31
 AliTRDchmbInfo.h:32
 AliTRDchmbInfo.h:33
 AliTRDchmbInfo.h:34
 AliTRDchmbInfo.h:35
 AliTRDchmbInfo.h:36
 AliTRDchmbInfo.h:37
 AliTRDchmbInfo.h:38
 AliTRDchmbInfo.h:39
 AliTRDchmbInfo.h:40
 AliTRDchmbInfo.h:41
 AliTRDchmbInfo.h:42
 AliTRDchmbInfo.h:43
 AliTRDchmbInfo.h:44
 AliTRDchmbInfo.h:45
 AliTRDchmbInfo.h:46
 AliTRDchmbInfo.h:47
 AliTRDchmbInfo.h:48
 AliTRDchmbInfo.h:49
 AliTRDchmbInfo.h:50
 AliTRDchmbInfo.h:51
 AliTRDchmbInfo.h:52
 AliTRDchmbInfo.h:53