Added Debug options to control verbosity
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 May 2004 12:35:27 +0000 (12:35 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 11 May 2004 12:35:27 +0000 (12:35 +0000)
PHOS/AliPHOSReconstructor.cxx
PHOS/AliPHOSReconstructor.h

index a8595d1..92c4af3 100644 (file)
 #include "AliPHOSPIDv1.h"
 #include "AliPHOSGetter.h"
 
-
 ClassImp(AliPHOSReconstructor)
 
+Bool_t AliPHOSReconstructor::fgDebug = kFALSE ; 
+
 //____________________________________________________________________________
-  AliPHOSReconstructor::AliPHOSReconstructor() : fDebug(kFALSE) 
+  AliPHOSReconstructor::AliPHOSReconstructor() 
 {
   // ctor
 
index 7e4296e..35562fd 100644 (file)
@@ -38,8 +38,9 @@ public:
     Fatal("cpy ctor", "not implemented") ;
   }
   ~AliPHOSReconstructor() ; //dtor            
-
-  Bool_t                     Debug() const { return fDebug ; }
+  static void                SetDebug()   { fgDebug = kTRUE ; }
+  static void                ResetDebug() { fgDebug = kFALSE ; }
+  static Bool_t              Debug() { return fgDebug ; }
   virtual void               FillESD(AliRunLoader* runLoader, AliESD* esd) const ;
   virtual void               Reconstruct(AliRunLoader* runLoader) const ;
 
@@ -51,7 +52,7 @@ public:
   
 private:
   
-  Bool_t fDebug; //! verbosity controller
+  static Bool_t fgDebug ; //! verbosity controller
 
   ClassDef(AliPHOSReconstructor,2)  // Reconstruction algorithm class (Base Class)