X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliDetectorTag.cxx;h=5888ca6d57841fb768733c02e0ada06d0d2ba77b;hb=2e8cd32b18a5942e1976ea34d4b0949295234cd8;hp=72a524bf01df5112f79b7d0e266667153401f44a;hpb=2eace8ce574ebe454e53854739af9e72f1b48be2;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliDetectorTag.cxx b/STEER/AliDetectorTag.cxx index 72a524bf01d..5888ca6d578 100644 --- a/STEER/AliDetectorTag.cxx +++ b/STEER/AliDetectorTag.cxx @@ -32,51 +32,32 @@ ClassImp(AliDetectorTag) //___________________________________________________________________________ AliDetectorTag::AliDetectorTag() : TObject(), - fDetectorArray(new TObjArray()), - fMask(0), - fITSSPD(kFALSE), - fITSSDD(kFALSE), - fITSSSD(kFALSE), - fTPC(kFALSE), - fTRD(kFALSE), - fTOF(kFALSE), - fHMPID(kFALSE), - fPHOS(kFALSE), - fPMD(kFALSE), - fMUON(kFALSE), - fFMD(kFALSE), - fTZERO(kFALSE), - fVZERO(kFALSE), - fZDC(kFALSE), - fEMCAL(kFALSE) + fMaskDAQ(0), + fMaskReco(0), + fDetectorValidityRange(), + fDetectorStatus() { // Default constructor - for(Int_t k = 0; k < 32; k++) fDetectors[k] = 0; + for (int iter=0; iter 0) { - fDetectors[j] = mask%2; - mask = mask/2; - j++; +void AliDetectorTag::UpdateFromRunTable(AliDetectorTag &detTag) +{ + for (int iter=0; iterAdd(new TObjString("SPD"));} - if(fDetectors[1] == 1) { - SetITSSDD(); fDetectorArray->Add(new TObjString("SDD"));} - if(fDetectors[2] == 1) { - SetITSSSD(); fDetectorArray->Add(new TObjString("SSD"));} - if(fDetectors[3] == 1) { - SetTPC(); fDetectorArray->Add(new TObjString("TPC"));} - if(fDetectors[4] == 1) { - SetTRD(); fDetectorArray->Add(new TObjString("TRD"));} - if(fDetectors[5] == 1) { - SetTOF(); fDetectorArray->Add(new TObjString("TOF"));} - if(fDetectors[6] == 1) { - SetHMPID();fDetectorArray->Add(new TObjString("HMPID"));} - if(fDetectors[7] == 1) { - SetPHOS(); fDetectorArray->Add(new TObjString("PHOS"));} - if(fDetectors[9] == 1) { - SetPMD(); fDetectorArray->Add(new TObjString("PMD"));} - if(fDetectors[10] == 1) { - SetMUON(); fDetectorArray->Add(new TObjString("MUON"));} - if(fDetectors[12] == 1) { - SetFMD(); fDetectorArray->Add(new TObjString("FMD"));} - if(fDetectors[13] == 1) { - SetTZERO(); fDetectorArray->Add(new TObjString("T0"));} - if(fDetectors[14] == 1) { - SetVZERO(); fDetectorArray->Add(new TObjString("VZERO"));} - if(fDetectors[15] == 1) { - SetZDC(); fDetectorArray->Add(new TObjString("ZDC"));} - if(fDetectors[18] == 1) { - SetEMCAL(); fDetectorArray->Add(new TObjString("EMCAL"));} -} +// void AliDetectorTag::SetDetectorConfiguration() { +// //sets the detector configuration +// if(fDetectors[0] == 1) { +// SetITSSPD(); fDetectorArray->Add(new TObjString("SPD"));} +// if(fDetectors[1] == 1) { +// SetITSSDD(); fDetectorArray->Add(new TObjString("SDD"));} +// if(fDetectors[2] == 1) { +// SetITSSSD(); fDetectorArray->Add(new TObjString("SSD"));} +// if(fDetectors[3] == 1) { +// SetTPC(); fDetectorArray->Add(new TObjString("TPC"));} +// if(fDetectors[4] == 1) { +// SetTRD(); fDetectorArray->Add(new TObjString("TRD"));} +// if(fDetectors[5] == 1) { +// SetTOF(); fDetectorArray->Add(new TObjString("TOF"));} +// if(fDetectors[6] == 1) { +// SetHMPID();fDetectorArray->Add(new TObjString("HMPID"));} +// if(fDetectors[7] == 1) { +// SetPHOS(); fDetectorArray->Add(new TObjString("PHOS"));} +// if(fDetectors[9] == 1) { +// SetPMD(); fDetectorArray->Add(new TObjString("PMD"));} +// if(fDetectors[10] == 1) { +// SetMUON(); fDetectorArray->Add(new TObjString("MUON"));} +// if(fDetectors[12] == 1) { +// SetFMD(); fDetectorArray->Add(new TObjString("FMD"));} +// if(fDetectors[13] == 1) { +// SetTZERO(); fDetectorArray->Add(new TObjString("T0"));} +// if(fDetectors[14] == 1) { +// SetVZERO(); fDetectorArray->Add(new TObjString("VZERO"));} +// if(fDetectors[15] == 1) { +// SetZDC(); fDetectorArray->Add(new TObjString("ZDC"));} +// if(fDetectors[18] == 1) { +// SetEMCAL(); fDetectorArray->Add(new TObjString("EMCAL"));} +// } //___________________________________________________________________________ void AliDetectorTag::PrintDetectorMask() {