]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Removed the QA checker mechanism
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 Feb 2005 09:25:15 +0000 (09:25 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 1 Feb 2005 09:25:15 +0000 (09:25 +0000)
22 files changed:
PHOS/AliPHOS.cxx
PHOS/AliPHOS.h
PHOS/AliPHOSDigit.h
PHOS/AliPHOSGetter.cxx
PHOS/AliPHOSLoader.cxx
PHOS/AliPHOSLoader.h
PHOS/AliPHOSQAAlarm.cxx [deleted file]
PHOS/AliPHOSQAAlarm.h [deleted file]
PHOS/AliPHOSQAChecker.cxx [deleted file]
PHOS/AliPHOSQAChecker.h [deleted file]
PHOS/AliPHOSQAFloatCheckable.cxx [deleted file]
PHOS/AliPHOSQAFloatCheckable.h [deleted file]
PHOS/AliPHOSQAIntCheckable.cxx [deleted file]
PHOS/AliPHOSQAIntCheckable.h [deleted file]
PHOS/AliPHOSQAMeanChecker.cxx [deleted file]
PHOS/AliPHOSQAMeanChecker.h [deleted file]
PHOS/AliPHOSQAObjectCheckable.cxx [deleted file]
PHOS/AliPHOSQAObjectCheckable.h [deleted file]
PHOS/AliPHOSQAVirtualCheckable.cxx [deleted file]
PHOS/AliPHOSQAVirtualCheckable.h [deleted file]
PHOS/AliPHOSv1.cxx
PHOS/AliPHOSv1.h

index 6b503f7dea75c705892d59c1d2003c48e79e805f..90c48abbab710c37b50b26399ba784c472aabb6f 100644 (file)
@@ -60,8 +60,6 @@ Double_t AliPHOS::fgTimeTrigger = 100E-9 ;      // 100ns, just for a reference
 {
   // Default ctor
   fName   = "PHOS" ;
-  fQATask = 0;
-  fTreeQA = 0;
   fDebug  = 0; 
 
 }
@@ -71,8 +69,6 @@ AliPHOS::AliPHOS(const char* name, const char* title): AliDetector(name, title)
 {
   //   ctor : title is used to identify the layout
   
-  fQATask = 0 ; 
-  fTreeQA = 0 ;
   fDebug  = 0 ; 
   fHighCharge        = 8.2 ;          // adjusted for a high gain range of 5.12 GeV (10 bits)
   fHighGain          = 6.64 ; 
@@ -91,8 +87,6 @@ void AliPHOS::Copy(AliPHOS & phos)
 {
   // copy method to be used byy the cpy ctor
   TObject::Copy(phos) ; 
-  //  fQATask = AliPHOSQAChecker::Copy(*(phos.fQATask)) ; 
-  phos.fTreeQA = fTreeQA->CloneTree() ; 
   phos.fHighCharge        = fHighCharge ;
   phos.fHighGain          = fHighGain ; 
   phos.fHighLowGainFactor = fHighLowGainFactor ;  
@@ -614,34 +608,3 @@ void AliPHOS::SetTreeAddress()
   }
 }
 
-//____________________________________________________________________________
-void AliPHOS::WriteQA()
-{
-
-  // Make TreeQA in the output file. 
-
-  if(fTreeQA == 0)
-    fTreeQA = new TTree("TreeQA", "QA Alarms") ;    
-  // Create Alarms branches
-  Int_t bufferSize = 32000 ;    
-  Int_t splitlevel = 0 ; 
-
-  TFolder* topfold = GetLoader()->GetTopFolder(); //get top aliroot folder; skowron
-  TString phosqafn(AliConfig::Instance()->GetQAFolderName()+"/"); //get name of QAaut folder relative to top event; skowron
-  phosqafn+=GetName(); //hard wired string!!! add the detector name to the pathname; skowron 
-  TFolder * alarmsF = (TFolder*)topfold->FindObjectAny(phosqafn); //get the folder
-  if (alarmsF == 0x0)
-   {
-     AliError(Form("Can not find folder with qa alarms"));
-     return;
-   }
-  TString branchName(alarmsF->GetName());
-  TBranch * alarmsBranch = fTreeQA->Branch(branchName,"TFolder", &alarmsF, bufferSize, splitlevel);
-  TString branchTitle = branchName + " QA alarms" ; 
-  alarmsBranch->SetTitle(branchTitle);
-  alarmsBranch->Fill() ; 
-
-  //fTreeQA->Fill() ; 
-}
-
index ca4da579f2e7926aa46ea209d9d3a677f633b879..f86cd6b582f24189e0289469f6f61388d4789665 100644 (file)
@@ -21,7 +21,6 @@ class TRandom ;
 #include "AliDetector.h" 
 #include "AliLog.h"
 #include "AliPHOSGeometry.h" 
-class AliPHOSQAChecker ;
 
 class AliPHOS : public AliDetector {
 
@@ -44,7 +43,7 @@ public:
   virtual AliDigitizer* CreateDigitizer(AliRunDigitizer* manager) const;
   virtual void  CreateMaterials() ;            
   virtual void  Digits2Raw();
-  virtual void  FinishRun() {WriteQA();}
+  virtual void  FinishRun() {;}
   virtual AliPHOSGeometry * GetGeometry() const 
   {return AliPHOSGeometry::GetInstance(GetTitle(),"") ;  }
   virtual void    Hits2SDigits();
@@ -66,22 +65,17 @@ public:
   static Double_t RawResponseFunctionMax(Double_t charge, Double_t gain) ;
   //
   virtual AliLoader* MakeLoader(const char* topfoldername);
-  AliPHOSQAChecker * QAChecker() {return fQATask;}  
   virtual void    SetTreeAddress();   
-  virtual TTree * TreeQA() const {return fTreeQA; } 
   virtual const TString Version() const {return TString(" ") ; } 
-  virtual void WriteQA() ; 
   AliPHOS & operator = (const AliPHOS & /*rvalue*/)  {
     Fatal("operator =", "not implemented") ; return *this ; }
 
 
 protected:
 
-    Bool_t   RawSampledResponse(const Double_t dtime, const Double_t damp, Int_t * adcH, Int_t * adcL) const ; 
-
-
-  AliPHOSQAChecker * fQATask ;          //! PHOS checkers container
-  TTree * fTreeQA ;                     // the QA tree that contains the alarms
+  Bool_t   RawSampledResponse(const Double_t dtime, const Double_t damp, Int_t * adcH, Int_t * adcL) const ; 
+  
+  
   static Double_t fgCapa ;              // capacitor of the preamplifier for the raw RO signal
   Double_t fHighCharge ;                // high charge (to convert energy to charge) for the raw RO signal
   Double_t fHighGain ;                  // high gain for the raw RO signal
@@ -93,7 +87,7 @@ protected:
   static Double_t fgTimePeak ;          // peaking time of the raw RO signal                                    
   static Double_t fgTimeTrigger ;       // time of the trigger for the RO signal 
                                         
-  ClassDef(AliPHOS,4) // Photon Spectrometer Detector (base class)
+  ClassDef(AliPHOS,5) // Photon Spectrometer Detector (base class)
 } ;
 
 #endif // ALIPHOS_H
index a4a3eec51171fc4de82743e51d904efce16d1012..106719c698152634057f21c65ffd621b68f26d25 100644 (file)
@@ -10,7 +10,7 @@
 //              energy
 //              3 identifiers for the primary particle(s) at the origine of the digit
 //  The digits are made in FinishEvent() by summing all the hits in a single PHOS crystal or PPSD gas cell
-//  It would be nice to replace the 3 identifiers by an array, but, because digits are kept in a TClonesQArray,
+//  It would be nice to replace the 3 identifiers by an array, but, because digits are kept in a TClonesArray,
 //   it is not possible to stream such an array... (beyond my understqnding!)
 //
 //*-- Author: Laurent Aphecetche & Yves Schutz (SUBATECH)
index 85efc1e1b1ff5f46d656f48dedc48a4021f3da2c..e33507b5c6cbddfbe1b80a4ff9dff72744068384 100644 (file)
@@ -329,11 +329,6 @@ if( strstr(opt,"W")  ){
     ReadRaw(event) ;
   }    
  
-
-//   if( strstr(opt,"Q")   && (fCurentEvent[9]!=event) )
-//     ReadTreeQA() ;
-//   }    
 }
 
 
