]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Debug information printout corrected
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Aug 2003 08:19:22 +0000 (08:19 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Aug 2003 08:19:22 +0000 (08:19 +0000)
HBTAN/AliHBTFunction.cxx
HBTAN/AliHBTReaderInternal.cxx

index 96c80073cb6ce6f174469318eb729965510564ff..3abac754ed80eae59ba7163019c4b44b63d3f4eb 100644 (file)
@@ -97,7 +97,7 @@ TH1* AliHBTFunction::GetRatio(Double_t normfactor)
  {
  //returns ratio of numerator and denominator
  //
-   if (gDebug>0) Info("GetRatio","Norm. Factor is %f for %s",normfactor,GetName());
+   if (AliHBTParticle::GetDebug()>0) Info("GetRatio","Norm. Factor is %f for %s",normfactor,GetName());
    
    if (normfactor == 0.0)
     {
@@ -317,7 +317,7 @@ Double_t AliHBTFunction1D::Scale(TH1D* num,TH1D* den)
  //Calculates the factor that should be used to scale 
  //quatience of num and den to 1 at tail
  
-  if (gDebug>0) Info("Scale","Enetered Scale()");
+  if (AliHBTParticle::GetDebug()>0) Info("Scale","Enetered Scale()");
   if(!num) 
    {
      Error("Scale","No numerator");
@@ -340,7 +340,7 @@ Double_t AliHBTFunction1D::Scale(TH1D* num,TH1D* den)
     Error("Scale","Number of bins for scaling is bigger thnan number of bins in histograms");
     return 0.0;
    }
-  if (gDebug>0) Info("Scale","No errors detected");
+  if (AliHBTParticle::GetDebug()>0) Info("Scale","No errors detected");
 
   Double_t ratio;
   Double_t sum = 0;
@@ -358,12 +358,12 @@ Double_t AliHBTFunction1D::Scale(TH1D* num,TH1D* den)
      }
    }
   
-  if(gDebug > 0) Info("Scale","sum=%f fNBinsToScale=%d n=%d",sum,fNBinsToScale,n);
+  if(AliHBTParticle::GetDebug() > 0) Info("Scale","sum=%f fNBinsToScale=%d n=%d",sum,fNBinsToScale,n);
   
   if (n == 0) return 0.0;
   Double_t ret = sum/((Double_t)n);
 
-  if(gDebug > 0) Info("Scale","returning %f",ret);
+  if(AliHBTParticle::GetDebug() > 0) Info("Scale","returning %f",ret);
   return ret;
 } 
 
@@ -502,7 +502,7 @@ Double_t AliHBTFunction2D::Scale()
 // Calculates the factor that should be used to scale 
 // quatience of fNumerator and fDenominator to 1 at 
 // given region
-  if (gDebug>0) Info("Scale","Enetered Scale()");
+  if (AliHBTParticle::GetDebug()>0) Info("Scale","Enetered Scale()");
   if(!fNumerator) 
    {
      Error("Scale","No numerator");
@@ -533,7 +533,7 @@ Double_t AliHBTFunction2D::Scale()
     return 0.0;
    }
 
-  if (gDebug>0) Info("Scale","No errors detected");
+  if (AliHBTParticle::GetDebug()>0) Info("Scale","No errors detected");
 
   Int_t offsetX = nbinsX - fNBinsToScaleX - 1; //bin that we start loop over bins in axis X
   Int_t offsetY = nbinsY - fNBinsToScaleY - 1; //bin that we start loop over bins in axis X
@@ -553,12 +553,12 @@ Double_t AliHBTFunction2D::Scale()
        }
      }
   
-  if(gDebug > 0) Info("Scale","sum=%f fNBinsToScaleX=%d fNBinsToScaleY=%d n=%d",sum,fNBinsToScaleX,fNBinsToScaleY,n);
+  if(AliHBTParticle::GetDebug() > 0) Info("Scale","sum=%f fNBinsToScaleX=%d fNBinsToScaleY=%d n=%d",sum,fNBinsToScaleX,fNBinsToScaleY,n);
   
   if (n == 0) return 0.0;
   Double_t ret = sum/((Double_t)n);
 
-  if(gDebug > 0) Info("Scale","returning %f",ret);
+  if(AliHBTParticle::GetDebug() > 0) Info("Scale","returning %f",ret);
   return ret;
 } 
 
@@ -709,7 +709,7 @@ Double_t AliHBTFunction3D::Scale()
   // Calculates the factor that should be used to scale 
   // quatience of fNumerator and fDenominator to 1 at 
   // given volume
-  if (gDebug>0) Info("Scale","Enetered Scale()");
+  if (AliHBTParticle::GetDebug()>0) Info("Scale","Enetered Scale()");
   if(!fNumerator) 
    {
      Error("Scale","No numerator");
@@ -747,7 +747,7 @@ Double_t AliHBTFunction3D::Scale()
     return 0.0;
    }
 
-  if (gDebug>0) Info("Scale","No errors detected");
+  if (AliHBTParticle::GetDebug()>0) Info("Scale","No errors detected");
 
   Int_t offsetX = nbinsX - fNBinsToScaleX - 1; //bin that we start loop over bins in axis X
   Int_t offsetY = nbinsY - fNBinsToScaleY - 1; //bin that we start loop over bins in axis Y
@@ -769,14 +769,14 @@ Double_t AliHBTFunction3D::Scale()
          }
        }
   
-  if(gDebug > 0) 
+  if(AliHBTParticle::GetDebug() > 0) 
     Info("Scale","sum=%f fNBinsToScaleX=%d fNBinsToScaleY=%d fNBinsToScaleZ=%d n=%d",
           sum,fNBinsToScaleX,fNBinsToScaleY,fNBinsToScaleZ,n);
   
   if (n == 0) return 0.0;
   Double_t ret = sum/((Double_t)n);
 
-  if(gDebug > 0) Info("Scale","returning %f",ret);
+  if(AliHBTParticle::GetDebug() > 0) Info("Scale","returning %f",ret);
   return ret;
 } 
 /******************************************************************/
index 5383b88b1931648cb0819202bd7c56536aa08ed6..a2d960d1b179d70feb427a9f8048a45e9eaa018c 100644 (file)
@@ -347,7 +347,7 @@ Int_t AliHBTReaderInternal::OpenNextFile()
 
    Info("OpenNextFile","________________________________________________________");
    Info("OpenNextFile","Found %d event(s) in directory %s",
-         (Int_t)fTree->GetEntries(),GetDirName(fCurrentEvent).Data());
+         (Int_t)fTree->GetEntries(),GetDirName(fCurrentDir).Data());
    
    fCurrentEvent = 0;