FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairRootFileSink Class Reference

#include <FairRootFileSink.h>

Inheritance diagram for FairRootFileSink:
FairSink

Public Member Functions

 FairRootFileSink (TFile *f, const char *Title="OutputRootFile")
 
 FairRootFileSink (const TString *RootFileName, const char *Title="OutputRootFile")
 
 FairRootFileSink (const TString RootFileName, const char *Title="OutputRootFile")
 
virtual ~FairRootFileSink ()
 
virtual Bool_t InitSink ()
 
virtual void Close ()
 
virtual void Reset ()
 
virtual Sink_Type GetSinkType ()
 
virtual void FillEventHeader (FairEventHeader *feh)
 
virtual TFile * OpenRootFile (TString fileName="")
 
TFile * GetRootFile ()
 
virtual TString GetFileName ()
 
virtual void SetOutTree (TTree *fTree)
 
TTree * GetOutTree ()
 
virtual void Fill ()
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 
virtual void RegisterImpl (const char *, const char *, void *)
 
virtual void RegisterAny (const char *brname, const std::type_info &oi, const std::type_info &pi, void *obj)
 
virtual void WriteFolder ()
 
virtual bool CreatePersistentBranchesAny ()
 
virtual void WriteObject (TObject *f, const char *, Int_t option=0)
 
virtual void WriteGeometry ()
 
virtual FairSinkCloneSink ()
 
- Public Member Functions inherited from FairSink
 FairSink ()
 
 FairSink (const FairSink &sink)
 
virtual ~FairSink ()
 
void SetRunId (Int_t runId)
 
Int_t GetRunId () const
 
 ClassDef (FairSink, 1)
 

Additional Inherited Members

- Protected Attributes inherited from FairSink
Int_t fRunId
 
TFolder * fOutFolder
 
std::map< std::string,
std::unique_ptr
< TypeAddressPair const > > 
fPersistentBranchesMap
 

Detailed Description

Definition at line 33 of file FairRootFileSink.h.

Constructor & Destructor Documentation

FairRootFileSink::FairRootFileSink ( TFile *  f,
const char *  Title = "OutputRootFile" 
)

Definition at line 39 of file FairRootFileSink.cxx.

FairRootFileSink::FairRootFileSink ( const TString *  RootFileName,
const char *  Title = "OutputRootFile" 
)

Definition at line 55 of file FairRootFileSink.cxx.

FairRootFileSink::FairRootFileSink ( const TString  RootFileName,
const char *  Title = "OutputRootFile" 
)

Definition at line 72 of file FairRootFileSink.cxx.

FairRootFileSink::~FairRootFileSink ( )
virtual

Definition at line 89 of file FairRootFileSink.cxx.

Member Function Documentation

FairSink * FairRootFileSink::CloneSink ( )
virtual

Implements FairSink.

Definition at line 355 of file FairRootFileSink.cxx.

void FairRootFileSink::Close ( )
virtual

Implements FairSink.

Definition at line 224 of file FairRootFileSink.cxx.

bool FairRootFileSink::CreatePersistentBranchesAny ( )
virtual

Implements FairSink.

Definition at line 280 of file FairRootFileSink.cxx.

void FairRootFileSink::Fill ( )
virtual

Implements FairSink.

Definition at line 321 of file FairRootFileSink.cxx.

void FairRootFileSink::FillEventHeader ( FairEventHeader feh)
virtual

Definition at line 233 of file FairRootFileSink.cxx.

virtual TString FairRootFileSink::GetFileName ( )
inlinevirtual

Reimplemented from FairSink.

Definition at line 52 of file FairRootFileSink.h.

TTree* FairRootFileSink::GetOutTree ( )
inline

Definition at line 55 of file FairRootFileSink.h.

TFile* FairRootFileSink::GetRootFile ( )
inline

Definition at line 51 of file FairRootFileSink.h.

virtual Sink_Type FairRootFileSink::GetSinkType ( )
inlinevirtual

Implements FairSink.

Definition at line 46 of file FairRootFileSink.h.

Bool_t FairRootFileSink::InitSink ( )
virtual

Check if a simulation run!

Implements FairSink.

Definition at line 98 of file FairRootFileSink.cxx.

TFile * FairRootFileSink::OpenRootFile ( TString  fileName = "")
virtual

Definition at line 91 of file FairRootFileSink.cxx.

void FairRootFileSink::RegisterAny ( const char *  brname,
const std::type_info &  oi,
const std::type_info &  pi,
void *  obj 
)
virtual

Implements FairSink.

Definition at line 249 of file FairRootFileSink.cxx.

void FairRootFileSink::RegisterImpl ( const char *  ,
const char *  folderName,
void *  obj 
)
virtual

Implements FairSink.

Definition at line 235 of file FairRootFileSink.cxx.

void FairRootFileSink::Reset ( )
virtual

Implements FairSink.

Definition at line 231 of file FairRootFileSink.cxx.

virtual void FairRootFileSink::SetOutTree ( TTree *  fTree)
inlinevirtual

Implements FairSink.

Definition at line 54 of file FairRootFileSink.h.

Int_t FairRootFileSink::Write ( const char *  name = 0,
Int_t  option = 0,
Int_t  bufsize = 0 
)
virtual

Writes the tree in the file.

Get the file handle to the current output file from the tree. If ROOT splits the file (due to the size of the file) the file handle fOutFile is lost and the program crash while writing the last part of the last file.

Implements FairSink.

Definition at line 330 of file FairRootFileSink.cxx.

void FairRootFileSink::WriteFolder ( )
virtual

Implements FairSink.

Definition at line 254 of file FairRootFileSink.cxx.

void FairRootFileSink::WriteGeometry ( )
virtual

Implements FairSink.

Definition at line 315 of file FairRootFileSink.cxx.

void FairRootFileSink::WriteObject ( TObject *  f,
const char *  name,
Int_t  option = 0 
)
virtual

Implements FairSink.

Definition at line 309 of file FairRootFileSink.cxx.


The documentation for this class was generated from the following files: