Avoid warning.
[u/mrichter/AliRoot.git] / FASTSIM / readPrimaries.C
index a5641fbe3316a2b6f0aebe3081904579cae76baa..d790290c1846907db4ec2778155a3ccdfa9c0e69 100644 (file)
@@ -1,4 +1,4 @@
-void TestPrimaries(Int_t evNumber1=0, Int_t evNumber2=0) 
+void readPrimaries(Int_t evNumber1=0, Int_t evNumber2=0) 
 {
 // Dynamically link some shared libs                    
     if (gClassTable->GetID("AliRun") < 0) {
@@ -23,11 +23,10 @@ void TestPrimaries(Int_t evNumber1=0, Int_t evNumber2=0)
 //
 //   Loop over events 
 //
-    
+    rl->LoadKinematics();
+    rl->LoadHeader();    
     for (Int_t nev=0; nev<= evNumber2; nev++) {
        rl->GetEvent(nev);
-       rl->LoadKinematics();
-       rl->LoadHeader();
        AliStack* stack = rl->Stack();
        Int_t npart = stack->GetNprimary();
        if (nev < evNumber1) continue;