]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
AliReco() with user control of event range.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Jun 2001 16:27:50 +0000 (16:27 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 28 Jun 2001 16:27:50 +0000 (16:27 +0000)
STEER/AliRun.cxx
STEER/AliRun.h

index 0a26040bdc856ed5e0614d32371868584a742d4c..180b7df3dcd64a679440e5837e20dec969d3ed1c 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.68  2001/06/11 13:14:40  morsch
+SetAliGenEventHeader() method added.
+
 Revision 1.67  2001/06/07 18:24:50  buncic
 Removed compilation warning in AliConfig initialisation.
 
@@ -197,7 +200,6 @@ Introduction of the Copyright and cvs Log
 #include <TFile.h>
 #include <TRandom.h>
 #include <TBRIK.h> 
-#include <TNode.h> 
 #include <TCint.h> 
 #include <TSystem.h>
 #include <TObjectTable.h>
@@ -206,6 +208,7 @@ Introduction of the Copyright and cvs Log
 #include <TROOT.h>
 #include <TBrowser.h>
 #include <TFolder.h>
+#include <TNode.h>
 
 #include "TParticle.h"
 #include "AliRun.h"
@@ -1418,13 +1421,16 @@ void AliRun::RunMC(Int_t nevent, const char *setup)
 }
 
 //_____________________________________________________________________________
-void AliRun::RunReco(const char *selected)
+void AliRun::RunReco(const char *selected, Int_t first, Int_t last)
 {
   //
   // Main function to be called to reconstruct Alice event
   // 
-   cout << "Found "<< gAlice->TreeE()->GetEntries() << "events" << endl; 
-   for (Int_t nevent=0; nevent<gAlice->TreeE()->GetEntries(); nevent++) {
+   cout << "Found "<< gAlice->TreeE()->GetEntries() << "events" << endl;
+   Int_t nFirst = first;
+   Int_t nLast  = (last < 0)? (Int_t) gAlice->TreeE()->GetEntries() : last;
+   
+   for (Int_t nevent = nFirst; nevent < nLast; nevent++) {
      cout << "Processing event "<< nevent << endl;
      GetEvent(nevent);
      // MakeTree("R");
index 35c64e1bb940b5ca47fbd96854aa03b370b63b24..027097edbf6de85679ab5fd0f38f7b2c2e27f664 100644 (file)
@@ -120,7 +120,7 @@ public:
                          Int_t nc2=60,Float_t c2min=0,Float_t c2max=360,Float_t rmin=0,
                          Float_t rmax=430,Float_t zmax=10000, AliLegoGenerator* gener=NULL);
    virtual  Bool_t IsLegoRun() const {return (fLego!=0);}
-   virtual  void  RunReco(const char *detector=0);
+   virtual  void  RunReco(const char *detector=0, Int_t first = 0, Int_t last = 0);
    virtual  void  SetCurrentTrack(Int_t track);                           
    virtual  void  SetDebug(const Int_t level=0) {fDebug = level;}
    virtual  void  SetDisplay(AliDisplay *display) {fDisplay = display;}