]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Put a Warning under the control of gDebug
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Feb 2004 12:34:28 +0000 (12:34 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 2 Feb 2004 12:34:28 +0000 (12:34 +0000)
EMCAL/AliEMCALGetter.cxx

index 18cc5775d975c4ce6ede428862e945d6b4d50158..7458ea79ff58854c4d233e228c307fe479996d5c 100644 (file)
@@ -317,7 +317,7 @@ AliEMCALGetter * AliEMCALGetter::Instance(const char* alirunFileName, const char
       fgObjGetter = new AliEMCALGetter(alirunFileName, version, openingOption) ;      
   }
   if (!fgObjGetter) 
-    ::Error("Instance", "Failed to create the EMCAL Getter object") ;
+    ::Error("AliEMCALGetter::Instance", "Failed to create the EMCAL Getter object") ;
   else 
     if (fgDebug)
       Print() ;
@@ -330,8 +330,8 @@ AliEMCALGetter *  AliEMCALGetter::Instance()
 {
   // Returns the pointer of the unique instance already defined
   
-  if(!fgObjGetter)
-     ::Error("Instance", "Getter not initialized") ;
+  if(!fgObjGetter && fgDebug)
+     ::Warning("AliEMCALGetter::Instance", "Getter not initialized") ;
 
    return fgObjGetter ;