1 #ifndef ALITRDCHMBINFO_H
2 #define ALITRDCHMBINFO_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6 ////////////////////////////////////////////////////////////////////////////
8 // Chamber Info Incapsulation //
11 // Alexandru Bercuci <A.Bercuci@gsi.de> //
13 ////////////////////////////////////////////////////////////////////////////
21 class AliTRDchmbInfo : public TNamed
25 AliTRDchmbInfo(Int_t det, Int_t stat, Double_t p[4]);
26 virtual ~AliTRDchmbInfo();
28 void Draw(Option_t* option = "eta");
29 Short_t GetDetector() const { return fDet;}
30 const Double_t* GetPosition() const { return &fPosition[0];}
31 Char_t GetStatus() const { return fStatus;}
32 Long64_t Merge(TCollection* /*list*/) { return 0;}
33 void Print(Option_t *o="") const; // *MENU*
34 void SetDetector(Int_t det);
35 void SetPosition(Double_t p[4]) { memcpy(fPosition, p, 4*sizeof(Double_t));}
36 void SetStatus(Int_t stat) { fStatus = stat;}
39 AliTRDchmbInfo(const AliTRDchmbInfo &ref);
40 const AliTRDchmbInfo& operator=(const AliTRDchmbInfo &ref);
42 Short_t fDet; // chamber no.
43 Char_t fStatus; // status of chamber
44 Double_t fPosition[4]; // eta-phi position
45 TBox *fBox; //! graph representation of chmb info
46 ClassDef(AliTRDchmbInfo, 1) // TRD chamber position/status representation