]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TMEVSIM/TMevSim.cxx
Transition to NewIO
[u/mrichter/AliRoot.git] / TMEVSIM / TMevSim.cxx
index 5903e097afb2f089f442143cf8af2d82c195a8b7..a961b3ff3c6d2cddc12193cce78b7827bf68f56a 100644 (file)
@@ -13,9 +13,7 @@
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/*
-$Log$
-*/
+/* $Id$ */
 
 ////////////////////////////////////////////////////////////////////////////
 // 
@@ -395,8 +393,7 @@ $Log$
 
 
 
-#include <fstream>
-#include <iomanip.h>
+#include <Riostream.h>
 #include "TMevSim.h"
 
 #include "MevSimCommon.h"
@@ -449,6 +446,7 @@ TMevSim::TMevSim(Int_t nEvents, Int_t modelType, Int_t reacPlaneCntrl,
    fNScanPts = 100;
    firand = irand;
    fParticleTypeParameters = new TClonesArray("TMevSimPartTypeParams",10);
+   fNPDGCodes = 0;
    DefineParticles();
 }
 //______________________________________________________________________________
@@ -555,9 +553,10 @@ void        TMevSim::Initialize() {
 
      for (Int_t cnt1 = 0; cnt1 < NFLOWTERMS; cnt1++) {
        *file << "  ";
-       for (Int_t cnt2 = 0; cnt2 < 4; cnt2++) *file << params->GetVnMeanComponent(cnt1, cnt2) << "  ";
+       Int_t cnt2;
+       for (cnt2 = 0; cnt2 < 4; cnt2++) *file << params->GetVnMeanComponent(cnt1, cnt2) << "  ";
        *file << "  \n  ";
-       for (Int_t cnt2 = 0; cnt2 < 4; cnt2++) *file << params->GetVnStDevComponent(cnt1, cnt2) << "  ";
+       for (cnt2 = 0; cnt2 < 4; cnt2++) *file << params->GetVnStDevComponent(cnt1, cnt2) << "  ";
        *file << "  \n";
      }
    }