9 class AliReaderAOD: public AliReader
12 AliReaderAOD(const Char_t* aodfilename = "AOD.root");
13 virtual ~AliReaderAOD();
15 void ReadSimulatedData(Bool_t flag){fReadSim = flag;}//switches reading MC data
16 Bool_t ReadsRec() const {return kTRUE;}
17 Bool_t ReadsSim() const {return fReadSim;}
22 static Int_t WriteAOD(AliReader* reader, const char* outfilename = "AliAOD.root", //reads tracks from runs and writes them to file
23 const char* pclassname = "AliAODParticle", Bool_t multcheck = kFALSE);
26 virtual Int_t ReadNext();
27 virtual Int_t OpenFile(Int_t evno);//opens files to be read for given event
29 static const TString fgkTreeName;//name of branch holding simulated data
30 static const TString fgkRecosntructedDataBranchName;//name of branch holding reconstructed data
31 static const TString fgkSimulatedDataBranchName;//name of branch holding simulated data
35 TString fFileName;//File name
37 Bool_t fReadSim;//indicates if to read simulated data
41 AliAOD* fSimBuffer;//!buffer array that tree is read to
42 AliAOD* fRecBuffer;//!
45 ClassDef(AliReaderAOD,1)