]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliAODHandler.h
Do not search for external template definitions in the implementation files
[u/mrichter/AliRoot.git] / STEER / AliAODHandler.h
index cab4b8038228f8e17fbcc17b3b0cff90bb62aead..86c965d1b37b9f9f75be4860a5a4b23d803d2ad5 100644 (file)
@@ -24,8 +24,8 @@ class AliAODHandler : public AliVEventHandler {
     AliAODHandler();
     AliAODHandler(const char* name, const char* title);
     virtual ~AliAODHandler();
-    virtual void         SetOutputFileName(const char* fname) {fName = fname;}
-    virtual const char*  GetOutputFileName() {return fName;}
+    virtual void         SetOutputFileName(const char* fname);
+    virtual const char*  GetOutputFileName();
     virtual Bool_t       Init(Option_t* option);
     virtual Bool_t       Init(TTree* /*tree*/, Option_t* /*option*/)  {return kTRUE;}
     virtual Bool_t       BeginEvent(Long64_t /*entry*/)  {return kTRUE;}
@@ -35,27 +35,30 @@ class AliAODHandler : public AliVEventHandler {
     virtual Bool_t       Terminate();
     virtual Bool_t       TerminateIO();
     //
-    virtual void         SetCreateNonStandardAOD() {fIsStandard = kFALSE;}
+    virtual void         SetCreateNonStandardAOD()   {fIsStandard = kFALSE;}
+    virtual void         SetNeedsHeaderReplication() {fNeedsHeaderReplication = kTRUE;}
     //
     AliAODEvent*         GetAOD()  {return fAODEvent;}
-    TTree*               GetTree() {return fTreeA;}
+    virtual TTree*       GetTree() const {return fTreeA;}
     void                 CreateTree(Int_t flag);
     void                 FillTree();
     void                 AddAODtoTreeUserInfo();
-    void                 AddBranch(const char* cname, TObject* addobj);
+    void                 AddBranch(const char* cname, void* addobj);
     Bool_t               IsStandard() {return fIsStandard;}
+    Bool_t               NeedsHeaderReplication() {return  fNeedsHeaderReplication;}
     //
     void                 SetInputTree(TTree* /*tree*/) {;}
  private:
     AliAODHandler(const AliAODHandler&);             // Not implemented
     AliAODHandler& operator=(const AliAODHandler&);  // Not implemented
  private:
-    Bool_t                   fIsStandard; //! Flag for standard aod creation 
-    AliAODEvent             *fAODEvent;   //! Pointer to the AOD event
-    TTree                   *fTreeA;      //! tree for AOD persistency
-    TFile                   *fFileA;      //! Output file
-    const char              *fName;       //! Output file name
-    ClassDef(AliAODHandler, 1);
+    Bool_t                   fIsStandard;             // Flag for standard aod creation
+    Bool_t                   fNeedsHeaderReplication; // Flag for header replication
+    AliAODEvent             *fAODEvent;               //! Pointer to the AOD event
+    TTree                   *fTreeA;                  //! tree for AOD persistency
+    TFile                   *fFileA;                  //! Output file
+    TString                  fFileName;               //  Output file name
+    ClassDef(AliAODHandler, 2);
 };
 
 #endif