]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVGEN/AliGenPythia.cxx
Have to create Digits trees and branches by hand in the case of multiple event files.
[u/mrichter/AliRoot.git] / EVGEN / AliGenPythia.cxx
index d20692d4890b5c5e45cb2b3dd31e40ea09052b60..83b4e18d316998223f06c044d8fa5e2fba59f9eb 100644 (file)
 
 /*
 $Log$
+Revision 1.32  2001/01/26 19:55:51  hristov
+Major upgrade of AliRoot code
+
+Revision 1.31  2001/01/17 10:54:31  hristov
+Better protection against FPE
+
 Revision 1.30  2000/12/18 08:55:35  morsch
 Make AliPythia dependent generartors work with new scheme of random number generation
 
@@ -471,11 +477,10 @@ void AliGenPythia::AdjustWeights()
 {
 // Adjust the weights after generation of all events
 //
-    TClonesArray *partArray = gAlice->Particles();
     TParticle *part;
     Int_t ntrack=gAlice->GetNtrack();
     for (Int_t i=0; i<ntrack; i++) {
-       part= (TParticle*) partArray->UncheckedAt(i);
+       part= gAlice->Particle(i);
        part->SetWeight(part->GetWeight()*fKineBias);
     }
 }
@@ -530,6 +535,7 @@ AliGenPythia& AliGenPythia::operator=(const  AliGenPythia& rhs)
 
 
 
+#ifdef never
 void AliGenPythia::Streamer(TBuffer &R__b)
 {
    // Stream an object of class AliGenPythia.
@@ -568,5 +574,5 @@ void AliGenPythia::Streamer(TBuffer &R__b)
       //     fDecayer->Streamer(R__b);
    }
 }
-
+#endif