]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliDetectorTag.h
New code to record the timing information of various methods in simulation and recons...
[u/mrichter/AliRoot.git] / STEER / AliDetectorTag.h
1 #ifndef ALIDETECTORTAG_H
2 #define ALIDETECTORTAG_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6
7 /* $Id$ */
8
9 //-------------------------------------------------------------------------
10 //                          Class AliDetectorTag
11 //   This is the class to deal with the tags for the detector level
12 //
13 //    Origin: Panos Christakoglou, UOA-CERN, Panos.Christakoglou@cern.ch
14 //-------------------------------------------------------------------------
15
16 #include "TObject.h"
17 #include "TObjArray.h"
18
19 //___________________________________________________________________________
20 class AliDetectorTag : public TObject {
21  public:
22   AliDetectorTag();
23   AliDetectorTag(const AliDetectorTag & t);
24
25   AliDetectorTag &operator=(const AliDetectorTag &rhs);
26   virtual ~AliDetectorTag();
27   
28   //____________________________________________________//
29   void SetDetectorMask(UInt_t mask) {fMask = mask; Int2Bin();}
30   TObjArray *GetDetectorMask() {return fDetectorArray;}
31   void PrintDetectorMask();
32
33   //____________________________________________________//
34   Bool_t GetITSSPD() const {return fITSSPD;}
35   Bool_t GetITSSDD() const {return fITSSDD;}
36   Bool_t GetITSSSD() const {return fITSSSD;}
37   Bool_t GetTPC() const {return fTPC;}
38   Bool_t GetTRD() const {return fTRD;}
39   Bool_t GetTOF() const {return fTOF;}
40   Bool_t GetHMPID() const {return fHMPID;}
41   Bool_t GetPHOS() const {return fPHOS;}
42   Bool_t GetPMD() const {return fPMD;}
43   Bool_t GetMUON() const {return fMUON;}
44   Bool_t GetFMD() const {return fFMD;}
45   Bool_t GetTZERO() const {return fTZERO;}
46   Bool_t GetVZERO() const {return fVZERO;}
47   Bool_t GetZDC() const {return fZDC;}
48   Bool_t GetEMCAL() const {return fEMCAL;}
49   
50   //____________________________________________________//
51  private:
52   void Int2Bin();
53   void SetDetectorConfiguration();
54
55   void SetITSSPD() {fITSSPD = kTRUE;}
56   void SetITSSDD() {fITSSDD = kTRUE;}
57   void SetITSSSD() {fITSSSD = kTRUE;}
58   void SetTPC() {fTPC = kTRUE;}
59   void SetTRD() {fTRD = kTRUE;}
60   void SetTOF() {fTOF = kTRUE;}
61   void SetHMPID() {fHMPID = kTRUE;}
62   void SetPHOS() {fPHOS = kTRUE;}
63   void SetPMD() {fPMD = kTRUE;}
64   void SetMUON() {fMUON = kTRUE;}
65   void SetFMD() {fFMD = kTRUE;}
66   void SetTZERO() {fTZERO = kTRUE;}
67   void SetVZERO() {fVZERO = kTRUE;}
68   void SetZDC() {fZDC = kTRUE;}
69   void SetEMCAL() {fEMCAL = kTRUE;}
70   
71   TObjArray *fDetectorArray; //detectors' names - active
72   UInt_t     fMask;          //detector mask
73   UInt_t     fDetectors[20]; //detector mask
74   Bool_t     fITSSPD;        //ITS-SPD active = 1
75   Bool_t     fITSSDD;        //ITS-SDD active = 1
76   Bool_t     fITSSSD;        //ITS-SSD active = 1
77   Bool_t     fTPC;           //TPC active = 1
78   Bool_t     fTRD;           //TRD active = 1
79   Bool_t     fTOF;           //TOF active = 1
80   Bool_t     fHMPID;         //HMPID active = 1
81   Bool_t     fPHOS;          //PHOS active = 1
82   Bool_t     fPMD;           //PMD active = 1
83   Bool_t     fMUON;          //MUON active = 1
84   Bool_t     fFMD;           //FMD active = 1
85   Bool_t     fTZERO;         //TZERO active = 1
86   Bool_t     fVZERO;         //VZERO active = 1
87   Bool_t     fZDC;           //ZDC active = 1
88   Bool_t     fEMCAL;         //EMCAL active = 1
89
90   ClassDef(AliDetectorTag,3)  //(ClassName, ClassVersion)
91 };
92 //______________________________________________________________________________
93
94 #endif