FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairSink Class Referenceabstract

#include <FairSink.h>

Inheritance diagram for FairSink:
FairOnlineSink FairRootFileSink

Classes

struct  TypeAddressPair
 

Public Member Functions

 FairSink ()
 
 FairSink (const FairSink &sink)
 
virtual ~FairSink ()
 
virtual Bool_t InitSink ()=0
 
virtual void Close ()=0
 
virtual void Reset ()=0
 
virtual Sink_Type GetSinkType ()=0
 
virtual TString GetFileName ()
 
void SetRunId (Int_t runId)
 
Int_t GetRunId () const
 
virtual void SetOutTree (TTree *fTree)=0
 
virtual void Fill ()=0
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)=0
 
virtual void RegisterImpl (const char *, const char *, void *)=0
 
virtual void RegisterAny (const char *brname, const std::type_info &oi, const std::type_info &pi, void *obj)=0
 
virtual void WriteFolder ()=0
 
virtual bool CreatePersistentBranchesAny ()=0
 
virtual void WriteObject (TObject *f, const char *, Int_t option=0)=0
 
virtual void WriteGeometry ()=0
 
virtual FairSinkCloneSink ()=0
 
 ClassDef (FairSink, 1)
 

Protected Attributes

Int_t fRunId
 
TFolder * fOutFolder
 
std::map< std::string,
std::unique_ptr
< TypeAddressPair const > > 
fPersistentBranchesMap
 

Detailed Description

Definition at line 35 of file FairSink.h.

Constructor & Destructor Documentation

FairSink::FairSink ( )

Definition at line 20 of file FairSink.cxx.

FairSink::FairSink ( const FairSink sink)

Definition at line 25 of file FairSink.cxx.

FairSink::~FairSink ( )
virtual

Definition at line 30 of file FairSink.cxx.

Member Function Documentation

FairSink::ClassDef ( FairSink  ,
 
)
virtual FairSink* FairSink::CloneSink ( )
pure virtual

Implemented in FairRootFileSink, and FairOnlineSink.

virtual void FairSink::Close ( )
pure virtual

Implemented in FairRootFileSink, and FairOnlineSink.

virtual bool FairSink::CreatePersistentBranchesAny ( )
pure virtual

Implemented in FairRootFileSink, and FairOnlineSink.

virtual void FairSink::Fill ( )
pure virtual

Implemented in FairRootFileSink, and FairOnlineSink.

virtual TString FairSink::GetFileName ( )
inlinevirtual

Reimplemented in FairRootFileSink.

Definition at line 47 of file FairSink.h.

Int_t FairSink::GetRunId ( ) const
inline

Definition at line 50 of file FairSink.h.

virtual Sink_Type FairSink::GetSinkType ( )
pure virtual

Implemented in FairRootFileSink, and FairOnlineSink.

virtual Bool_t FairSink::InitSink ( )
pure virtual

Implemented in FairRootFileSink, and FairOnlineSink.

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

Implemented in FairRootFileSink, and FairOnlineSink.

virtual void FairSink::RegisterImpl ( const char *  ,
const char *  ,
void *   
)
pure virtual

Implemented in FairRootFileSink, and FairOnlineSink.

virtual void FairSink::Reset ( )
pure virtual

Implemented in FairRootFileSink, and FairOnlineSink.

virtual void FairSink::SetOutTree ( TTree *  fTree)
pure virtual

Implemented in FairRootFileSink, and FairOnlineSink.

void FairSink::SetRunId ( Int_t  runId)
inline

Definition at line 49 of file FairSink.h.

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

Implemented in FairRootFileSink, and FairOnlineSink.

virtual void FairSink::WriteFolder ( )
pure virtual

Implemented in FairRootFileSink, and FairOnlineSink.

virtual void FairSink::WriteGeometry ( )
pure virtual

Implemented in FairRootFileSink, and FairOnlineSink.

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

Implemented in FairRootFileSink, and FairOnlineSink.

Member Data Documentation

TFolder* FairSink::fOutFolder
protected

folder structure of output

Definition at line 85 of file FairSink.h.

std::map<std::string, std::unique_ptr<TypeAddressPair const> > FairSink::fPersistentBranchesMap
protected

A map of branchnames to typeinformation + memory address; used for branches registered to bes stored; use of ptr here since type_info cannot be copied

Definition at line 89 of file FairSink.h.

Int_t FairSink::fRunId
protected

Definition at line 82 of file FairSink.h.


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