]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Streamline the different messages output by the code using the AliLog
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 14 Jun 2005 12:26:20 +0000 (12:26 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 14 Jun 2005 12:26:20 +0000 (12:26 +0000)
THbtp/AliGenHBTprocessor.cxx
THbtp/AliGenHBTprocessor.h

index bfd17c7cf9b01058f4571cbdc46b3aeea4f94621..f631310bd4d86bd2214405d975373dbb4be4d978 100644 (file)
@@ -77,6 +77,7 @@
 
 #include "AliStack.h"
 #include "AliGenCocktailAfterBurner.h"
+#include "AliLog.h"
 
 
 
@@ -665,7 +666,7 @@ void AliGenHBTprocessor::SetPzRange(Float_t pzmin, Float_t pzmax)
    fPzMax =pzmax; 
    fHBTprocessor->SetPzRange(pzmin,pzmax);
  }
-void AliGenHBTprocessor::SetMomentumRange(Float_t /*pmin*/, Float_t /*pmax*/) const
+void AliGenHBTprocessor::SetMomentumRange(Float_t /*pmin*/, Float_t /*pmax*/)
  {
  //default pmin=0, pmax=0
  //Do not use this method!
@@ -868,9 +869,7 @@ void AliGenHBTprocessor::SetActiveEventNumber(Int_t n)
 {
 //sets the active event
  fActiveStack =  n*fEventMerge;
- if (GetDebug())
-  Info("SetActiveEventNumber","Settimg active event %d passed %d",
-        fActiveStack,n);
+ AliDebug(1,Form("Settimg active event %d passed %d",fActiveStack,n));
 }
 /*******************************************************************/
 
@@ -908,7 +907,7 @@ void AliGenHBTprocessor::SetNEventsToMerge(Int_t nev)
 TParticle* AliGenHBTprocessor::GetTrack(Int_t n)
 { 
 //returns track that hbtp thinks is n in active event
-  if (GetDebug() > 5) Info("GetTrack","n = %d",n);
+  AliDebug(5,Form("n = %d",n));
   AliGenerator* g = gAlice->Generator();
   AliGenCocktailAfterBurner* cab = (g)?dynamic_cast<AliGenCocktailAfterBurner*>(g):0x0;
   if (cab == 0x0)
@@ -919,13 +918,13 @@ TParticle* AliGenHBTprocessor::GetTrack(Int_t n)
 
  Int_t ev, idx;
  GetTrackEventIndex(n,ev,idx);
if (GetDebug() > 5) Info("GetTrack","Event = %d Particle = %d",ev,idx);
AliDebug(5,Form("Event = %d Particle = %d",ev,idx));
  if ( (ev<0) || (idx<0) )
   {
     Error("GetTrack","GetTrackEventIndex returned error");
     return 0x0;
   }
if (GetDebug() > 5) Info("GetTrack","Number of Tracks in Event(%d) = %d",ev,cab->GetStack(ev)->GetNprimary());
AliDebug(5,Form("Number of Tracks in Event(%d) = %d",ev,cab->GetStack(ev)->GetNprimary()));
  return cab->GetStack(ev)->Particle(idx);//safe - in case stack does not exist 
 }
 /*******************************************************************/
@@ -953,7 +952,7 @@ void AliGenHBTprocessor::GetTrackEventIndex(Int_t n, Int_t &evno, Int_t &index)
      }
 
     Int_t ntracks = stack->GetNprimary();
-    if (GetDebug() > 10) Info("GetTrackEventIndex","Event %d has %d tracks. n = %d",i,ntracks,n);
+    AliDebug(10,Form("Event %d has %d tracks. n = %d",i,ntracks,n));
     
     if ( ntracks > n) 
      {
@@ -1169,15 +1168,15 @@ extern "C" void type_ofCall  alihbtp_initialize()
 
 extern "C" void type_ofCall alihbtp_getnumberevents(Int_t &nev)
  {
-  //passes number of events to the fortran 
+   //passes number of events to the fortran 
    if(AliGenHBTprocessor::GetDebug()) 
-    ::Info("AliGenHBTprocessor.cxx: alihbtp_getnumberevents","(%d) ....",nev);
+    AliInfoGeneral("alihbtp_getnumberevents",Form("(%d) ....",nev));
 
    AliGenHBTprocessor* gen = GetAliGenHBTprocessor();//we dont check because it is done in function
    nev = gen->GetNumberOfEvents();
     
    if(AliGenHBTprocessor::GetDebug()>5) 
-    ::Info("AliGenHBTprocessor.cxx: alihbtp_getnumberevents","EXITED N Ev = %d",nev);
+    AliInfoGeneral("alihbtp_getnumberevents",Form("EXITED N Ev = %d",nev));
  }
 
 /*******************************************************************/
index d03f7f68672b2cc20eb9d1501b71c5a70ac59ece..2ab39eab6cde7f12f5f9598fca917e19f34e3793 100644 (file)
@@ -70,7 +70,7 @@ class AliGenHBTprocessor : public AliGenerator
     virtual void SetSwitchCoulomb(Int_t scol = 2);
     virtual void SetSwitchFermiBose(Int_t sfb = 1);
     
-    virtual void SetMomentumRange(Float_t pmin=0, Float_t pmax=0) const; //Dummy method
+    virtual void SetMomentumRange(Float_t pmin=0, Float_t pmax=0); //Dummy method
     virtual void SetPtRange(Float_t ptmin = 0.1, Float_t ptmax = 0.98);
     virtual void SetPxRange(Float_t pxmin = -1.0, Float_t pxmax = 1.0);
     virtual void SetPyRange(Float_t pymin = -1.0, Float_t pymax = 1.0);