index c77d01a5c2c7ddb170f7b4f71cd3c626f8dd1260..16c248860da5f6264f6da55848cc250616e3d421 100644 (file)
@@ -530,32 +530,6 @@ void AliPHOSLoader::Track(Int_t itrack)
   hitsbranch->GetEntry(itrack);
 
 }
-//____________________________________________________________________________ 
-void AliPHOSLoader::ReadTreeQA()
-{
-  // Read the digit tree gAlice->TreeQA()
-  // so far only PHOS knows about this Tree  
-
-  if(PHOS()->TreeQA()== 0){
-    cerr <<   "ERROR: AliPHOSLoader::ReadTreeQA: can not read TreeQA " << endl ;
-    return ;
-  }
-  
-  TBranch * qabranch = PHOS()->TreeQA()->GetBranch("PHOS");
-  if (!qabranch) { 
-    if (fDebug)
-      cout << "WARNING: AliPHOSLoader::ReadTreeQA -> Cannot find QA Alarms for PHOS" << endl ;
-    return ; 
-  }   
-  
-//  if(!Alarms()) PostQA();
-
-  qabranch->SetAddress(AlarmsRef()) ;
-
-  qabranch->GetEntry(0) ;
-  
-}
-
 
 //____________________________________________________________________________ 
 Int_t AliPHOSLoader::ReadRecPoints()
index 6da175dc4d1c5453e10cc347a1cbf67348bfb5bf..024cb413d17a3a39a0221ffb31465c3de3613555 100644 (file)
@@ -93,7 +93,6 @@ public:
 //   Int_t   WriteRecParticles(Option_t* opt="");//writes the reconstructed particles
 //   Int_t   WritePID(Option_t* opt="");//writes the task for PID to file
 //   Bool_t  PostPID  (AliPHOSPID * pid) const {return kTRUE;}
-//  Bool_t  PostQA   (void) const ; //it was empty anyway
   
 /*******************************************************************/
 /*******************************************************************/
@@ -195,7 +194,6 @@ private:
   Int_t ReadTracks();
   Int_t ReadRecParticles();
   
-  void  ReadTreeQA() ;
   Int_t  fDebug ;             // Debug level
 
   static const TString fgkHitsName;//Name for TClonesArray with hits from one event
@@ -323,8 +321,5 @@ inline const AliPHOSRecParticle* AliPHOSLoader::RecParticle(Int_t index)
     return (const AliPHOSRecParticle*) tcarr->At(index);
   return 0x0;  
 }
-/******************************************************************************/
-inline TObjArray *  AliPHOSLoader::Alarms()
-{ return (TObjArray*)(GetQAFolder()->FindObject(fDetectorName));}
 
 #endif // AliPHOSLOADER_H
