add new mergeable classes for chamber status and trigger statistics
[u/mrichter/AliRoot.git] / PWGPP / TRD / info / AliTRDchmbInfo.h
1 #ifndef ALITRDCHMBINFO_H
2 #define ALITRDCHMBINFO_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6 ////////////////////////////////////////////////////////////////////////////
7 //                                                                        //
8 //  Chamber Info Incapsulation                                            //
9 //                                                                        //
10 //  Authors:                                                              //
11 //    Alexandru Bercuci <A.Bercuci@gsi.de>                                //
12 //                                                                        //
13 ////////////////////////////////////////////////////////////////////////////
14
15 #ifndef ROOT_TNamed
16 #include "TNamed.h"
17 #endif
18
19 class TBox;
20 class TCollection;
21 class AliTRDchmbInfo : public TNamed
22 {
23 public:  
24   AliTRDchmbInfo();
25   AliTRDchmbInfo(Int_t det, Int_t stat, Double_t p[4]);
26   virtual ~AliTRDchmbInfo();
27
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;}
37
38 private:
39   AliTRDchmbInfo(const AliTRDchmbInfo &ref);
40   const AliTRDchmbInfo& operator=(const AliTRDchmbInfo &ref);
41
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
47 };
48
49 #endif
50