15 #ifndef __FAIRROOT__FairRootFileSink__
16 #define __FAIRROOT__FairRootFileSink__
37 FairRootFileSink(
const TString* RootFileName,
const char* Title =
"OutputRootFile");
38 FairRootFileSink(
const TString RootFileName,
const char* Title =
"OutputRootFile");
52 virtual TString
GetFileName() {
return (fRootFile ? fRootFile->GetName() :
""); }
54 virtual void SetOutTree(TTree* fTree) { fOutTree = fTree; }
59 virtual Int_t
Write(
const char* name = 0, Int_t option = 0, Int_t bufsize = 0);
61 virtual void RegisterImpl(
const char*,
const char*,
void*);
62 virtual void RegisterAny(
const char* brname,
const std::type_info& oi,
const std::type_info& pi,
void* obj);
67 virtual void WriteObject(TObject* f,
const char*, Int_t option = 0);
80 TObjArray* fListFolder;
84 Bool_t fIsInitialized;
89 void TruncateBranchNames();
90 void TruncateBranchNames(TBranch* b, TString ffn);
FairRootFileSink(TFile *f, const char *Title="OutputRootFile")
virtual void FillEventHeader(FairEventHeader *feh)
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
virtual ~FairRootFileSink()
virtual void RegisterAny(const char *brname, const std::type_info &oi, const std::type_info &pi, void *obj)
virtual bool CreatePersistentBranchesAny()
virtual void WriteGeometry()
virtual void SetOutTree(TTree *fTree)
virtual Sink_Type GetSinkType()
virtual TString GetFileName()
virtual void RegisterImpl(const char *, const char *, void *)
virtual FairSink * CloneSink()
virtual void WriteFolder()
virtual Bool_t InitSink()
virtual void WriteObject(TObject *f, const char *, Int_t option=0)
virtual TFile * OpenRootFile(TString fileName="")