X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ANALYSIS%2FAliReader.h;h=7988dfd2007621882645611703b852127f9aa95a;hb=36b803affa45b37d38d308ff2611aefdf48a8a88;hp=fd04fcde9ea70b99988f0eada9abb6324aa9dd39;hpb=efdb0cc9c4bce35cbae2cec881c01dc97fbd81a0;p=u%2Fmrichter%2FAliRoot.git diff --git a/ANALYSIS/AliReader.h b/ANALYSIS/AliReader.h index fd04fcde9ea..7988dfd2007 100644 --- a/ANALYSIS/AliReader.h +++ b/ANALYSIS/AliReader.h @@ -37,8 +37,8 @@ // that read next event in queue. // // The others are: -// Bool_t ReadsRec() const; specifies if reader is able to read simulated particles -// Bool_t ReadsSim() const; specifies if reader is able to read reconstructed tracks +// Bool_t ReadsSim() const; specifies if reader is able to read simulated particles +// Bool_t ReadsRec() const; specifies if reader is able to read reconstructed tracks // void Rewind(); rewind reading to the beginning // // This class provides full functionality for reading from many sources @@ -53,6 +53,8 @@ #include #include +class TGliteXmlEventlist; + class AliAODRun; class AliAOD; class AliAODParticleCut; @@ -84,12 +86,15 @@ class AliReader: public TNamed virtual AliAOD* GetEventRec(Int_t n);//returns event number n virtual AliAOD* GetEventSim(Int_t n); + virtual Int_t Read(const char * name) {return TObject::Read(name);} virtual Int_t Read(AliAODRun* particles, AliAODRun *tracks);//Reads all available evenets and stores them in 'particles' and 'tracks' virtual Int_t GetNumberOfRecEvents();//Returns number of available events -> usually conncected with reading all events //may be time consuming virtual Int_t GetNumberOfSimEvents();// - + + void SetEventList(TGliteXmlEventlist* evl){fEventList = evl;} + void SetDirs(TObjArray* dirs){fDirs = dirs;} //sets array directories names void SetEventBuffering(Bool_t flag){fBufferEvents = flag;}//switches on/off buffering - read data are kept in local buffer void SetBlend(Bool_t flag = kTRUE){fBlend=flag;} //set blending - randomizing particle order @@ -100,6 +105,8 @@ class AliReader: public TNamed protected: + TGliteXmlEventlist* fEventList;//Event list delivered by GLite/AliEn + TObjArray* fCuts;//array with particle cuts TObjArray* fDirs;//arry with directories to read data from