]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ANALYSIS/AliReaderAOD.h
ReaderESDtree, MUON analysis, reading MUON data froESD in ReaderESD (Christian FINCK)
[u/mrichter/AliRoot.git] / ANALYSIS / AliReaderAOD.h
1 #ifndef ALIREADERAOD_H
2 #define ALIREADERAOD_H
3
4 #include "AliReader.h"
5
6 class AliReaderAOD: public AliReader
7 {
8   public:
9     AliReaderAOD(const Char_t* aodfilename = "AliAOD.root"){}
10     virtual ~AliReaderAOD(){}
11
12     void          ReadSimulatedData(Bool_t flag){fReadSim = flag;}//switches reading MC data
13     Bool_t        ReadsRec() const {return kTRUE;}
14     Bool_t        ReadsSim() const {return fReadSim;}
15
16
17     static Int_t WriteAOD(AliReader* reader, const char* outfilename = "AliAOD.root", //reads tracks from runs and writes them to file
18                           const char* pclassname = "AliAODParticle", Bool_t multcheck = kFALSE);
19     
20   protected:
21   private:
22     TString fFileName;//File name
23     
24     Bool_t  fReadSim;//indicates if to read simulated data
25     ClassDef(AliReaderAOD,1)
26 };
27
28 #endif