2 /**************************************************************************
3 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * Author: The ALICE Off-line Project. *
6 * Contributors are mentioned in the code where appropriate. *
8 * Permission to use, copy, modify and distribute this software and its *
9 * documentation strictly for non-commercial purposes is hereby granted *
10 * without fee, provided that the above copyright notice appears in all *
11 * copies and that both the copyright notice and this permission notice *
12 * appear in the supporting documentation. The authors make no claims *
13 * about the suitability of this software for any purpose. It is *
14 * provided "as is" without express or implied warranty. *
15 **************************************************************************/
16 /* $Id: AliQAv1.cxx 31503 2009-03-16 11:01:16Z schutz $ */
18 //////////////////////////////////////////////////////////////////////////////
20 // Quality Assurance Object//_________________________________________________________________________
21 // Quality Assurance object. The QA status is held in one word per detector,
22 // each bit corresponds to a different status.
23 // bit 0-3 : QA raised during simulation (RAW)
24 // bit 4-7 : QA raised during simulation (SIM)
25 // bit 8-11 : QA raised during reconstruction (REC)
26 // bit 12-15 : QA raised during ESD checking (ESD)
27 // bit 16-19 : QA raised during analysis (ANA)
28 // Each of the 4 bits corresponds to a severity level of increasing importance
29 // from lower to higher bit (INFO, WARNING, ERROR, FATAL)
31 //*-- Yves Schutz CERN, July 2007
32 //////////////////////////////////////////////////////////////////////////////
36 // --- ROOT system ---
42 // --- Standard library ---
44 // --- AliRoot header files ---
50 AliQAv1 * AliQAv1::fgQA = 0x0 ;
51 TFile * AliQAv1::fgQADataFile = 0x0 ;
52 TString AliQAv1::fgQADataFileName = "QA" ; // will transform into Det.QA.run.root
53 TFile * AliQAv1::fgQARefFile = 0x0 ;
54 TString AliQAv1::fgQARefDirName = "" ;
55 TString AliQAv1::fgQARefFileName = "QA.root" ;
56 TFile * AliQAv1::fgQAResultFile = 0x0 ;
57 TString AliQAv1::fgQAResultDirName = "" ;
58 TString AliQAv1::fgQAResultFileName = "QA.root" ;
59 TString AliQAv1::fgDetNames[] = {"ITS", "TPC", "TRD", "TOF", "PHOS", "HMPID", "EMCAL", "MUON", "FMD",
60 "ZDC", "PMD", "T0", "VZERO", "ACORDE", "HLT", "Global", "CORR"} ;
61 TString AliQAv1::fgGRPPath = "GRP/GRP/Data" ;
62 TString AliQAv1::fgTaskNames[] = {"Raws", "Hits", "SDigits", "Digits", "DigitsR", "RecPoints", "TrackSegments", "RecParticles", "ESDs"} ;
63 const TString AliQAv1::fgkLabLocalFile = "file://" ;
64 const TString AliQAv1::fgkLabLocalOCDB = "local://" ;
65 const TString AliQAv1::fgkLabAliEnOCDB = "alien://" ;
66 const TString AliQAv1::fgkRefFileName = "QA.root" ;
67 const TString AliQAv1::fgkQAName = "QA" ;
68 const TString AliQAv1::fgkQACorrNtName = "CorrQA" ;
69 const TString AliQAv1::fgkRefOCDBDirName = "QA" ;
70 TString AliQAv1::fgRefDataDirName = "" ;
71 const TString AliQAv1::fgkQARefOCDBDefault = "alien://folder=/alice/QA/20" ;
72 const TString AliQAv1::fgkExpert = "Expert" ;
73 const UInt_t AliQAv1::fgkExpertBit = 0x40000 ;
74 const UInt_t AliQAv1::fgkQABit = 0x80000 ;
75 const UInt_t AliQAv1::fgkImageBit = 0x100000 ;
76 const Int_t AliQAv1::fgkQADebugLevel = 99 ;
77 //____________________________________________________________________________
81 fNEventSpecies(AliRecoParam::kNSpecies),
82 fLengthQA(fNdet*fNEventSpecies),
83 fQA(new ULong_t[fLengthQA]),
86 fEventSpecie(AliRecoParam::kDefault),
87 fEventSpecies(new Bool_t[fNEventSpecies])
89 // default constructor
90 memset(fQA,0,fLengthQA*sizeof(ULong_t));
91 memset(fEventSpecies,kFALSE,fNEventSpecies*sizeof(Bool_t));
94 //____________________________________________________________________________
95 AliQAv1::AliQAv1(const AliQAv1& qa) :
98 fNEventSpecies(qa.fNEventSpecies),
99 fLengthQA(qa.fLengthQA),
100 fQA(new ULong_t[fLengthQA]),
103 fEventSpecie(qa.fEventSpecie),
104 fEventSpecies(new Bool_t[fNEventSpecies])
107 memcpy(fQA,qa.fQA,fLengthQA*sizeof(ULong_t));
108 memcpy(fEventSpecies,qa.fEventSpecies,fNEventSpecies*sizeof(Bool_t));
111 //_____________________________________________________________________________
112 AliQAv1& AliQAv1::operator = (const AliQAv1& qa)
114 // assignment operator
116 TNamed::operator=(qa);
118 fNEventSpecies = qa.fNEventSpecies;
119 fLengthQA = qa.fLengthQA;
121 if(fQA) delete [] fQA;
122 fQA = new ULong_t[fLengthQA];
123 memcpy(fQA,qa.fQA,fLengthQA*sizeof(ULong_t));
127 fEventSpecie = qa.fEventSpecie;
128 if(fEventSpecies) delete [] fEventSpecies;
129 fEventSpecies = new Bool_t[fNEventSpecies];
130 memcpy(fEventSpecies,qa.fEventSpecies,fNEventSpecies*sizeof(Bool_t));
135 //_______________________________________________________________
136 AliQAv1::AliQAv1(const Int_t qalength, ULong_t * qa, const Int_t eslength, Bool_t * es) :
137 TNamed("QA", "Quality Assurance status"),
139 fNEventSpecies(eslength),
141 fQA(new ULong_t[fLengthQA]),
144 fEventSpecie(AliRecoParam::kDefault),
145 fEventSpecies(new Bool_t[fNEventSpecies])
147 // constructor to be used
148 memcpy(fQA, qa, fLengthQA*sizeof(ULong_t));
149 memcpy(fEventSpecies, es, fNEventSpecies*sizeof(Bool_t));
152 //_______________________________________________________________
153 AliQAv1::AliQAv1(const DETECTORINDEX_t det) :
154 TNamed("QA", "Quality Assurance status"),
156 fNEventSpecies(AliRecoParam::kNSpecies),
157 fLengthQA(fNdet*fNEventSpecies),
158 fQA(new ULong_t[fLengthQA]),
161 fEventSpecie(AliRecoParam::kDefault),
162 fEventSpecies(new Bool_t[fNEventSpecies])
164 // constructor to be used
165 if (! CheckRange(det) ) fDet = kNULLDET ;
166 memset(fQA,0,fLengthQA*sizeof(ULong_t));
167 memset(fEventSpecies,kFALSE,fNEventSpecies*sizeof(Bool_t));
170 //_______________________________________________________________
171 AliQAv1::AliQAv1(const ALITASK_t tsk) :
172 TNamed("QA", "Quality Assurance status"),
174 fNEventSpecies(AliRecoParam::kNSpecies),
175 fLengthQA(fNdet*fNEventSpecies),
176 fQA(new ULong_t[fLengthQA]),
179 fEventSpecie(AliRecoParam::kDefault),
180 fEventSpecies(new Bool_t[fNEventSpecies])
182 // constructor to be used in the AliRoot module (SIM, REC, ESD or ANA)
183 if (! CheckRange(tsk) ) fTask = kNULLTASK ;
184 memset(fQA,0,fLengthQA*sizeof(ULong_t));
185 memset(fEventSpecies,kFALSE,fNEventSpecies*sizeof(Bool_t));
188 //____________________________________________________________________________
193 delete [] fEventSpecies;
196 //_______________________________________________________________
197 void AliQAv1::Close()
199 // close the open files
201 if (fgQADataFile->IsOpen())
202 fgQADataFile->Close() ;
204 if (fgQAResultFile->IsOpen())
205 fgQAResultFile->Close() ;
207 if (fgQARefFile->IsOpen())
208 fgQARefFile->Close() ;
211 //_______________________________________________________________
212 Bool_t AliQAv1::CheckFatal() const
214 // check if any FATAL status is set
217 for (index = 0; index < kNDET ; index++)
218 rv = rv || IsSet(DETECTORINDEX_t(index), fTask, fEventSpecie, kFATAL) ;
222 //_______________________________________________________________
223 Bool_t AliQAv1::CheckRange(DETECTORINDEX_t det) const
225 // check if detector is in given detector range: 0-kNDET
227 Bool_t rv = ( det < 0 || det > kNDET ) ? kFALSE : kTRUE ;
229 AliFatal(Form("Detector index %d is out of range: 0 <= index <= %d", det, kNDET)) ;
233 //_______________________________________________________________
234 Bool_t AliQAv1::CheckRange(ALITASK_t task) const
236 // check if task is given taskk range: 0:kNTASK
237 Bool_t rv = ( task < kRAW || task > kNTASK ) ? kFALSE : kTRUE ;
239 AliFatal(Form("Module index %d is out of range: 0 <= index <= %d", task, kNTASK)) ;
243 //_______________________________________________________________
244 Bool_t AliQAv1::CheckRange(QABIT_t bit) const
246 // check if bit is in given bit range: 0-kNBit
248 Bool_t rv = ( bit < 0 || bit > kNBIT ) ? kFALSE : kTRUE ;
250 AliFatal(Form("Status bit %d is out of range: 0 <= bit <= %d", bit, kNBIT)) ;
254 //_______________________________________________________________
255 Bool_t AliQAv1::CheckRange(AliRecoParam::EventSpecie_t es) const
257 // check if bit is in given bit range: 0-kNBit
260 case AliRecoParam::kDefault:
263 case AliRecoParam::kLowMult:
266 case AliRecoParam::kHighMult:
269 case AliRecoParam::kCosmic:
272 case AliRecoParam::kCalib:
277 AliFatal(Form("Event Specie %d is not valid", es)) ;
281 //_______________________________________________________________
282 const char * AliQAv1::GetAliTaskName(ALITASK_t tsk)
284 // returns the char name corresponding to module index
308 return tskName.Data() ;
311 //_______________________________________________________________
312 const char * AliQAv1::GetBitName(QABIT_t bit) const
314 // returns the char name corresponding to bit
323 bitName = "WARNING" ;
335 return bitName.Data() ;
338 //_______________________________________________________________
339 AliQAv1::DETECTORINDEX_t AliQAv1::GetDetIndex(const char * name)
341 // returns the detector index corresponding to a given name
342 TString sname(name) ;
343 DETECTORINDEX_t rv = kNULLDET ;
344 for (Int_t det = 0; det < kNDET ; det++) {
345 if ( GetDetName(det) == sname ) {
346 rv = DETECTORINDEX_t(det) ;
353 //_______________________________________________________________
354 const char * AliQAv1::GetDetName(Int_t det)
356 // returns the detector name corresponding to a given index (needed in a loop)
358 if ( det >= 0 && det < kNDET)
359 return (fgDetNames[det]).Data() ;
364 //_______________________________________________________________
365 TFile * AliQAv1::GetQADataFile(const char * name, Int_t run)
367 // opens the file to store the detectors Quality Assurance Data Maker results
368 const char * temp = Form("%s.%s.%d.root", name, fgQADataFileName.Data(), run) ;
370 if (! fgQADataFile ) {
371 if (gSystem->AccessPathName(temp))
375 fgQADataFile = TFile::Open(temp, opt.Data()) ;
377 if ( strcmp(temp, fgQADataFile->GetName()) != 0 ) {
378 fgQADataFile = dynamic_cast<TFile *>(gROOT->FindObject(temp)) ;
379 if ( !fgQADataFile ) {
380 if (gSystem->AccessPathName(temp))
384 fgQADataFile = TFile::Open(temp, opt.Data()) ;
388 return fgQADataFile ;
391 //_____________________________________________________________________________
392 TFile * AliQAv1::GetQADataFile(const char * fileName)
394 // Open if necessary the Data file and return its pointer
398 fileName = AliQAv1::GetQADataFileName() ;
399 if (!gSystem->AccessPathName(fileName)) {
400 fgQADataFile = TFile::Open(fileName) ;
402 AliFatalClass(Form("File %s not found", fileName)) ;
404 return fgQADataFile ;
407 //_______________________________________________________________
408 TFile * AliQAv1::GetQAResultFile()
410 // opens the file to store the Quality Assurance Data Checker results
412 fgQAResultFile->Close() ;
413 fgQAResultFile = 0x0 ;
414 // if (!fgQAResultFile) {
415 TString dirName(fgQAResultDirName) ;
416 if ( dirName.Contains(fgkLabLocalFile))
417 dirName.ReplaceAll(fgkLabLocalFile, "") ;
418 TString fileName(dirName + fgQAResultFileName) ;
420 if ( !gSystem->AccessPathName(fileName) )
423 if ( gSystem->AccessPathName(dirName) )
424 gSystem->mkdir(dirName) ;
427 fgQAResultFile = TFile::Open(fileName, opt) ;
430 return fgQAResultFile ;
433 //_______________________________________________________________
434 AliQAv1::TASKINDEX_t AliQAv1::GetTaskIndex(const char * name)
436 // returns the detector index corresponding to a given name
437 TString sname(name) ;
438 TASKINDEX_t rv = kNULLTASKINDEX ;
439 for (Int_t tsk = 0; tsk < kNTASKINDEX ; tsk++) {
440 if ( GetTaskName(tsk) == sname ) {
441 rv = TASKINDEX_t(tsk) ;
448 //_______________________________________________________________
449 Bool_t AliQAv1::IsSet(DETECTORINDEX_t det, ALITASK_t tsk, Int_t ies, QABIT_t bit) const
451 // Checks is the requested bit is set
453 const AliRecoParam::EventSpecie_t es = AliRecoParam::Convert(ies) ;
454 return IsSet(det, tsk, es, bit) ;
458 //_______________________________________________________________
459 Bool_t AliQAv1::IsSet(DETECTORINDEX_t det, ALITASK_t tsk, AliRecoParam::EventSpecie_t es, QABIT_t bit) const
461 // Checks is the requested bit is set
468 ULong_t offset = Offset(tsk) ;
469 ULong_t status = GetStatus(det, es) ;
471 status = (status & 1 << offset) != 0 ;
475 //_______________________________________________________________
476 Bool_t AliQAv1::IsSetAny(DETECTORINDEX_t det, ALITASK_t tsk, AliRecoParam::EventSpecie_t es) const
478 // Checks is the requested bit is set
484 ULong_t offset = Offset(tsk) ;
485 ULong_t status = GetStatus(det, es) ;
487 for ( Int_t bit = 0 ; bit < kNBIT ; bit++) {
489 st += (status & 1 << offset) != 0 ;
496 //_______________________________________________________________
497 Bool_t AliQAv1::IsSetAny(DETECTORINDEX_t det, AliRecoParam::EventSpecie_t es) const
499 // Checks is the requested bit is set
504 ULong_t status = GetStatus(det, es) ;
506 for ( Int_t tsk = 0 ; tsk < kNTASK ; tsk++) {
507 ULong_t offset = Offset(ALITASK_t(tsk)) ;
508 for ( Int_t bit = 0 ; bit < kNBIT ; bit++) {
510 st += (status & 1 << offset) != 0 ;
519 //_______________________________________________________________
520 AliQAv1 * AliQAv1::Instance()
522 // Get an instance of the singleton. The only authorized way to call the ctor
525 TFile * f = GetQAResultFile() ;
526 fgQA = dynamic_cast<AliQAv1 *>(f->Get("QA")) ;
528 fgQA = new AliQAv1() ;
533 //_______________________________________________________________
534 AliQAv1 * AliQAv1::Instance(const Int_t qalength, ULong_t * qa, const Int_t eslength, Bool_t * es)
536 // Get an instance of the singleton. The only authorized way to call the ctor
539 fgQA = new AliQAv1(qalength, qa, eslength, es) ;
543 //_______________________________________________________________
544 AliQAv1 * AliQAv1::Instance(const DETECTORINDEX_t det)
546 // Get an instance of the singleton. The only authorized way to call the ctor
549 TFile * f = GetQAResultFile() ;
550 fgQA = dynamic_cast<AliQAv1 *>(f->Get("QA")) ;
552 fgQA = new AliQAv1(det) ;
558 //_______________________________________________________________
559 AliQAv1 * AliQAv1::Instance(const ALITASK_t tsk)
561 // Get an instance of the singleton. The only authorized way to call the ctor
568 fgQA = new AliQAv1(tsk) ;
571 fgQA = new AliQAv1(tsk) ;
574 AliInfoClass("fgQA = gAlice->GetQA()") ;
577 AliInfoClass("fgQA = dynamic_cast<AliQAv1 *> (esdFile->Get(\"QA\")") ;
580 AliInfoClass("fgQA = dynamic_cast<AliQAv1 *> (esdFile->Get(\"QA\")") ;
590 //_______________________________________________________________
591 AliQAv1 * AliQAv1::Instance(const TASKINDEX_t tsk)
593 // get an instance of the singleton.
595 ALITASK_t index = kNULLTASK ;
599 else if (tsk < kDIGITS)
601 else if (tsk < kRECPARTICLES)
603 else if (tsk == kESDS)
606 return Instance(index) ;
609 //_______________________________________________________________
610 void AliQAv1::Merge(TCollection * list) {
611 // Merge the QA resuls in the list into this single AliQAv1 object
613 for (Int_t det = 0 ; det < kNDET ; det++) {
614 Set(DETECTORINDEX_t(det)) ;
615 for (Int_t task = 0 ; task < kNTASK ; task++) {
616 Set(ALITASK_t(task)) ;
617 for (Int_t bit = 0 ; bit < kNBIT ; bit++) {
620 while ( (qa = (AliQAv1*)next() ) ) {
621 for (Int_t es = 0 ; es < fNEventSpecies ; es++) {
622 if (qa->IsSet(DETECTORINDEX_t(det), ALITASK_t(task), es, QABIT_t(bit)))
623 Set(QABIT_t(bit), es) ;
631 //_______________________________________________________________
632 ULong_t AliQAv1::Offset(ALITASK_t tsk) const
634 // Calculates the bit offset for a given module (SIM, REC, ESD, ANA)
664 //_______________________________________________________________
665 void AliQAv1::ResetStatus(DETECTORINDEX_t det)
667 // reset the status of det for all event specie
668 for (Int_t es = 0 ; es < fNEventSpecies ; es++)
669 fQA[det*fNdet+es] = 0 ;
672 //_______________________________________________________________
673 void AliQAv1::Set(QABIT_t bit, Int_t ies)
675 // Set the status bit of the current detector in the current module and for the current event specie
676 Set(bit, AliRecoParam::Convert(ies)) ;
679 //_______________________________________________________________
680 void AliQAv1::Set(QABIT_t bit, AliRecoParam::EventSpecie_t es)
682 // Set the status bit of the current detector in the current module and for the current event specie
684 SetStatusBit(fDet, fTask, es, bit) ;
687 //_____________________________________________________________________________
688 void AliQAv1::SetQARefStorage(const char * name)
690 // Set the root directory where the QA reference data are stored
692 fgQARefDirName = name ;
693 if ( fgQARefDirName.Contains(fgkLabLocalFile) )
694 fgQARefFileName = fgkRefFileName ;
695 else if ( fgQARefDirName.Contains(fgkLabLocalOCDB) )
696 fgQARefFileName = fgkQAName ;
697 else if ( fgQARefDirName.Contains(fgkLabAliEnOCDB) )
698 fgQARefFileName = fgkQAName ;
701 AliErrorClass(Form("ERROR: %s is an invalid storage definition\n", name)) ;
702 fgQARefDirName = "" ;
703 fgQARefFileName = "" ;
705 TString tmp(fgQARefDirName) ; // + fgQARefFileName) ;
706 AliInfoClass(Form("AliQAv1::SetQARefDir: QA references are in %s\n", tmp.Data() )) ;
709 //_____________________________________________________________________________
710 void AliQAv1::SetQAResultDirName(const char * name)
712 // Set the root directory where to store the QA status object
714 fgQAResultDirName.Prepend(name) ;
715 AliInfoClass(Form("AliQAv1::SetQAResultDirName: QA results are in %s\n", fgQAResultDirName.Data())) ;
716 if ( fgQAResultDirName.Contains(fgkLabLocalFile))
717 fgQAResultDirName.ReplaceAll(fgkLabLocalFile, "") ;
718 fgQAResultFileName.Prepend(fgQAResultDirName) ;
721 //_______________________________________________________________
722 void AliQAv1::SetStatusBit(DETECTORINDEX_t det, ALITASK_t tsk, AliRecoParam::EventSpecie_t es, QABIT_t bit)
724 // Set the status bit for a given detector and a given task
731 ULong_t offset = Offset(tsk) ;
732 ULong_t status = GetStatus(det, es) ;
734 status = status | 1 << offset ;
735 SetStatus(det, es, status) ;
738 //_______________________________________________________________
739 void AliQAv1::Show(DETECTORINDEX_t det) const
741 // dispplay the QA status word
742 if ( det == kNULLDET)
744 for (Int_t ies = 0 ; ies < fNEventSpecies ; ies++) {
745 const Bool_t what = IsEventSpecieSet(ies) ;
747 ShowStatus(det, kNULLTASK, AliRecoParam::Convert(ies)) ;
751 //_______________________________________________________________
752 void AliQAv1::ShowAll() const
754 // dispplay the QA status word
756 for (index = 0 ; index < kNDET ; index++) {
757 for (Int_t tsk = kRAW ; tsk < kNTASK ; tsk++) {
758 for (Int_t ies = 0 ; ies < fNEventSpecies ; ies++) {
759 const Bool_t what = IsEventSpecieSet(ies) ;
761 ShowStatus(DETECTORINDEX_t(index), ALITASK_t(tsk), AliRecoParam::Convert(ies)) ;
767 //_______________________________________________________________
768 void AliQAv1::ShowStatus(DETECTORINDEX_t det, ALITASK_t tsk, AliRecoParam::EventSpecie_t es) const
770 // Prints the full QA status of a given detector
773 ULong_t status = GetStatus(det, es) ;
774 ULong_t tskStatus[kNTASK] ;
775 tskStatus[kRAW] = status & 0x0000f ;
776 tskStatus[kSIM] = status & 0x000f0 ;
777 tskStatus[kREC] = status & 0x00f00 ;
778 tskStatus[kESD] = status & 0x0f000 ;
779 tskStatus[kANA] = status & 0xf0000 ;
781 AliInfo(Form("====> QA Status for %8s %8s raw =0x%x, sim=0x%x, rec=0x%x, esd=0x%x, ana=0x%x", GetDetName(det).Data(), AliRecoParam::GetEventSpecieName(es),
782 tskStatus[kRAW], tskStatus[kSIM], tskStatus[kREC], tskStatus[kESD], tskStatus[kANA] )) ;
783 if (tsk == kNULLTASK) {
784 for (Int_t itsk = kRAW ; itsk < kNTASK ; itsk++) {
785 ShowASCIIStatus(es, det, ALITASK_t(itsk), tskStatus[itsk]) ;
788 ShowASCIIStatus(es, det, tsk, tskStatus[tsk]) ;
792 //_______________________________________________________________
793 void AliQAv1::ShowASCIIStatus(AliRecoParam::EventSpecie_t es, DETECTORINDEX_t det, ALITASK_t tsk, const ULong_t status) const
795 // print the QA status in human readable format
797 for (Int_t bit = kINFO ; bit < kNBIT ; bit++) {
798 if (IsSet(det, tsk, es, QABIT_t(bit))) {
799 text = GetBitName(QABIT_t(bit)) ;
804 AliInfoClass(Form(" %8s %8s %4s 0x%4lx, Problem signalled: %8s \n", AliRecoParam::GetEventSpecieName(es), GetDetName(det).Data(), GetAliTaskName(tsk), status, text.Data())) ;
807 //_______________________________________________________________
808 void AliQAv1::UnSet(QABIT_t bit, Int_t ies)
810 // UnSet the status bit of the current detector in the current module
811 UnSet(bit, AliRecoParam::Convert(ies)) ;
814 //_______________________________________________________________
815 void AliQAv1::UnSet(QABIT_t bit, AliRecoParam::EventSpecie_t es)
817 // UnSet the status bit of the current detector in the current module
819 UnSetStatusBit(fDet, fTask, es, bit) ;
822 //_______________________________________________________________
823 void AliQAv1::UnSetStatusBit(DETECTORINDEX_t det, ALITASK_t tsk, AliRecoParam::EventSpecie_t es, QABIT_t bit)
825 // UnSet the status bit for a given detector and a given task
832 ULong_t offset = Offset(tsk) ;
833 ULong_t status = GetStatus(det, es) ;
835 status = status & 0 << offset ;
836 SetStatus(det, es, status) ;