]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
modified to take into account the new AliRun
authorbarbera <barbera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Mar 2001 19:40:28 +0000 (19:40 +0000)
committerbarbera <barbera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 2 Mar 2001 19:40:28 +0000 (19:40 +0000)
ITS/ITSHitsToFastPoints.C

index 78ba01ee23f024a5eb0a8842862b57bb803859ac..faa87d7a77715a662e3a7bd5d2e4bc96e7874ab4 100644 (file)
@@ -52,24 +52,23 @@ void ITSHitsToFastPoints (Int_t evNumber1=0,Int_t evNumber2=0,Int_t nsignal=25,
 //
 
    Int_t nbgr_ev=0;
-
-
-   cout<<"Creating fast points...\n";
-   
-   TStopwatch timer;
+  TStopwatch timer;
 
    for (int ev=evNumber1; ev<= evNumber2; ev++) {
        Int_t nparticles = gAlice->GetEvent(ev);
        cout << "event         " <<ev<<endl;
        cout << "nparticles  " <<nparticles<<endl;
+       gAlice->SetEvent(ev);
+       if(!gAlice->TreeR()) gAlice-> MakeTree("R");
+       ITS->MakeBranch("R");
        if (ev < evNumber1) continue;
        if (nparticles <= 0) return;
 
        Int_t bgr_ev=Int_t(ev/nsignal);
        //printf("bgr_ev %d\n",bgr_ev);
-                timer.Start();
+       timer.Start();
        ITS->HitsToFastRecPoints(ev,bgr_ev,size," ","All"," ");
-                timer.Stop(); timer.Print();
+       timer.Stop(); timer.Print();
    } // event loop 
 
    delete gAlice;