]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/oldmacros/AliITSPropagateBackV2.C
Bayesian PID: new parametrization and code update (E. Biolcati - F.Prino)
[u/mrichter/AliRoot.git] / ITS / oldmacros / AliITSPropagateBackV2.C
index f901a209664de24e2b10c59ebda00878b01e38f9..4ae6e779a402eb677a489e5ffe427455cb9093d8 100644 (file)
@@ -1,12 +1,13 @@
 #ifndef __CINT__
-  #include <iostream.h>
+  #include <Riostream.h>
+  #include "AliITSgeom.h"
   #include "AliITStrackerV2.h"
 
   #include "TFile.h"
   #include "TStopwatch.h"
 #endif
 
-Int_t AliITSPropagateBackV2() {
+Int_t AliITSPropagateBackV2(Int_t nev=1) {
    cerr<<"Propagating tracks back through the ITS...\n";
 
    TFile *in=TFile::Open("AliITStracksV2.root");
@@ -22,9 +23,14 @@ Int_t AliITSPropagateBackV2() {
    }
    AliITSgeom *geom=(AliITSgeom*)file->Get("AliITSgeom");
 
+   Int_t rc=0;
    TStopwatch timer;
    AliITStrackerV2 tracker(geom);
-   Int_t rc=tracker.PropagateBack(in,out);
+   for (Int_t i=0; i<nev; i++) {
+     cerr<<"Processing event number : "<<i<<endl;
+     tracker.SetEventNumber(i);
+     rc=tracker.PropagateBack(in,out);
+   }
    timer.Stop(); timer.Print();
 
    file->Close();