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 const TString AliQAv1::fImageFileName = "QAImage" ;
78 const TString AliQAv1::fImageFileFormat = "ps" ;
79 const UShort_t AliQAv1::fgkMaxQAObjects = 10000 ;
81 //____________________________________________________________________________
85 fNEventSpecies(AliRecoParam::kNSpecies),
86 fLengthQA(fNdet*fNEventSpecies),
87 fQA(new ULong_t[fLengthQA]),
90 fEventSpecie(AliRecoParam::kDefault),
91 fEventSpecies(new Bool_t[fNEventSpecies])
93 // default constructor
94 memset(fQA,0,fLengthQA*sizeof(ULong_t));
95 memset(fEventSpecies,kFALSE,fNEventSpecies*sizeof(Bool_t));
98 //____________________________________________________________________________
99 AliQAv1::AliQAv1(const AliQAv1& qa) :
102 fNEventSpecies(qa.fNEventSpecies),
103 fLengthQA(qa.fLengthQA),
104 fQA(new ULong_t[fLengthQA]),
107 fEventSpecie(qa.fEventSpecie),
108 fEventSpecies(new Bool_t[fNEventSpecies])
111 memcpy(fQA,qa.fQA,fLengthQA*sizeof(ULong_t));
112 memcpy(fEventSpecies,qa.fEventSpecies,fNEventSpecies*sizeof(Bool_t));
115 //_____________________________________________________________________________
116 AliQAv1& AliQAv1::operator = (const AliQAv1& qa)
118 // assignment operator
120 TNamed::operator=(qa);
122 fNEventSpecies = qa.fNEventSpecies;
123 fLengthQA = qa.fLengthQA;
125 if(fQA) delete [] fQA;
126 fQA = new ULong_t[fLengthQA];
127 memcpy(fQA,qa.fQA,fLengthQA*sizeof(ULong_t));
131 fEventSpecie = qa.fEventSpecie;
132 if(fEventSpecies) delete [] fEventSpecies;
133 fEventSpecies = new Bool_t[fNEventSpecies];
134 memcpy(fEventSpecies,qa.fEventSpecies,fNEventSpecies*sizeof(Bool_t));
139 //_______________________________________________________________
140 AliQAv1::AliQAv1(const Int_t qalength, ULong_t * qa, const Int_t eslength, Bool_t * es) :
141 TNamed("QA", "Quality Assurance status"),
143 fNEventSpecies(eslength),
145 fQA(new ULong_t[fLengthQA]),
148 fEventSpecie(AliRecoParam::kDefault),
149 fEventSpecies(new Bool_t[fNEventSpecies])
151 // constructor to be used
152 memcpy(fQA, qa, fLengthQA*sizeof(ULong_t));
153 memcpy(fEventSpecies, es, fNEventSpecies*sizeof(Bool_t));
156 //_______________________________________________________________
157 AliQAv1::AliQAv1(const DETECTORINDEX_t det) :
158 TNamed("QA", "Quality Assurance status"),
160 fNEventSpecies(AliRecoParam::kNSpecies),
161 fLengthQA(fNdet*fNEventSpecies),
162 fQA(new ULong_t[fLengthQA]),
165 fEventSpecie(AliRecoParam::kDefault),
166 fEventSpecies(new Bool_t[fNEventSpecies])
168 // constructor to be used
169 if (! CheckRange(det) ) fDet = kNULLDET ;
170 memset(fQA,0,fLengthQA*sizeof(ULong_t));
171 memset(fEventSpecies,kFALSE,fNEventSpecies*sizeof(Bool_t));
174 //_______________________________________________________________
175 AliQAv1::AliQAv1(const ALITASK_t tsk) :
176 TNamed("QA", "Quality Assurance status"),
178 fNEventSpecies(AliRecoParam::kNSpecies),
179 fLengthQA(fNdet*fNEventSpecies),
180 fQA(new ULong_t[fLengthQA]),
183 fEventSpecie(AliRecoParam::kDefault),
184 fEventSpecies(new Bool_t[fNEventSpecies])
186 // constructor to be used in the AliRoot module (SIM, REC, ESD or ANA)
187 if (! CheckRange(tsk) ) fTask = kNULLTASK ;
188 memset(fQA,0,fLengthQA*sizeof(ULong_t));
189 memset(fEventSpecies,kFALSE,fNEventSpecies*sizeof(Bool_t));
192 //____________________________________________________________________________
197 delete [] fEventSpecies;
200 //_______________________________________________________________
201 void AliQAv1::Close()
203 // close the open files
205 if (fgQADataFile->IsOpen())
206 fgQADataFile->Close() ;
208 if (fgQAResultFile->IsOpen())
209 fgQAResultFile->Close() ;
211 if (fgQARefFile->IsOpen())
212 fgQARefFile->Close() ;
215 //_______________________________________________________________
216 Bool_t AliQAv1::CheckFatal() const
218 // check if any FATAL status is set
221 for (index = 0; index < kNDET ; index++)
222 rv = rv || IsSet(DETECTORINDEX_t(index), fTask, fEventSpecie, kFATAL) ;
226 //_______________________________________________________________
227 Bool_t AliQAv1::CheckRange(DETECTORINDEX_t det) const
229 // check if detector is in given detector range: 0-kNDET
231 Bool_t rv = ( det < 0 || det > kNDET ) ? kFALSE : kTRUE ;
233 AliFatal(Form("Detector index %d is out of range: 0 <= index <= %d", det, kNDET)) ;
237 //_______________________________________________________________
238 Bool_t AliQAv1::CheckRange(ALITASK_t task) const
240 // check if task is given taskk range: 0:kNTASK
241 Bool_t rv = ( task < kRAW || task > kNTASK ) ? kFALSE : kTRUE ;
243 AliFatal(Form("Module index %d is out of range: 0 <= index <= %d", task, kNTASK)) ;
247 //_______________________________________________________________
248 Bool_t AliQAv1::CheckRange(QABIT_t bit) const
250 // check if bit is in given bit range: 0-kNBit
252 Bool_t rv = ( bit < 0 || bit > kNBIT ) ? kFALSE : kTRUE ;
254 AliFatal(Form("Status bit %d is out of range: 0 <= bit <= %d", bit, kNBIT)) ;
258 //_______________________________________________________________
259 Bool_t AliQAv1::CheckRange(AliRecoParam::EventSpecie_t es) const
261 // check if bit is in given bit range: 0-kNBit
264 case AliRecoParam::kDefault:
267 case AliRecoParam::kLowMult:
270 case AliRecoParam::kHighMult:
273 case AliRecoParam::kCosmic:
276 case AliRecoParam::kCalib:
281 AliFatal(Form("Event Specie %d is not valid", es)) ;
285 //_______________________________________________________________
286 const char * AliQAv1::GetAliTaskName(ALITASK_t tsk)
288 // returns the char name corresponding to module index
312 return tskName.Data() ;
315 //_______________________________________________________________
316 const char * AliQAv1::GetBitName(QABIT_t bit) const
318 // returns the char name corresponding to bit
327 bitName = "WARNING" ;
339 return bitName.Data() ;
342 //_______________________________________________________________
343 AliQAv1::DETECTORINDEX_t AliQAv1::GetDetIndex(const char * name)
345 // returns the detector index corresponding to a given name
346 TString sname(name) ;
347 DETECTORINDEX_t rv = kNULLDET ;
348 for (Int_t det = 0; det < kNDET ; det++) {
349 if ( GetDetName(det) == sname ) {
350 rv = DETECTORINDEX_t(det) ;
357 //_______________________________________________________________
358 const char * AliQAv1::GetDetName(Int_t det)
360 // returns the detector name corresponding to a given index (needed in a loop)
362 if ( det >= 0 && det < kNDET)
363 return (fgDetNames[det]).Data() ;
368 //_______________________________________________________________
369 TFile * AliQAv1::GetQADataFile(const char * name, Int_t run)
371 // opens the file to store the detectors Quality Assurance Data Maker results
372 const char * temp = Form("%s.%s.%d.root", name, fgQADataFileName.Data(), run) ;
374 if (! fgQADataFile ) {
375 if (gSystem->AccessPathName(temp))
379 fgQADataFile = TFile::Open(temp, opt.Data()) ;
381 if ( strcmp(temp, fgQADataFile->GetName()) != 0 ) {
382 fgQADataFile = static_cast<TFile *>(gROOT->FindObject(temp)) ;
383 if ( !fgQADataFile ) {
384 if (gSystem->AccessPathName(temp))
388 fgQADataFile = TFile::Open(temp, opt.Data()) ;
392 return fgQADataFile ;
395 //_____________________________________________________________________________
396 TFile * AliQAv1::GetQADataFile(const char * fileName)
398 // Open if necessary the Data file and return its pointer
402 fileName = AliQAv1::GetQADataFileName() ;
403 if (!gSystem->AccessPathName(fileName)) {
404 fgQADataFile = TFile::Open(fileName) ;
406 AliFatalClass(Form("File %s not found", fileName)) ;
408 return fgQADataFile ;
411 //_______________________________________________________________
412 TFile * AliQAv1::GetQAResultFile()
414 // opens the file to store the Quality Assurance Data Checker results
416 fgQAResultFile->Close() ;
417 fgQAResultFile = 0x0 ;
418 // if (!fgQAResultFile) {
419 TString dirName(fgQAResultDirName) ;
420 if ( dirName.Contains(fgkLabLocalFile))
421 dirName.ReplaceAll(fgkLabLocalFile, "") ;
422 TString fileName(dirName + fgQAResultFileName) ;
424 if ( !gSystem->AccessPathName(fileName) )
427 if ( gSystem->AccessPathName(dirName) )
428 gSystem->mkdir(dirName) ;
431 fgQAResultFile = TFile::Open(fileName, opt) ;
434 return fgQAResultFile ;
437 //_______________________________________________________________
438 AliQAv1::TASKINDEX_t AliQAv1::GetTaskIndex(const char * name)
440 // returns the detector index corresponding to a given name
441 TString sname(name) ;
442 TASKINDEX_t rv = kNULLTASKINDEX ;
443 for (Int_t tsk = 0; tsk < kNTASKINDEX ; tsk++) {
444 if ( GetTaskName(tsk) == sname ) {
445 rv = TASKINDEX_t(tsk) ;
452 //_______________________________________________________________
453 Bool_t AliQAv1::IsSet(DETECTORINDEX_t det, ALITASK_t tsk, Int_t ies, QABIT_t bit) const
455 // Checks is the requested bit is set
457 const AliRecoParam::EventSpecie_t es = AliRecoParam::Convert(ies) ;
458 return IsSet(det, tsk, es, bit) ;
462 //_______________________________________________________________
463 Bool_t AliQAv1::IsSet(DETECTORINDEX_t det, ALITASK_t tsk, AliRecoParam::EventSpecie_t es, QABIT_t bit) const
465 // Checks is the requested bit is set
472 ULong_t offset = Offset(tsk) ;
473 ULong_t status = GetStatus(det, es) ;
475 status = (status & 1 << offset) != 0 ;
479 //_______________________________________________________________
480 Bool_t AliQAv1::IsSetAny(DETECTORINDEX_t det, ALITASK_t tsk, AliRecoParam::EventSpecie_t es) const
482 // Checks is the requested bit is set
488 ULong_t offset = Offset(tsk) ;
489 ULong_t status = GetStatus(det, es) ;
491 for ( Int_t bit = 0 ; bit < kNBIT ; bit++) {
493 st += (status & 1 << offset) != 0 ;
500 //_______________________________________________________________
501 Bool_t AliQAv1::IsSetAny(DETECTORINDEX_t det, AliRecoParam::EventSpecie_t es) const
503 // Checks is the requested bit is set
508 ULong_t status = GetStatus(det, es) ;
510 for ( Int_t tsk = 0 ; tsk < kNTASK ; tsk++) {
511 ULong_t offset = Offset(ALITASK_t(tsk)) ;
512 for ( Int_t bit = 0 ; bit < kNBIT ; bit++) {
514 st += (status & 1 << offset) != 0 ;
523 //_______________________________________________________________
524 AliQAv1 * AliQAv1::Instance()
526 // Get an instance of the singleton. The only authorized way to call the ctor
529 TFile * f = GetQAResultFile() ;
530 fgQA = static_cast<AliQAv1 *>(f->Get("QA")) ;
532 fgQA = new AliQAv1() ;
537 //_______________________________________________________________
538 AliQAv1 * AliQAv1::Instance(const Int_t qalength, ULong_t * qa, const Int_t eslength, Bool_t * es)
540 // Get an instance of the singleton. The only authorized way to call the ctor
543 fgQA = new AliQAv1(qalength, qa, eslength, es) ;
547 //_______________________________________________________________
548 AliQAv1 * AliQAv1::Instance(const DETECTORINDEX_t det)
550 // Get an instance of the singleton. The only authorized way to call the ctor
553 TFile * f = GetQAResultFile() ;
554 fgQA = static_cast<AliQAv1 *>(f->Get("QA")) ;
556 fgQA = new AliQAv1(det) ;
562 //_______________________________________________________________
563 AliQAv1 * AliQAv1::Instance(const ALITASK_t tsk)
565 // Get an instance of the singleton. The only authorized way to call the ctor
572 fgQA = new AliQAv1(tsk) ;
575 fgQA = new AliQAv1(tsk) ;
578 AliInfoClass("fgQA = gAlice->GetQA()") ;
581 AliInfoClass("fgQA = static_cast<AliQAv1 *> (esdFile->Get(\"QA\")") ;
584 AliInfoClass("fgQA = static_cast<AliQAv1 *> (esdFile->Get(\"QA\")") ;
594 //_______________________________________________________________
595 AliQAv1 * AliQAv1::Instance(const TASKINDEX_t tsk)
597 // get an instance of the singleton.
599 ALITASK_t index = kNULLTASK ;
603 else if (tsk < kDIGITS)
605 else if (tsk < kRECPARTICLES)
607 else if (tsk == kESDS)
610 return Instance(index) ;
613 //_______________________________________________________________
614 void AliQAv1::Merge(TCollection * list) {
615 // Merge the QA resuls in the list into this single AliQAv1 object
617 for (Int_t det = 0 ; det < kNDET ; det++) {
618 Set(DETECTORINDEX_t(det)) ;
619 for (Int_t task = 0 ; task < kNTASK ; task++) {
620 Set(ALITASK_t(task)) ;
621 for (Int_t bit = 0 ; bit < kNBIT ; bit++) {
624 while ( (qa = (AliQAv1*)next() ) ) {
625 for (Int_t es = 0 ; es < fNEventSpecies ; es++) {
626 if (qa->IsSet(DETECTORINDEX_t(det), ALITASK_t(task), es, QABIT_t(bit)))
627 Set(QABIT_t(bit), es) ;
635 //_______________________________________________________________
636 ULong_t AliQAv1::Offset(ALITASK_t tsk) const
638 // Calculates the bit offset for a given module (SIM, REC, ESD, ANA)
668 //_______________________________________________________________
669 void AliQAv1::ResetStatus(DETECTORINDEX_t det)
671 // reset the status of det for all event specie
672 for (Int_t es = 0 ; es < fNEventSpecies ; es++)
673 fQA[det*fNdet+es] = 0 ;
676 //_______________________________________________________________
677 void AliQAv1::Set(QABIT_t bit, Int_t ies)
679 // Set the status bit of the current detector in the current module and for the current event specie
680 Set(bit, AliRecoParam::Convert(ies)) ;
683 //_______________________________________________________________
684 void AliQAv1::Set(QABIT_t bit, AliRecoParam::EventSpecie_t es)
686 // Set the status bit of the current detector in the current module and for the current event specie
688 SetStatusBit(fDet, fTask, es, bit) ;
691 //_____________________________________________________________________________
692 void AliQAv1::SetQARefStorage(const char * name)
694 // Set the root directory where the QA reference data are stored
696 fgQARefDirName = name ;
697 if ( fgQARefDirName.Contains(fgkLabLocalFile) )
698 fgQARefFileName = fgkRefFileName ;
699 else if ( fgQARefDirName.Contains(fgkLabLocalOCDB) )
700 fgQARefFileName = fgkQAName ;
701 else if ( fgQARefDirName.Contains(fgkLabAliEnOCDB) )
702 fgQARefFileName = fgkQAName ;
705 AliErrorClass(Form("ERROR: %s is an invalid storage definition\n", name)) ;
706 fgQARefDirName = "" ;
707 fgQARefFileName = "" ;
709 TString tmp(fgQARefDirName) ; // + fgQARefFileName) ;
710 AliInfoClass(Form("AliQAv1::SetQARefDir: QA references are in %s\n", tmp.Data() )) ;
713 //_____________________________________________________________________________
714 void AliQAv1::SetQAResultDirName(const char * name)
716 // Set the root directory where to store the QA status object
718 fgQAResultDirName.Prepend(name) ;
719 AliInfoClass(Form("AliQAv1::SetQAResultDirName: QA results are in %s\n", fgQAResultDirName.Data())) ;
720 if ( fgQAResultDirName.Contains(fgkLabLocalFile))
721 fgQAResultDirName.ReplaceAll(fgkLabLocalFile, "") ;
722 fgQAResultFileName.Prepend(fgQAResultDirName) ;
725 //_______________________________________________________________
726 void AliQAv1::SetStatusBit(DETECTORINDEX_t det, ALITASK_t tsk, AliRecoParam::EventSpecie_t es, QABIT_t bit)
728 // Set the status bit for a given detector and a given task
735 ULong_t offset = Offset(tsk) ;
736 ULong_t status = GetStatus(det, es) ;
738 status = status | 1 << offset ;
739 SetStatus(det, es, status) ;
742 //_______________________________________________________________
743 void AliQAv1::Show(DETECTORINDEX_t det) const
745 // dispplay the QA status word
746 if ( det == kNULLDET)
748 for (Int_t ies = 0 ; ies < fNEventSpecies ; ies++) {
749 if ( IsEventSpecieSet(ies) )
750 ShowStatus(det, kNULLTASK, AliRecoParam::ConvertIndex(ies)) ;
754 //_______________________________________________________________
755 void AliQAv1::ShowAll() const
757 // dispplay the QA status word
759 for (index = 0 ; index < kNDET ; index++) {
760 for (Int_t tsk = kRAW ; tsk < kNTASK ; tsk++) {
761 for (Int_t ies = 0 ; ies < fNEventSpecies ; ies++) {
762 if ( IsEventSpecieSet(ies) )
763 ShowStatus(DETECTORINDEX_t(index), ALITASK_t(tsk), AliRecoParam::ConvertIndex(ies)) ;
769 //_______________________________________________________________
770 void AliQAv1::ShowStatus(DETECTORINDEX_t det, ALITASK_t tsk, AliRecoParam::EventSpecie_t es) const
772 // Prints the full QA status of a given detector
775 ULong_t status = GetStatus(det, es) ;
776 ULong_t tskStatus[kNTASK] ;
777 tskStatus[kRAW] = status & 0x0000f ;
778 tskStatus[kSIM] = status & 0x000f0 ;
779 tskStatus[kREC] = status & 0x00f00 ;
780 tskStatus[kESD] = status & 0x0f000 ;
781 tskStatus[kANA] = status & 0xf0000 ;
783 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),
784 tskStatus[kRAW], tskStatus[kSIM], tskStatus[kREC], tskStatus[kESD], tskStatus[kANA] )) ;
785 if (tsk == kNULLTASK) {
786 for (Int_t itsk = kRAW ; itsk < kNTASK ; itsk++) {
787 ShowASCIIStatus(es, det, ALITASK_t(itsk), tskStatus[itsk]) ;
790 ShowASCIIStatus(es, det, tsk, tskStatus[tsk]) ;
794 //_______________________________________________________________
795 void AliQAv1::ShowASCIIStatus(AliRecoParam::EventSpecie_t es, DETECTORINDEX_t det, ALITASK_t tsk, const ULong_t status) const
797 // print the QA status in human readable format
799 for (Int_t bit = kINFO ; bit < kNBIT ; bit++) {
800 if (IsSet(det, tsk, es, QABIT_t(bit))) {
801 text = GetBitName(QABIT_t(bit)) ;
806 AliInfoClass(Form(" %8s %8s %4s 0x%4lx, Problem signalled: %8s \n", AliRecoParam::GetEventSpecieName(es), GetDetName(det).Data(), GetAliTaskName(tsk), status, text.Data())) ;
809 //_______________________________________________________________
810 void AliQAv1::UnSet(QABIT_t bit, Int_t ies)
812 // UnSet the status bit of the current detector in the current module
813 UnSet(bit, AliRecoParam::Convert(ies)) ;
816 //_______________________________________________________________
817 void AliQAv1::UnSet(QABIT_t bit, AliRecoParam::EventSpecie_t es)
819 // UnSet the status bit of the current detector in the current module
821 UnSetStatusBit(fDet, fTask, es, bit) ;
824 //_______________________________________________________________
825 void AliQAv1::UnSetStatusBit(DETECTORINDEX_t det, ALITASK_t tsk, AliRecoParam::EventSpecie_t es, QABIT_t bit)
827 // UnSet the status bit for a given detector and a given task
834 ULong_t offset = Offset(tsk) ;
835 ULong_t status = GetStatus(det, es) ;
837 status = status & 0 << offset ;
838 SetStatus(det, es, status) ;