diff --git a/PHOS/AliPHOSQAAlarm.cxx b/PHOS/AliPHOSQAAlarm.cxx
deleted file mode 100644 (file)
index cb9b457..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-//_________________________________________________________________________
-// An alarm object that is instanciated by a AliPHOSQACheckable in response to
-// a AliPHOSQAChecker
-//*-- Author :  Yves Schutz (SUBATECH) 
-//////////////////////////////////////////////////////////////////////////////
-
-// --- ROOT system ---
-
-// --- Standard library ---
-
-// --- AliRoot header files ---
-
-#include "AliPHOSQAAlarm.h"
-#include "AliRun.h"
-
-ClassImp(AliPHOSQAAlarm)
-
-
-//____________________________________________________________________________ 
-  AliPHOSQAAlarm::AliPHOSQAAlarm(TString time, TString checked, TString checker, TString  message)  
-{
-  // ctor
- fTime    = time ; 
- fCable   = checked ; 
- fCer     = checker ; 
- fMessage = message ; 
- fEvent   = gAlice->GetEvNumber() ;
-}
-
-//____________________________________________________________________________ 
-  AliPHOSQAAlarm::~AliPHOSQAAlarm()
-{
-  // dtor
-}
-
-//____________________________________________________________________________ 
-  void AliPHOSQAAlarm::Print()
-{
-  // print the message 
-
-  Info("Print", "Event# %d %s", fEvent, fMessage.Data()) ;  
-}
diff --git a/PHOS/AliPHOSQAAlarm.h b/PHOS/AliPHOSQAAlarm.h
deleted file mode 100644 (file)
index ff79b15..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-#ifndef ALIPHOSQAALARM_H
-#define ALIPHOSQAALARM_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-//_________________________________________________________________________
-// An alarm object that is instanciated by a AliPHOSQACheckable in response to
-// a AliPHOSQAAlarm
-//                  
-//*-- Author: Yves Schutz (SUBATECH)
-
-
-// --- ROOT system --- 
-
-#include "TObject.h"  
-#include "TString.h"  
-
-// --- Standard library ---
-
-// --- AliRoot header files ---
-
-class AliPHOSQAAlarm : public TObject {
-
-public:
-
-  AliPHOSQAAlarm(){} ;          // default ctor (not to be used)
-  AliPHOSQAAlarm(TString time, TString checked, TString checker, TString  message) ; // ctor
-  virtual ~AliPHOSQAAlarm() ; // dtor
-  virtual void Print() ; 
-
- private:
-
-  TString fCable ;   // checkable name that raised the alarm
-  TString fCer ;     // checker name that raised the alarm    
-  Int_t fEvent ;     // event number where alarms occured 
-  TString fMessage ; // the whole error message 
-  TString fTime ;    // time when the alarm was raised 
-
-  ClassDef(AliPHOSQAAlarm,1)  // description 
-
-};
-
-#endif // ALIPHOSQAAlarm_H
diff --git a/PHOS/AliPHOSQAChecker.cxx b/PHOS/AliPHOSQAChecker.cxx
deleted file mode 100644 (file)
index 2abce85..0000000
+++ /dev/null
@@ -1,201 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-//_________________________________________________________________________
-// Base class for a QA checker, to be instanciated as a container of user 
-// defined tasks
-//*-- Author :  Yves Schutz (SUBATECH) 
-//////////////////////////////////////////////////////////////////////////////
-
-// --- ROOT system ---
-#include "TDatime.h"
-#include "TFolder.h" 
-
-// --- Standard library ---
-
-// --- AliRoot header files ---
-#include "AliConfig.h"
-
-#include "AliPHOSQAChecker.h"
-
-ClassImp(AliPHOSQAChecker)
-
-
-//____________________________________________________________________________ 
-  AliPHOSQAChecker::AliPHOSQAChecker(const char * name, const char * title) : TTask(name,title) 
-{
-  // ctor
-  // stores checkers in the PHOS QA TTask folder //Folders/Task/QA
-  
-  TFolder* topfold = AliConfig::Instance()->GetTopFolder(); //get top aliroot folder; skowron
-  TString phosqatn(AliConfig::Instance()->GetQATaskName()); //skowron
-  
-  TTask * aliceQA  = (TTask*)topfold->FindObjectAny(phosqatn); //skowron
-  if (aliceQA == 0x0)
-   {
-     Fatal("AliPHOSQAChecker","Can not find QA main task");
-     return;//never reached
-   }
-   
-  TTask * phosQA   = (TTask*)aliceQA->GetListOfTasks()->FindObject("PHOS"); //hard wired name !!!; skowron
-  if (phosQA)  // PHOS QA Tasks container exists
-   phosQA->Add(this) ;
-   else    // create  //Folders/Task/QA/PHOS
-     aliceQA->Add(this) ; 
-  
-  fCheckablesList = new TList() ;
-  fCheckable = 0;
-}
-
-//____________________________________________________________________________ 
-  AliPHOSQAChecker::~AliPHOSQAChecker()
-{
-  // dtor remove the checker from the task list of the associated checker
-  
-  TIter next(fCheckablesList) ; 
-  AliPHOSQAVirtualCheckable * checkable ; 
-  while ( (checkable = (AliPHOSQAVirtualCheckable*)next()) ) 
-    checkable->RemoveChecker(this) ; 
-  ExecuteTasks("D") ; 
-}
-
-//____________________________________________________________________________ 
-  void AliPHOSQAChecker::CheckIt(AliPHOSQAVirtualCheckable *ca) 
-{
-  // does the check for the given checkable 
-  
-  SetCheckable(ca) ;
-  TList * l = GetListOfTasks() ; 
-  TIter next(l) ; 
-  AliPHOSQAChecker * checker ; 
-  while ( (checker = (AliPHOSQAChecker*)next()) ) 
-    checker->SetCheckable(ca) ; 
-  ExecuteTask("") ;   
-  fCheckable = 0 ; 
-}
-
-//____________________________________________________________________________ 
-  void AliPHOSQAChecker::CheckIt()
-{
-  // does the check for all attached chekables 
-  if ( fCheckablesList->IsEmpty() ) 
-    ExecuteTask("C") ; 
-  else {
-    TIter next( fCheckablesList ) ;
-    AliPHOSQAVirtualCheckable * checkable ; 
-    while ( (checkable = (AliPHOSQAVirtualCheckable*)next() ) ) {
-      fCheckable = checkable ; 
-      ExecuteTask("") ;
-    }
-  }
-}
-
-//____________________________________________________________________________ 
-  void AliPHOSQAChecker::Exec(Option_t *option)
-{
-  // Performs various tasks as indicated by option
-  // P --> Print 
-  // S --> Status
-  // C --> does the comparison on all the checkables declared 
-  //   --> does the comparison on only one checkable (the one which asks CheckMe() )
-  // A --> list the alarms raised in  the associated checkables 
-  // R --> reset the alarms
-  // D --> calls the dtor
-
-  if ( !(strcmp(option,"P")) ) 
-    Print() ;
-
-  else if ( !(strcmp(option,"S")) ) 
-    Status() ;
-
-  else if ( !(strcmp(option,"C")) ) {  
-    TIter next( fCheckablesList ) ;
-    AliPHOSQAVirtualCheckable * checkable ; 
-    while ( (checkable = (AliPHOSQAVirtualCheckable*)next() ) ) {
-      fCheckable = checkable ;
-      TString message = CheckingOperation(); 
-      if ( !message.IsNull() ) { 
-       TDatime dt ;
-       TString time(dt.AsSQLString()) ;
-       message = time + message ; 
-       fCheckable->RaiseAlarm(dt.AsSQLString(), fCheckable->GetName(), GetName(), message.Data()) ; 
-      }        
-    }
-  }
-  
-  else if ( !(strcmp(option,"R")) ) {  
-    TIter next( fCheckablesList ) ;
-    AliPHOSQAVirtualCheckable * checkable ; 
-    while ( (checkable = (AliPHOSQAVirtualCheckable*)next() ) ) {
-      fCheckable = checkable ; 
-      fCheckable->ResetAlarms() ; 
-    }  
-  }
-  
-  else if ( !(strcmp(option,"")) ) {
-    TString message = CheckingOperation(); 
-    if ( !message.IsNull() ) { 
-      TDatime dt ;
-      TString time(dt.AsSQLString()) ;
-      message = time + message ; 
-      fCheckable->RaiseAlarm(dt.AsSQLString(), fCheckable->GetName(), GetName(), message.Data()) ; 
-    }
-  }    
-    
-  else if ( !(strcmp(option,"A")) )
-    PrintAlarms() ; 
-  else if ( !(strcmp(option,"D")) )
-    Delete() ;
-}
-
-//____________________________________________________________________________ 
-  void AliPHOSQAChecker::Print()
-{
-  // print the checker and sub-checkers, if any, name.  
-
-  Info("Print", "Checker : %s", GetName()) ;  
-
-}
-
-//____________________________________________________________________________ 
-  void AliPHOSQAChecker::PrintAlarms()
-{
-  // Prints the alarms of all attached checkables
-  Info("PrintAlarms", "Checker name : %s", GetName()) ; 
-  if ( !(fCheckablesList->IsEmpty() ) ) {
-    TIter next( fCheckablesList ) ; 
-    AliPHOSQAVirtualCheckable * checkable ; 
-    while ( (checkable = (AliPHOSQAVirtualCheckable *)next() ) ) 
-      checkable->Alarms() ; 
-  }
-}
-
-//____________________________________________________________________________ 
-  void AliPHOSQAChecker::Status() 
-{
-  // Prints the checkables attached to this checker
-  if ( fCheckablesList->IsEmpty() ) 
-    Info("Status", "No checkables are checked by %s", GetName()) ; 
-  else {
-    Info("Status", "The following checkables are checked by %s", GetName()) ; 
-    TIter next(fCheckablesList) ; 
-    AliPHOSQAVirtualCheckable * checkable ; 
-    while ( (checkable = (AliPHOSQAVirtualCheckable*)next() ) ) 
-      checkable->Print() ; 
-  }
-}
diff --git a/PHOS/AliPHOSQAChecker.h b/PHOS/AliPHOSQAChecker.h
deleted file mode 100644 (file)
index b39c33e..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-#ifndef ALIPHOSQACHECKER_H
-#define ALIPHOSQACHECKER_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-//_________________________________________________________________________
-//  Base class of a checker, to be instanciated as a task container  
-//                  
-//*-- Author: Yves Schutz (SUBATECH)
-
-
-// --- ROOT system ---
-
-class TString ; 
-#include "TTask.h"
-
-// --- Standard library ---
-
-// --- AliRoot header files ---
-
-#include "AliPHOSQAVirtualCheckable.h"
-
-class AliPHOSQAChecker : public TTask {
-
-public:
-
-  AliPHOSQAChecker(){
-    fCheckablesList = 0;
-    fCheckable = 0;
-  } ;          // default ctor (not to be used)
-  AliPHOSQAChecker(const char * name, const char * title) ; // ctor
-  AliPHOSQAChecker(AliPHOSQAChecker& obj) : TTask(obj) {assert(0==1);}
-  virtual ~AliPHOSQAChecker() ; // dtor
-
-  void Alarms() { ExecuteTask("A") ; }  
-  virtual TString CheckingOperation(){ return TString(""); } // where the checking operation must be implemented
-  void CheckIt() ; 
-  void CheckIt(AliPHOSQAVirtualCheckable *ca)  ;
-  void Delete() { delete this ; } // Hara-Kiri
-  TList * GetListOfCheckables() const { return fCheckablesList ; } 
-  virtual void  Exec(Option_t *option) ;   
-  virtual void Print() ;
-  void PrintAlarms() ; 
-  void PrintAll() { ExecuteTask("P") ; } 
-  void Remove(AliPHOSQAChecker * ch) {GetListOfTasks()->Remove(ch); }  
-  void Status() ; 
-  void StatusAll() { ExecuteTask("S") ; } 
-
-  friend void AliPHOSQAVirtualCheckable::AddChecker(AliPHOSQAChecker * ch) ;
-  friend AliPHOSQAVirtualCheckable::AliPHOSQAVirtualCheckable(const char * name) ;
-
-
- private:
-
-  void SetCheckable(AliPHOSQAVirtualCheckable * ca) { fCheckable = ca ; } 
-
- protected:
-
-  void AddCheckable(AliPHOSQAVirtualCheckable *ca) {fCheckablesList->Add(ca) ;}
-    
-  AliPHOSQAVirtualCheckable * fCheckable ; // current checkable 
-  TList * fCheckablesList ;     // list of checkable objects to be checked 
-
-  ClassDef(AliPHOSQAChecker,1)  // description 
-
-};
-
-#endif // ALIPHOSQAChecker_H
diff --git a/PHOS/AliPHOSQAFloatCheckable.cxx b/PHOS/AliPHOSQAFloatCheckable.cxx
deleted file mode 100644 (file)
index 9ad160d..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-//_________________________________________________________________________
-// Class for a QA checkable that is a Float  
-//
-//*-- Author :  Yves Schutz (SUBATECH) 
-//////////////////////////////////////////////////////////////////////////////
-
-// --- ROOT system ---
-
-#include "TClass.h"
-
-// --- Standard library ---
-
-// --- AliRoot header files ---
-
-#include "AliPHOSQAFloatCheckable.h"
-
-ClassImp(AliPHOSQAFloatCheckable)
-
-
-//____________________________________________________________________________ 
-  AliPHOSQAFloatCheckable::AliPHOSQAFloatCheckable(const char * name) : AliPHOSQAVirtualCheckable(name) 
-{
-  //ctor initial value is zero
-  fType = "F" ;
-  fValue = 0. ; 
-}
-
-
-//____________________________________________________________________________ 
-  AliPHOSQAFloatCheckable::~AliPHOSQAFloatCheckable()
-{
- // dtor
-}
-
-
-//____________________________________________________________________________ 
-void AliPHOSQAFloatCheckable::Print() const
-{
-  // Print the chekable name and its value
-  Info("Print", "Checkable-> %s : value = %f", GetName(), fValue) ; 
-}
-
-//____________________________________________________________________________ 
-void AliPHOSQAFloatCheckable::Set(Float_t value)
-{
-  // Changes the value of the checkable and modifies its status
-  fValue = value ; 
-  fChange = kTRUE ; 
-}
-
-//____________________________________________________________________________ 
-void AliPHOSQAFloatCheckable::Update(Float_t value)
-{
-  // Increments the value of the checkable and modifies its status
-  fValue += value ; 
-  fChange = kTRUE ; 
-}
diff --git a/PHOS/AliPHOSQAFloatCheckable.h b/PHOS/AliPHOSQAFloatCheckable.h
deleted file mode 100644 (file)
index 6740690..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-#ifndef ALIPHOSQAFLOATCHECKABLE_H
-#define ALIPHOSQAFLOATCHECKABLE_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-//_________________________________________________________________________
-// Class for a QA checkable that is a Float_t    
-//                  
-//*-- Author: Yves Schutz (SUBATECH)
-
-
-// --- ROOT system ---
-
-// --- Standard library ---
-
-// --- AliRoot header files ---
-
-#include "AliPHOSQAVirtualCheckable.h"
-
-class AliPHOSQAFloatCheckable : public AliPHOSQAVirtualCheckable {
-
-public:
-
-  AliPHOSQAFloatCheckable(){}           // default ctor not to be used
-  AliPHOSQAFloatCheckable(const char * name) ;          // ctor
-  AliPHOSQAFloatCheckable(AliPHOSQAFloatCheckable& obj)
-    : AliPHOSQAVirtualCheckable(obj) {assert(0==1);}
-  virtual ~AliPHOSQAFloatCheckable() ; // dtor
-
-  virtual Float_t GetValue() const { return fValue ; }
-  virtual  void Print() const ; 
-  virtual void Reset() { fValue=0.; fChange=kFALSE ; }
-  void Set(Float_t value) ; 
-  void Update(Float_t value) ;
-
-private:
-  
-  Float_t fValue ; 
-
-  ClassDef(AliPHOSQAFloatCheckable,1)  // description 
-
-};
-
-#endif // ALIPHOSQAFloatCheckable_H
diff --git a/PHOS/AliPHOSQAIntCheckable.cxx b/PHOS/AliPHOSQAIntCheckable.cxx
deleted file mode 100644 (file)
index 2421fe6..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-//_________________________________________________________________________
-// Class for a QA checkable that is an Int  
-//
-//*-- Author :  Yves Schutz (SUBATECH) 
-//////////////////////////////////////////////////////////////////////////////
-
-// --- ROOT system ---
-
-#include "TClass.h"
-
-// --- Standard library ---
-
-// --- AliRoot header files ---
-
-#include "AliPHOSQAIntCheckable.h"
-
-ClassImp(AliPHOSQAIntCheckable)
-
-
-//____________________________________________________________________________ 
-  AliPHOSQAIntCheckable::AliPHOSQAIntCheckable(const char * name) : AliPHOSQAVirtualCheckable(name) 
-{
-  //ctor initial value is zero
-  fType  = "I" ; 
-  fValue = 0 ; 
-}
-
-
-//____________________________________________________________________________ 
-  AliPHOSQAIntCheckable::~AliPHOSQAIntCheckable()
-{
-  // dtor
-}
-
-//____________________________________________________________________________ 
-void AliPHOSQAIntCheckable::Print() const 
-{
-  // Print the chekable name and its value
-  Info("Print", "Checkable-> %s : value = %d", GetName(), fValue) ; 
-}
-
-//____________________________________________________________________________ 
-void AliPHOSQAIntCheckable::Set(Int_t value)
-{
-  // Changes the value of the checkable and modifies its status
-  fValue = value ; 
-  fChange = kTRUE ; 
-}
-
-//____________________________________________________________________________ 
-void AliPHOSQAIntCheckable::Update(Int_t value) 
-{
-  // Increments the value of the checkable and modifies its status
-  fValue += value ; 
-  fChange = kTRUE ; 
-}
diff --git a/PHOS/AliPHOSQAIntCheckable.h b/PHOS/AliPHOSQAIntCheckable.h
deleted file mode 100644 (file)
index c447f20..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-#ifndef ALIPHOSQAINTCHECKABLE_H
-#define ALIPHOSQAINTCHECKABLE_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-//_________________________________________________________________________
-// Class for a QA checkable that is an Int    
-//                  
-//*-- Author: Yves Schutz (SUBATECH)
-
-
-// --- ROOT system ---
-
-// --- Standard library ---
-
-// --- AliRoot header files ---
-
-#include "AliPHOSQAVirtualCheckable.h"
-
-class AliPHOSQAIntCheckable : public AliPHOSQAVirtualCheckable {
-
-public:
-
-  AliPHOSQAIntCheckable(){}           // default ctor not to be used
-  AliPHOSQAIntCheckable(const char * name) ;          // ctor
-  AliPHOSQAIntCheckable(AliPHOSQAIntCheckable& obj)
-    : AliPHOSQAVirtualCheckable(obj) {assert(0==1);}
-  virtual ~AliPHOSQAIntCheckable() ; // dtor
-
-  virtual Float_t GetValue() const { return (Float_t)fValue ; }
-  virtual  void Print() const ; 
-  virtual void Reset() { fValue=0; fChange=kFALSE ; }
-  void Set(Int_t value) ; 
-  void Update(Int_t value) ;  
-
-private:
-  
-  Int_t fValue ; 
-
-  ClassDef(AliPHOSQAIntCheckable,1)  // description 
-
-};
-
-#endif // ALIPHOSQAIntCheckable_H
diff --git a/PHOS/AliPHOSQAMeanChecker.cxx b/PHOS/AliPHOSQAMeanChecker.cxx
deleted file mode 100644 (file)
index c7aeb06..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-//_________________________________________________________________________
-// QA checker that compares a number with an average value plus or minus
-// a width 
-//*-- Author :  Yves Schutz (SUBATECH) 
-//////////////////////////////////////////////////////////////////////////////
-
-// --- ROOT system ---
-
-#include "TDatime.h" 
-#include "TFolder.h" 
-
-// --- Standard library ---
-
-// --- AliRoot header files ---
-
-#include "AliPHOSQAMeanChecker.h" 
-#include "AliPHOSQAAlarm.h"
-
-ClassImp(AliPHOSQAMeanChecker)
-
-
-//____________________________________________________________________________ 
-  AliPHOSQAMeanChecker::AliPHOSQAMeanChecker(const char * name) : AliPHOSQAChecker(name,"") 
-{
-  // ctor
-  SetTitle("checks against average value +/- width") ; 
-}
-
-//____________________________________________________________________________ 
-  AliPHOSQAMeanChecker::AliPHOSQAMeanChecker(const char * name, Float_t mean, Float_t rms) : AliPHOSQAChecker(name,"") 
-{
-  // ctor
-  SetTitle("checks against average value +/- width") ; 
-  fMean = mean ; 
-  fRms  = rms ; 
-}
-
-//____________________________________________________________________________ 
-  AliPHOSQAMeanChecker::~AliPHOSQAMeanChecker()
-{
-  // dtor
-}
-
-//____________________________________________________________________________ 
-TString AliPHOSQAMeanChecker::CheckingOperation()
-{
-  // The user defined checking operation
-  // Return a non empty string in case the check was not satisfied
-
-  TString rv ; 
-
-  Float_t checked = 0. ;  
-  if ( (fCheckable->HasA() == "I") &&  (fCheckable->HasA() == "F") ) {
-    Error("CheckingOperation", "checker %s says you got the wrong checkable %s or the checkable has no value !", GetName(), fCheckable->GetName()) ;  
-  } else {
-    checked = fCheckable->GetValue(); 
-    if (checked < fMean-fRms || checked > fMean+fRms) {
-      char * tempo = new char[110] ;
-      sprintf(tempo, "-->Checkable : %s :: Checker : %s :: Message : %f outside bond %f +/- %f\n", 
-             fCheckable->GetName(), GetName(), checked, fMean, fRms) ; 
-      rv = tempo ;
-      delete [] tempo ; 
-    } 
-  }  
-  return rv ; 
-} 
-
-//____________________________________________________________________________ 
-  void AliPHOSQAMeanChecker::Print()
-{
-  // print the name 
-  
-  Info("Print", "Checker : %s : %s : Mean = %f Rms = %f", GetName(), GetTitle(), fMean, fRms) ;  
-}
diff --git a/PHOS/AliPHOSQAMeanChecker.h b/PHOS/AliPHOSQAMeanChecker.h
deleted file mode 100644 (file)
index 5c455b2..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-#ifndef ALIPHOSQAMEANCHECKER_H
-#define ALIPHOSQAMEANCHECKER_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-//_________________________________________________________________________
-// QA checker that compares a number with an average value plus or minus
-// a width     
-//                  
-//*-- Author: Yves Schutz (SUBATECH)
-
-
-// --- ROOT system ---
-
-#include "TTask.h"
-
-// --- Standard library ---
-
-#include <assert.h>
-
-// --- AliRoot header files ---
-
-#include "AliPHOSQAChecker.h"  
-
-class AliPHOSQAMeanChecker : public AliPHOSQAChecker {
-
- public:
-
-  AliPHOSQAMeanChecker(){} ;          // default ctor (not to be used)
-  AliPHOSQAMeanChecker(const char * name) ; // ctor
-  AliPHOSQAMeanChecker(const char * name, Float_t mean, Float_t rms) ; //ctor
-  virtual ~AliPHOSQAMeanChecker() ; // dtor
-  virtual TString CheckingOperation() ; // where the checking operation is implemented
-  //  virtual void  Exec(Option_t *option);  
-  virtual void Print() ; 
-
-  void SetMean(Float_t value) { fMean = value ; } 
-  void SetRms(Float_t value) { fRms = value ; } 
-  void Set(Float_t mean, Float_t rms) { fMean = mean ; fRms = rms ; } 
-
- private:
-
-  Float_t fMean ; // the value that the checkable will be compared to
-  Float_t fRms ;  // the range around the mean in which the test is OK
-  
-  ClassDef(AliPHOSQAMeanChecker,1)  // description 
-
-};
-
-#endif // ALIPHOSQAMeanChecker_H
diff --git a/PHOS/AliPHOSQAObjectCheckable.cxx b/PHOS/AliPHOSQAObjectCheckable.cxx
deleted file mode 100644 (file)
index 5fc9aca..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-//_________________________________________________________________________
-// Class for a QA checkable that is an Int  
-//
-//*-- Author :  Yves Schutz (SUBATECH) 
-//////////////////////////////////////////////////////////////////////////////
-
-// --- ROOT system ---
-
-#include "TClass.h"
-
-// --- Standard library ---
-
-// --- AliRoot header files ---
-
-#include "AliPHOSQAObjectCheckable.h"
-
-ClassImp(AliPHOSQAObjectCheckable)
-
-
-//____________________________________________________________________________ 
-  AliPHOSQAObjectCheckable::AliPHOSQAObjectCheckable(const char * name) : AliPHOSQAVirtualCheckable(name) 
-{
-  fType   = "O" ; 
-  fObject = 0 ; 
-}
-
-//____________________________________________________________________________ 
-  AliPHOSQAObjectCheckable::~AliPHOSQAObjectCheckable()
-{
-
-}
-
-//____________________________________________________________________________ 
-void AliPHOSQAObjectCheckable::Print() const
-{
-  Info("Print", "Checkable-> %s : value = ", GetName()) ; 
-  if( fObject ) 
-    fObject->Print() ;
-  else
-    Info("Print", "no object specified yet" ) ; 
-}
-
diff --git a/PHOS/AliPHOSQAObjectCheckable.h b/PHOS/AliPHOSQAObjectCheckable.h
deleted file mode 100644 (file)
index fd343aa..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-#ifndef ALIPHOSQAOBJECTCHECKABLE_H
-#define ALIPHOSQAOBJECTCHECKABLE_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-//_________________________________________________________________________
-// Abstact Class for a QA checkable that is a TObject    
-//                  
-//*-- Author: Yves Schutz (SUBATECH)
-
-
-// --- ROOT system ---
-
-// --- Standard library ---
-
-// --- AliRoot header files ---
-
-#include "AliPHOSQAVirtualCheckable.h"
-
-class AliPHOSQAObjectCheckable : public AliPHOSQAVirtualCheckable {
-
-public:
-
-  AliPHOSQAObjectCheckable(){
-    fObject = 0;
-  }           // default ctor not to be used
-  AliPHOSQAObjectCheckable(const char * name) ;          // ctor
-  AliPHOSQAObjectCheckable(AliPHOSQAObjectCheckable& obj) : AliPHOSQAVirtualCheckable(obj)
-  {assert(0==1);}
-  virtual ~AliPHOSQAObjectCheckable() ; // dtor
-
-  virtual TObject * GetObject() const { return fObject ; }
-  virtual Float_t GetValue() const {return 0. ;} 
-  virtual void Print() const ; 
-  virtual void Reset() { fChange=kFALSE ; }
-  virtual void Set(TObject * obj) {fObject = obj ;} 
-  virtual void Update() {} ; 
-
-private:
-  
-  TObject *  fObject ; 
-
-  ClassDef(AliPHOSQAObjectCheckable,1)  // description 
-
-};
-
-#endif // ALIPHOSQAObjectCheckable_H
diff --git a/PHOS/AliPHOSQAVirtualCheckable.cxx b/PHOS/AliPHOSQAVirtualCheckable.cxx
deleted file mode 100644 (file)
index 3984255..0000000
+++ /dev/null
@@ -1,166 +0,0 @@
-/**************************************************************************
- * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- *                                                                        *
- * Author: The ALICE Off-line Project.                                    *
- * Contributors are mentioned in the code where appropriate.              *
- *                                                                        *
- * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
- * without fee, provided that the above copyright notice appears in all   *
- * copies and that both the copyright notice and this permission notice   *
- * appear in the supporting documentation. The authors make no claims     *
- * about the suitability of this software for any purpose. It is          *
- * provided "as is" without express or implied warranty.                  *
- **************************************************************************/
-
-/* $Id$ */
-
-//_________________________________________________________________________
-//  Abstract Class for a QA checkable    
-//
-//*-- Author :  Yves Schutz (SUBATECH) 
-//////////////////////////////////////////////////////////////////////////////
-
-// --- ROOT system ---
-
-#include "TClass.h"
-#include "TFolder.h"
-#include "TROOT.h"
-#include "TTree.h"
-
-
-// --- Standard library ---
-
-// --- AliRoot header files ---
-
-#include "AliPHOSQAVirtualCheckable.h"
-#include "AliPHOSQAChecker.h"
-#include "AliPHOSQAAlarm.h" 
-#include "AliPHOSLoader.h" 
-#include "AliPHOS.h" 
-
-ClassImp(AliPHOSQAVirtualCheckable)
-
-//____________________________________________________________________________ 
-  AliPHOSQAVirtualCheckable::AliPHOSQAVirtualCheckable(const char * name) : TNamed(name, name) 
-{
-  // ctor, creates the task(s)
-  fType   = "" ; 
-  fChange = kFALSE ; 
-  // create a new folder that will hold the list of alarms
-  //  the folder that con tains the alarms for PHOS   
-  
-  TFolder* topfold = AliConfig::Instance()->GetTopFolder(); //get top aliroot folder; skowron
-  TString phosqafn(AliConfig::Instance()->GetQAFolderName()); //get name of QAaut folder relative to top; skowron
-  phosqafn+="/PHOS"; //hard wired string!!! add the detector name to the pathname; skowron 
-  fAlarms = (TFolder*)topfold->FindObjectAny(phosqafn); //get the folder
-// 4 lines above substitute the one below  
-//  fAlarms = (TFolder*)gROOT->FindObjectAny("Folders/Run/Conditions/QA/PHOS");   
-  
-  if(fAlarms == 0x0)  //if there is no folder; skowron
-   {
-     Fatal("AliPHOSQAVirtualCheckable","Can not find folder with Alarms for PHOS"); //abort
-     return;//never reached
-   }
-  
-  //  make it the owner of the objects that it contains
-  fAlarms->SetOwner() ;
-  //  add the alarms list to //Folders/Run/Conditions/QA/PHOS
-  TObjArray * alarms = new TObjArray() ; // deleted when fAlarms is deleted
-  alarms->SetOwner() ; 
-  alarms->SetName(name) ; 
-  fAlarms->Add(alarms) ; 
-  fChecker = 0 ; 
-}
-
-//____________________________________________________________________________ 
-  AliPHOSQAVirtualCheckable::~AliPHOSQAVirtualCheckable()
-{
-  // dtor 
-
-  fAlarms->Clear() ; 
-  //PH  delete fAlarms ; 
-}
-
-//____________________________________________________________________________ 
-  void AliPHOSQAVirtualCheckable::AddChecker(AliPHOSQAChecker * ch)
-{
-  // Associates the checkable object with a task (that can be a list of tasks)
-    ch->AddCheckable(this) ; 
-    if (fChecker)
-      fChecker->Add(ch) ;
-    else 
-      fChecker = ch ; 
-}
-
-//____________________________________________________________________________ 
-  void AliPHOSQAVirtualCheckable::Alarms() const
-{
-  // Prints all the alarms 
-  TObjArray * alarms = GetAlarms() ; 
-  if (alarms->IsEmpty() )
-    Info("Alarms", "No alarms raised for checkable %s", GetName()) ; 
-  else {
-    TIter next(alarms);
-    AliPHOSQAAlarm * alarm ; 
-    while ( (alarm = (AliPHOSQAAlarm*)next()) ) 
-      alarm->Print() ; 
-  }
-}
-
-//____________________________________________________________________________ 
-void AliPHOSQAVirtualCheckable::CheckMe() 
-{
-  // All the attached checkers will check this checkable
-
-  fChecker->CheckIt(this) ;
-}
-
-//____________________________________________________________________________ 
-void AliPHOSQAVirtualCheckable::RaiseAlarm(const char * time, const char * checked, const char * checker, const char * message)
-{
-  // Raise an alarm and store it in the appropriate folder : //Folders/Run/Conditions/QA/PHOS..
-  // Info("RaiseAlarm", "%s", message) ; 
-  AliPHOSQAAlarm * alarm = new AliPHOSQAAlarm(time, checked, checker, message)  ;   
-  GetAlarms()->Add(alarm) ; 
-}
-
-//____________________________________________________________________________ 
-  void AliPHOSQAVirtualCheckable::RemoveChecker(AliPHOSQAChecker *ch)
-{
-  // Remove the specified checker from the list of tasks
-  // and the present checkable from the list of checkables of the specified checker
-  fChecker->Remove(ch) ;
-  fChecker->GetListOfCheckables()->Remove(this) ;
-  
-}
-
-
-//____________________________________________________________________________ 
-  void AliPHOSQAVirtualCheckable::ResetAlarms()
-{
-  // resets the list of alarms (delete the alarms from the list)
-  TObjArray * alarms = GetAlarms() ; 
-  if (alarms->IsEmpty() )
-    Info("ResetAlarms", "No alarms raised for checkable %s", GetName()) ; 
-  else {
-    alarms->Delete() ; 
-    Info("ResetAlarms", " Reset alarms for checkable %s", GetName()) ; 
-  }
-}
-
-//____________________________________________________________________________ 
-  void AliPHOSQAVirtualCheckable::Status() const  
-{
-  // Tells which checkers are attached to this checkable
-  TList * list = fChecker->GetListOfTasks(); 
-  if (list->IsEmpty() )
-    Info("Status", "No checkers are in use for %s", GetName()) ;
-  else {    
-    Info("Status", "The following checkers are in use for %s", GetName()) ;
-    TIter next(list) ; 
-    AliPHOSQAChecker * checker ; 
-    while ( (checker = (AliPHOSQAChecker*)next() ) ) 
-      checker->Print() ; 
-  }
-}
diff --git a/PHOS/AliPHOSQAVirtualCheckable.h b/PHOS/AliPHOSQAVirtualCheckable.h
deleted file mode 100644 (file)
index 948c426..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-#ifndef ALIPHOSQAVIRTUALCHECKABLE_H
-#define ALIPHOSQAVIRTUALCHECKABLE_H
-/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
- * See cxx source for full Copyright notice                               */
-
-/* $Id$ */
-
-//_________________________________________________________________________
-//  Abstract Class for a QA checkable    
-//                  
-//*-- Author: Yves Schutz (SUBATECH)
-
-
-// --- ROOT system ---
-
-#include "TFolder.h" 
-#include "TNamed.h" 
-#include "TTask.h" 
-
-// --- Standard library ---
-
-#include <assert.h>
-
-// --- AliRoot header files ---
-
-class AliPHOSQAChecker ;
-class AliPHOSQAAlarm ; 
-
-class AliPHOSQAVirtualCheckable : public TNamed {
-
-public:
-
-  AliPHOSQAVirtualCheckable(){
-    fChecker = 0 ; 
-    fAlarms = 0;
-  }           // default ctor not to be used
-  AliPHOSQAVirtualCheckable(const char * name) ;          // ctor
-  AliPHOSQAVirtualCheckable(AliPHOSQAVirtualCheckable& obj) : TNamed(obj) {assert(0==1);}
-  virtual ~AliPHOSQAVirtualCheckable() ; // dtor
-
-  void AddChecker(AliPHOSQAChecker * ch) ; 
-  void Alarms() const ; 
-  void CheckMe() ;
-  virtual Bool_t HasChanged() const { return fChange ; } 
-  TObjArray * GetAlarms() const { return  (TObjArray*)fAlarms->FindObject(GetName()) ; }  
-  virtual Float_t GetValue() const = 0 ; 
-  TString HasA() const { return fType ; }
-  virtual void Print() const = 0 ; 
-  void RaiseAlarm(const char * time, const char * checked, const char * checker, const char * message) ; 
-  void RemoveChecker(AliPHOSQAChecker *ch) ; 
-  virtual void Reset() = 0 ;
-  void ResetAlarms() ;
-  void Status() const  ; 
-
-protected:
-  
-  AliPHOSQAChecker * fChecker ; // the task(s) that is going to act on the checkable
-  TString fType ;               // I, F, or O 
-  TFolder * fAlarms ;           // folder that contains the PHOS alarms  
-  Bool_t fChange ;              // tells if the checkable has been updated
-
-  ClassDef(AliPHOSQAVirtualCheckable,1)  // description 
-
-};
-
-#endif // ALIPHOSQAVirtualCheckable_H
index 820baa92e88dbfddb024006ad119dae86590065a..3aea965ae92fb54b7a105273f574464244f4035c 100644 (file)
@@ -37,9 +37,6 @@
 #include "AliPHOSCPVDigit.h"
 #include "AliPHOSGeometry.h"
 #include "AliPHOSHit.h"
