/*
$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.
#include <TFile.h>
#include <TRandom.h>
#include <TBRIK.h>
-#include <TNode.h>
#include <TCint.h>
#include <TSystem.h>
#include <TObjectTable.h>
#include <TROOT.h>
#include <TBrowser.h>
#include <TFolder.h>
+#include <TNode.h>
#include "TParticle.h"
#include "AliRun.h"
}
//_____________________________________________________________________________
-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");
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;}