AliVEventHandler(),
fIsStandard(kTRUE),
fFillAOD(kTRUE),
+ fFillAODRun(kTRUE),
fNeedsHeaderReplication(kFALSE),
fNeedsTracksBranchReplication(kFALSE),
fNeedsVerticesBranchReplication(kFALSE),
AliVEventHandler(name, title),
fIsStandard(kTRUE),
fFillAOD(kTRUE),
+ fFillAODRun(kTRUE),
fNeedsHeaderReplication(kFALSE),
fNeedsTracksBranchReplication(kFALSE),
fNeedsVerticesBranchReplication(kFALSE),
Bool_t AliAODHandler::FinishEvent()
{
// Fill data structures
- if(fFillAOD){
+ if(fFillAOD && fFillAODRun && fAODEvent){
fAODEvent->MakeEntriesReferencable();
// StoreMCParticles();
FillTree();
-
+ }
+ if (fFillAODRun) {
if (fExtensions) {
TIter next(fExtensions);
AliAODExtension *ext;