]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PYTHIA6/AliGenPythia.cxx
bugfix: boundery check for static hit array
[u/mrichter/AliRoot.git] / PYTHIA6 / AliGenPythia.cxx
index d8238ce621d391878dd4dd68a1dead3cc2983b2f..649e123b03023e6ef1001b6e09582b5ecc154cd0 100644 (file)
@@ -892,7 +892,7 @@ Int_t  AliGenPythia::GenerateMB()
         if(iparticle->GetStatusCode() == 1 
            && iparticle->GetPdgCode() == pdg   
            && iparticle->Pt() > fPhotonMinPt    
-           && eta > fPHOSEta){                 
+           && eta < fPHOSEta){                 
            
            // first check if the photon is in PHOS phi
            if(IsInPHOS(phi,eta)){ 
@@ -1153,6 +1153,7 @@ void AliGenPythia::MakeHeader()
 //  Pass header
 //
     AddHeader(fHeader);
+    fHeader = 0x0;
 }
 
 Bool_t AliGenPythia::CheckTrigger(TParticle* jet1, TParticle* jet2)