]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliDetectorTag.h
Fixing yet another name in the header
[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
18 //___________________________________________________________________________
19 class AliDetectorTag : public TObject {
20  public:
21   AliDetectorTag();
22   AliDetectorTag(const AliDetectorTag & t);
23
24   AliDetectorTag &operator=(const AliDetectorTag &rhs);
25   virtual ~AliDetectorTag();
26   
27   //____________________________________________________//
28   void SetDetectorMask(UInt_t mask) {fMask = mask; Int2Bin();}
29   void PrintDetectorMask();
30
31   //____________________________________________________//
32   Bool_t GetITSSPD() const {return fITSSPD;}
33   Bool_t GetITSSDD() const {return fITSSDD;}
34   Bool_t GetITSSSD() const {return fITSSSD;}
35   Bool_t GetTPC() const {return fTPC;}
36   Bool_t GetTRD() const {return fTRD;}
37   Bool_t GetTOF() const {return fTOF;}
38   Bool_t GetHMPID() const {return fHMPID;}
39   Bool_t GetPHOS() const {return fPHOS;}
40   Bool_t GetPMD() const {return fPMD;}
41   Bool_t GetMUON() const {return fMUON;}
42   Bool_t GetFMD() const {return fFMD;}
43   Bool_t GetTZERO() const {return fTZERO;}
44   Bool_t GetVZERO() const {return fVZERO;}
45   Bool_t GetZDC() const {return fZDC;}
46   Bool_t GetEMCAL() const {return fEMCAL;}
47   
48   //____________________________________________________//
49  private:
50   void AliDetectorTag::Int2Bin();
51   void AliDetectorTag::SetDetectorConfiguration();
52
53   void SetITSSPD() {fITSSPD = kTRUE;}
54   void SetITSSDD() {fITSSDD = kTRUE;}
55   void SetITSSSD() {fITSSSD = kTRUE;}
56   void SetTPC() {fTPC = kTRUE;}
57   void SetTRD() {fTRD = kTRUE;}
58   void SetTOF() {fTOF = kTRUE;}
59   void SetHMPID() {fHMPID = kTRUE;}
60   void SetPHOS() {fPHOS = kTRUE;}
61   void SetPMD() {fPMD = kTRUE;}
62   void SetMUON() {fMUON = kTRUE;}
63   void SetFMD() {fFMD = kTRUE;}
64   void SetTZERO() {fTZERO = kTRUE;}
65   void SetVZERO() {fVZERO = kTRUE;}
66   void SetZDC() {fZDC = kTRUE;}
67   void SetEMCAL() {fEMCAL = kTRUE;}
68   
69
70   UInt_t   fMask;          //detector mask
71   UInt_t   fDetectors[20]; //detector mask
72   Bool_t   fITSSPD;        //ITS-SPD active = 1
73   Bool_t   fITSSDD;        //ITS-SDD active = 1
74   Bool_t   fITSSSD;        //ITS-SSD active = 1
75   Bool_t   fTPC;           //TPC active = 1
76   Bool_t   fTRD;           //TRD active = 1
77   Bool_t   fTOF;           //TOF active = 1
78   Bool_t   fHMPID;         //HMPID active = 1
79   Bool_t   fPHOS;          //PHOS active = 1
80   Bool_t   fPMD;           //PMD active = 1
81   Bool_t   fMUON;          //MUON active = 1
82   Bool_t   fFMD;           //FMD active = 1
83   Bool_t   fTZERO;         //TZERO active = 1
84   Bool_t   fVZERO;         //VZERO active = 1
85   Bool_t   fZDC;           //ZDC active = 1
86   Bool_t   fEMCAL;         //EMCAL active = 1
87
88   ClassDef(AliDetectorTag,3)  //(ClassName, ClassVersion)
89 };
90 //______________________________________________________________________________
91
92 #endif