]>
Commit | Line | Data |
---|---|---|
f3a97c86 | 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" | |
c5caed45 | 17 | |
719bd672 | 18 | //___________________________________________________________________________ |
19 | class AliDetectorTag : public TObject { | |
f3a97c86 | 20 | public: |
21 | AliDetectorTag(); | |
e16601cf | 22 | AliDetectorTag(const AliDetectorTag & t); |
719bd672 | 23 | |
24 | AliDetectorTag &operator=(const AliDetectorTag &rhs); | |
f3a97c86 | 25 | virtual ~AliDetectorTag(); |
26 | ||
719bd672 | 27 | //____________________________________________________// |
63c8edd0 | 28 | void SetDetectorMask(UInt_t mask) {fMask = mask; Int2Bin();} |
29 | void PrintDetectorMask(); | |
c5caed45 | 30 | |
719bd672 | 31 | //____________________________________________________// |
c5caed45 | 32 | Bool_t GetITSSPD() const {return fITSSPD;} |
33 | Bool_t GetITSSDD() const {return fITSSDD;} | |
34 | Bool_t GetITSSSD() const {return fITSSSD;} | |
719bd672 | 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;} | |
719bd672 | 40 | Bool_t GetPMD() const {return fPMD;} |
c5caed45 | 41 | Bool_t GetMUON() const {return fMUON;} |
42 | Bool_t GetFMD() const {return fFMD;} | |
719bd672 | 43 | Bool_t GetTZERO() const {return fTZERO;} |
c5caed45 | 44 | Bool_t GetVZERO() const {return fVZERO;} |
45 | Bool_t GetZDC() const {return fZDC;} | |
46 | Bool_t GetEMCAL() const {return fEMCAL;} | |
f3a97c86 | 47 | |
719bd672 | 48 | //____________________________________________________// |
e16601cf | 49 | private: |
268775a2 | 50 | void Int2Bin(); |
51 | void SetDetectorConfiguration(); | |
c5caed45 | 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 | |
e16601cf | 87 | |
c5caed45 | 88 | ClassDef(AliDetectorTag,3) //(ClassName, ClassVersion) |
f3a97c86 | 89 | }; |
90 | //______________________________________________________________________________ | |
91 | ||
92 | #endif |