//___________________________________________________________________________
AliDetectorTag::AliDetectorTag() :
TObject(),
+ fDetectorString(0),
fMask(0),
fITSSPD(kFALSE),
fITSSDD(kFALSE),
//___________________________________________________________________________
AliDetectorTag::AliDetectorTag(const AliDetectorTag & detTag) :
TObject(detTag),
+ fDetectorString(detTag.fDetectorString),
fMask(detTag.fMask),
fITSSPD(detTag.fITSSPD),
fITSSDD(detTag.fITSSDD),
if (this != &detTag) {
TObject::operator=(detTag);
+ fDetectorString = detTag.fDetectorString;
fMask = detTag.fMask;
fITSSPD = detTag.fITSSPD;
fITSSDD = detTag.fITSSDD;
//___________________________________________________________________________
void AliDetectorTag::SetDetectorConfiguration() {
//sets the detector configuration
- if(fDetectors[0] == 1) SetITSSPD();
- if(fDetectors[1] == 1) SetITSSDD();
- if(fDetectors[2] == 1) SetITSSSD();
- if(fDetectors[3] == 1) SetTPC();
- if(fDetectors[4] == 1) SetTRD();
- if(fDetectors[5] == 1) SetTOF();
- if(fDetectors[6] == 1) SetHMPID();
- if(fDetectors[7] == 1) SetPHOS();
- if(fDetectors[9] == 1) SetPMD();
- if(fDetectors[10] == 1) SetMUON();
- if(fDetectors[12] == 1) SetFMD();
- if(fDetectors[13] == 1) SetTZERO();
- if(fDetectors[14] == 1) SetVZERO();
- if(fDetectors[15] == 1) SetZDC();
- if(fDetectors[18] == 1) SetEMCAL();
+ if(fDetectors[0] == 1) {SetITSSPD(); fDetectorString += "SPD ";}
+ if(fDetectors[1] == 1) {SetITSSDD(); fDetectorString += "SDD ";}
+ if(fDetectors[2] == 1) {SetITSSSD(); fDetectorString += "SSD ";}
+ if(fDetectors[3] == 1) {SetTPC(); fDetectorString += "TPC ";}
+ if(fDetectors[4] == 1) {SetTRD(); fDetectorString += "TRD ";}
+ if(fDetectors[5] == 1) {SetTOF(); fDetectorString += "TOF ";}
+ if(fDetectors[6] == 1) {SetHMPID(); fDetectorString += "HMPID ";}
+ if(fDetectors[7] == 1) {SetPHOS(); fDetectorString += "PHOS ";}
+ if(fDetectors[9] == 1) {SetPMD(); fDetectorString += "PMD ";}
+ if(fDetectors[10] == 1) {SetMUON(); fDetectorString += "MUON ";}
+ if(fDetectors[12] == 1) {SetFMD(); fDetectorString += "FMD ";}
+ if(fDetectors[13] == 1) {SetTZERO(); fDetectorString += "T0 ";}
+ if(fDetectors[14] == 1) {SetVZERO(); fDetectorString += "VZERO ";}
+ if(fDetectors[15] == 1) {SetZDC(); fDetectorString += "ZDC ";}
+ if(fDetectors[18] == 1) {SetEMCAL(); fDetectorString += "EMCAL";}
}
//___________________________________________________________________________
//-------------------------------------------------------------------------
#include "TObject.h"
+#include "TString.h"
//___________________________________________________________________________
class AliDetectorTag : public TObject {
//____________________________________________________//
void SetDetectorMask(UInt_t mask) {fMask = mask; Int2Bin();}
+ const char *GetDetectorMask() {return fDetectorString.Data();}
void PrintDetectorMask();
//____________________________________________________//
void SetZDC() {fZDC = kTRUE;}
void SetEMCAL() {fEMCAL = kTRUE;}
-
+ TString fDetectorString;//detectors' names - active
UInt_t fMask; //detector mask
UInt_t fDetectors[20]; //detector mask
Bool_t fITSSPD; //ITS-SPD active = 1