-#include "AliPHOSQAFloatCheckable.h"
-#include "AliPHOSQAIntCheckable.h"
-#include "AliPHOSQAMeanChecker.h"
 #include "AliPHOSv1.h"
 #include "AliRun.h"
 #include "AliMC.h"
@@ -50,11 +47,6 @@ ClassImp(AliPHOSv1)
 AliPHOSv1::AliPHOSv1():
 AliPHOSv0()
 {
-  // default ctor: initialze data memebers
-  fQAHitsMul  = 0 ;
-  fQAHitsMulB = 0 ; 
-  fQATotEner  = 0 ; 
-  fQATotEnerB = 0 ; 
 
   fLightYieldMean         = 0. ;         
   fIntrinsicPINEfficiency = 0. ; 
@@ -110,40 +102,7 @@ AliPHOSv1::AliPHOSv1(const char *name, const char *title):
   fElectronsPerGeV        = 2.77e+8 ;
   fAPDGain                = 300. ;
   fLightFactor            = fLightYieldMean * fIntrinsicPINEfficiency ; 
-  fAPDFactor              = (fRecalibrationFactor/100.) * fAPDGain ; 
-
-
-  Int_t nb   = GetGeometry()->GetNModules() ; 
-  
-  // create checkables 
-  fQAHitsMul   = new AliPHOSQAIntCheckable("HitsM") ; 
-  fQATotEner   = new AliPHOSQAFloatCheckable("TotEn") ; 
-  fQAHitsMulB  = new TClonesArray("AliPHOSQAIntCheckable",nb) ;
-  fQAHitsMulB->SetOwner() ; 
-  fQATotEnerB  = new TClonesArray("AliPHOSQAFloatCheckable", nb); 
-  fQATotEnerB->SetOwner() ; 
-  char tempo[20]  ; 
-  Int_t i ; 
-  for ( i = 0 ; i < nb ; i++ ) {
-    sprintf(tempo, "HitsMB%d", i+1) ; 
-    new( (*fQAHitsMulB)[i]) AliPHOSQAIntCheckable(tempo) ; 
-    sprintf(tempo, "TotEnB%d", i+1) ; 
-    new( (*fQATotEnerB)[i] ) AliPHOSQAFloatCheckable(tempo) ;
-  }
-
-  AliPHOSQAMeanChecker * hmc  = new AliPHOSQAMeanChecker("HitsMul", 100. ,25.) ; 
-  AliPHOSQAMeanChecker * emc  = new AliPHOSQAMeanChecker("TotEner", 10. ,5.) ; 
-  AliPHOSQAMeanChecker * bhmc = new AliPHOSQAMeanChecker("HitsMulB", 100. ,5.) ; 
-  AliPHOSQAMeanChecker * bemc = new AliPHOSQAMeanChecker("TotEnerB", 2. ,.5) ; 
-
-  // associate checkables and checkers 
-  fQAHitsMul->AddChecker(hmc) ; 
-  fQATotEner->AddChecker(emc) ; 
-  for ( i = 0 ; i < nb ; i++ ) {
-    (static_cast<AliPHOSQAIntCheckable*>((*fQAHitsMulB)[i]))->AddChecker(bhmc) ;
-    (static_cast<AliPHOSQAFloatCheckable*>((*fQATotEnerB)[i]))->AddChecker(bemc) ; 
-  }
-
+  fAPDFactor              = (fRecalibrationFactor/100.) * fAPDGain ;   
 }
 
 //____________________________________________________________________________
