+ Bool_t fIsStandard; // Flag for standard aod creation
+ Bool_t fFillAOD; // Flag for filling of the AOD tree at the end (all or nothing evt by evt)
+ Bool_t fFillAODRun; // Flag for filling of the AOD tree at the end (run)
+ Bool_t fNeedsHeaderReplication; // Flag for header replication
+ Bool_t fNeedsTracksBranchReplication; // Flag for tracks replication
+ Bool_t fNeedsVerticesBranchReplication; // Flag for vertices replication
+ Bool_t fNeedsV0sBranchReplication; // Flag for V0s replication
+ Bool_t fNeedsCascadesBranchReplication; // Flag for Cascade replication
+ Bool_t fNeedsTrackletsBranchReplication; // Flag for Tracklets replication
+ Bool_t fNeedsPMDClustersBranchReplication; // Flag for PMDClusters replication
+ Bool_t fNeedsJetsBranchReplication; // Flag for Jets replication
+ Bool_t fNeedsFMDClustersBranchReplication; // Flag for FMDClusters replication
+ Bool_t fNeedsCaloClustersBranchReplication; // Flag for CaloClusters replication
+ Bool_t fNeedsMCParticlesBranchReplication; // Flag for MCParticles replication
+ Bool_t fNeedsDimuonsBranchReplication; // Flag for Dimuons replication
+ Bool_t fAODIsReplicated; // Flag true if replication as been executed
+ AliAODEvent *fAODEvent; //! Pointer to the AOD event
+ AliMCEventHandler *fMCEventH; //! Pointer to mc event handler needed not to depend on the manager
+ TTree *fTreeA; //! tree for AOD persistency
+ TFile *fFileA; //! Output file
+ TString fFileName; // Output file name
+ TObjArray *fExtensions; // List of extensions
+ TObjArray *fFilters; // List of filtered AOD's
+ ClassDef(AliAODHandler, 6)
+};
+
+//-------------------------------------------------------------------------
+// Support class for AOD extensions. This is created by the user analysis
+// that requires a separate file for some AOD branches. The name of the
+// AliAODExtension object is the file name where the AOD branches will be
+// stored.
+// Author: Andrei Gheata, CERN
+//-------------------------------------------------------------------------
+
+class AliAODExtension : public TNamed {
+
+public:
+
+enum EAliAODExtensionFlags {
+ kFilteredAOD = BIT(14)