]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - THbtp/AliGenHBTprocessor.cxx
Modified plots and made jet finder use SDigits
[u/mrichter/AliRoot.git] / THbtp / AliGenHBTprocessor.cxx
index 2ee260d39663cd6de4ade29da1ec70e4effb72b2..503bd98b39135b9520256e95ef808814da9acdf1 100644 (file)
@@ -95,7 +95,7 @@ static TRandom* sRandom;
 AliGenCocktailAfterBurner*  GetGenerator();
 /*******************************************************************/
 AliGenHBTprocessor::AliGenHBTprocessor(const AliGenHBTprocessor& in):
- fEventMerge(1)
 AliGenerator(in), fEventMerge(1)
 {
 //copy contructor
   // AliGenHBTprocessor::AliGenHBTprocessor();
@@ -352,9 +352,8 @@ Int_t AliGenHBTprocessor::GetHbtPStatusCode(Int_t part) const
     Error("GetHbtPStatusCode","GetTrackEventIndex returned error");
     return 0;
   }
else return fHbtPStatCodes[ev][idx];
+ return fHbtPStatCodes[ev][idx];
   
- return 0;
 }
 
 /*******************************************************************/
@@ -668,7 +667,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)
+void AliGenHBTprocessor::SetMomentumRange(Float_t /*pmin*/, Float_t /*pmax*/)
  {
  //default pmin=0, pmax=0
  //Do not use this method!
@@ -923,12 +922,8 @@ TParticle* AliGenHBTprocessor::GetTrack(Int_t n)
     Error("GetTrack","GetTrackEventIndex returned error");
     return 0x0;
   }
- else
-  {
-    if (fgDebug > 5) Info("GetTrack","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 
-  }                                               //GetTrackEventIndex would have returned error
- return 0x0;  
+ if (fgDebug > 5) Info("GetTrack","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 
 }
 /*******************************************************************/