@@ -154,18 +113,7 @@ AliPHOSv1::~AliPHOSv1()
     fHits->Delete() ; 
     delete fHits ;
     fHits = 0 ; 
-  }
-  
-  if ( fQAHitsMulB ) {
-    fQAHitsMulB->Delete() ;
-    delete fQAHitsMulB ; 
-  }
-
-  if ( fQATotEnerB ) {
-    fQATotEnerB->Delete() ;
-    delete fQATotEnerB ; 
-  }
+ }
 }
 
 //____________________________________________________________________________
@@ -212,14 +160,10 @@ void AliPHOSv1::AddHit(Int_t shunt, Int_t primary, Int_t Id, Float_t * hits)
     // get the block Id number
     Int_t relid[4] ;
     geom->AbsToRelNumbering(Id, relid) ;
-    // and fill the relevant QA checkable (only if in PbW04)
-    if ( relid[1] == 0 ) {
-      fQAHitsMul->Update(1) ; 
-      (static_cast<AliPHOSQAIntCheckable*>((*fQAHitsMulB)[relid[0]-1]))->Update(1) ;
-    } 
+
     fNhits++ ;
   }
-
+  
   delete newHit;
 }
 
@@ -229,8 +173,6 @@ void AliPHOSv1::FinishPrimary()
   // called at the end of each track (primary) by AliRun
   // hits are reset for each new track
   // accumulate the total hit-multiplicity
