#include "$(ALICE_ROOT)/TPC/alles.h"
#include "AliReader.h"
#include "AliReaderKineTree.h"
+ #include "AliReaderESDTree.h"
#include "AliAODParticleCut.h"
#include "AliAOD.h"
#include "AliAODPairCut.h"
cout<<"WriteAOD.C: ..... Loaded\n";
Int_t PID[11];
+
PID[0]=kProton;
PID[1]=kProtonBar;
PID[2]=kKPlus;
AliReader* reader;
Int_t kine = strcmp(datatype,"Kine");
Int_t ESD = strcmp(datatype,"ESD");
+ Int_t ESDMuon = strcmp(datatype,"ESDMuon");
Int_t intern = strcmp(datatype,"AOD");
if(!kine)
else if(!intern)
{
- reader = new AliHBTReaderAOD("AOD.root");
+ AliReaderAOD* aodreader = new AliReaderAOD("AOD.root");
+ if (strstr(processopt,"Particles"))
+ aodreader->ReadSimulatedData(kTRUE);
+ else
+ aodreader->ReadSimulatedData(kFALSE);
+
+ reader = aodreader;
+
multcheck = kTRUE;
}
+
+ else if (!ESDMuon)
+ {
+ // set reader for ESD
+ AliReaderESDTree* muonreader = new AliReaderESDTree("AliESDs.root");
+ // active muon ESD reader
+ muonreader->SetReadMuon(kTRUE);
+ // disable central barrel (default = kTRUE)
+ muonreader->SetReadCentralBarrel(kFALSE);
+ // disable simulated data (not implemented yet)
+ muonreader->ReadSimulatedData(kFALSE);
+
+ reader = muonreader;
+ multcheck = kFALSE;
+ }
else
{
cerr<<"Option "<<datatype<<" not recognized. Exiting"<<endl;
}
}
- reader->SetDirs(dirs);
+ reader->SetDirs(dirs);
AliAODParticleCut* readerpartcut= new AliAODParticleCut();