//_________________________________________________________________________
///////////////////////////////////////////////////////////////////////////
-//
-// class AliJetReader
-//
-// loizides@ikf.uni-frankfurt.de
+// //
+// class AliJetReader //
+// File reader for ESD //
+// //
+// This reader reads tracks from Event Summary Data //
+// taken from Piotr.Skowronski@cern.ch //
+// more info: http://alisoft.cern.ch/people/skowron/analyzer/index.html //
+// //
+// loizides@ikf.uni-frankfurt.de //
///////////////////////////////////////////////////////////////////////////
#include <TNamed.h>
#include <TObjArray.h>
class TClonesArray;
class TString;
+class TTree;
class AliJetEventParticles;
class AliJetParticlesReader: public TNamed
virtual Int_t Next(); //call this if you want the next event
virtual void Rewind() = 0;
- void SetPtCut(Float_t ptmin=0, Float_t ptmax=1000)
+ void SetPtCut(Float_t ptmin=0, Float_t ptmax=100)
{fPtMin=ptmin;fPtMax=ptmax;}
void SetPhiCut(Float_t phi=2*TMath::Pi()){SetPhiCut(0,phi);}
void SetPhiCut(Float_t phimin, Float_t phimax)
void SetEtaCut(Float_t e=1){SetEtaCut(-e,e);}
void SetEtaCut(Float_t emin, Float_t emax)
{fEtaMin=emin;fEtaMax=emax;}
+ void SetTree(TTree *t){fTree=t;fNewTree=kTRUE;}
const AliJetEventParticles* GetEventParticles() const {return fEventParticles;}
AliJetEventParticles* GetEventParticles(Bool_t o)
protected:
virtual Int_t ReadNext() = 0; //this methods reads next event and
- //put result in fParticles
+ //put result in fParticles
+
TString& GetDirName(Int_t entry);
AliJetEventParticles* fEventParticles; //array with read particles
Float_t fPhiMin; //min phi cut
Float_t fPhiMax; //max phi cut
- ClassDef(AliJetParticlesReader,1) // Basic AliJetParticles Reader class
+ Bool_t fNewTree; // signals new tree
+ TTree *fTree; //! if non-zero store AliJetEventParticles
+
+ ClassDef(AliJetParticlesReader,2) // Basic AliJetParticles Reader class
};
#endif