-//   if ( fQAHitsMul ) 
-//     fQAHitsMul->Update( fHits->GetEntriesFast() ) ; 
 
 }
 
@@ -241,39 +183,6 @@ void AliPHOSv1::FinishEvent()
   // accumulate the hit-multiplicity and total energy per block 
   // if the values have been updated check it
   
-
-  if ( fQATotEner ) { 
-    if ( fQATotEner->HasChanged() ) {
-      fQATotEner->CheckMe() ; 
-      fQATotEner->Reset() ; 
-    }
-  }
-  
-  Int_t i ; 
-  if ( fQAHitsMulB && fQATotEnerB ) {
-    for (i = 0 ; i < GetGeometry()->GetNModules() ; i++) {
-      AliPHOSQAIntCheckable * ci = static_cast<AliPHOSQAIntCheckable*>((*fQAHitsMulB)[i]) ;  
-      AliPHOSQAFloatCheckable* cf = static_cast<AliPHOSQAFloatCheckable*>((*fQATotEnerB)[i]) ; 
-      if ( ci->HasChanged() ) { 
-       ci->CheckMe() ;  
-       ci->Reset() ;
-      } 
-      if ( cf->HasChanged() ) { 
-       cf->CheckMe() ; 
-       cf->Reset() ;
-      }
-    } 
-  }
-  
-  // check the total multiplicity 
-  
-  if ( fQAHitsMul ) {
-    if ( fQAHitsMul->HasChanged() ) { 
-      fQAHitsMul->CheckMe() ; 
-      fQAHitsMul->Reset() ; 
-    }
-  } 
-
   AliDetector::FinishEvent(); 
 }
 //____________________________________________________________________________
@@ -478,11 +387,7 @@ void AliPHOSv1::StepManager(void)
       // add current hit to the hit list
       // Info("StepManager","%d %d", primary, tracknumber) ; 
       AddHit(fIshunt, primary, absid, xyzte);
-      
-      // fill the relevant QA Checkables
-      fQATotEner->Update( xyzte[4] ) ;                                             // total energy in PHOS
-      (static_cast<AliPHOSQAFloatCheckable*>((*fQATotEnerB)[moduleNumber-1]))->Update( xyzte[4] ) ; // energy in this block  
-      
+        
     } // there is deposited energy
   } // we are inside a PHOS Xtal
   
index e59378b7621e914b42d348f3fa283625a4626afe..a847c82f6d01c66c545251d49e4527ec1d2a2e90 100644 (file)
@@ -16,8 +16,6 @@ class TFile;
 
 // --- AliRoot header files ---
 #include "AliPHOSv0.h"
-class AliPHOSQAIntCheckable ; 
-class AliPHOSQAFloatCheckable ; 
 
 class AliPHOSv1 : public AliPHOSv0 {
 
@@ -74,11 +72,6 @@ public:
 
 protected:
 
-  AliPHOSQAIntCheckable   * fQAHitsMul ;  // QA Hits Multiplicity checkable
-  TClonesArray * fQAHitsMulB ;            // QA Hits Multiplicity / Block checkable
-  AliPHOSQAFloatCheckable * fQATotEner ;  // QA Total Energy checkable
-  TClonesArray * fQATotEnerB ;            // QA Total Energy / Block checkable
-
   Float_t fLightYieldMean ;         // Mean lightyield in the PbOW4 xtal per GeV (Poisson distribution)
   Float_t fIntrinsicPINEfficiency ; // Photo efficiency of the PIN diode   
   Float_t fLightYieldAttenuation ;  // Attenuation of the light through the crystal
@@ -88,7 +81,7 @@ protected:
   Float_t fLightFactor ;            //! a calculated factor
   Float_t fAPDFactor ;              //! a calculated factor
 
-  ClassDef(AliPHOSv1,1)  // Implementation of PHOS manager class for layout EMC+PPSD
+  ClassDef(AliPHOSv1,2)  // Implementation of PHOS manager class for layout EMC+PPSD
 
 };