BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnMQSink Class Reference

#include <BmnMQSink.h>

Inheritance diagram for BmnMQSink:
Collaboration diagram for BmnMQSink:

Public Member Functions

 BmnMQSink (Int_t OutPort=6666)
virtual ~BmnMQSink ()
virtual Bool_t InitSink ()
virtual void Close ()
virtual void Reset ()
virtual Sink_Type GetSinkType ()
virtual void FillEventHeader (FairEventHeader *)
virtual void SetOutTree (TTree *)
virtual void Fill ()
virtual Int_t Write (const char *name, Int_t, Int_t)
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 *name, Int_t)
virtual void WriteGeometry ()
virtual FairSink * CloneSink ()
bool IsPersistentBranchAny (const char *name)
template<typename T>
T GetPersistentBranchAny (const char *brname) const
 BmnMQSink (Int_t OutPort=6666)
virtual ~BmnMQSink ()
virtual Bool_t InitSink ()
virtual void Close ()
virtual void Reset ()
virtual Sink_Type GetSinkType ()
virtual void FillEventHeader (FairEventHeader *)
virtual void SetOutTree (TTree *)
virtual void Fill ()
virtual Int_t Write (const char *name, Int_t, Int_t)
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 *name, Int_t)
virtual void WriteGeometry ()
virtual FairSink * CloneSink ()
bool IsPersistentBranchAny (const char *name)
template<typename T>
T GetPersistentBranchAny (const char *brname) const

Private Member Functions

void EmitPersistentBranchWrongTypeWarning (const char *brname, const char *typen1, const char *typen2) const
 BmnMQSink (const BmnMQSink &)
BmnMQSink & operator= (const BmnMQSink &)
void EmitPersistentBranchWrongTypeWarning (const char *brname, const char *typen1, const char *typen2) const
 BmnMQSink (const BmnMQSink &)
BmnMQSink & operator= (const BmnMQSink &)

Private Attributes

std::string fOutChannel
BmnParts fParts
void * fCtx
void * fOutSocket
Int_t fOutPort
map< const char *, TObject * > fObjMap
map< const char *, TClonesArray * > fArrMap

Detailed Description

Definition at line 35 of file BmnMQSink.h.

Constructor & Destructor Documentation

◆ BmnMQSink() [1/4]

BmnMQSink::BmnMQSink ( Int_t OutPort = 6666)

Definition at line 5 of file BmnMQSink.cxx.

References fCtx, fOutPort, and fOutSocket.

Referenced by BmnMQSink(), CloneSink(), and operator=().

Here is the caller graph for this function:

◆ ~BmnMQSink() [1/2]

BmnMQSink::~BmnMQSink ( )
virtual

Definition at line 14 of file BmnMQSink.cxx.

◆ BmnMQSink() [2/4]

BmnMQSink::BmnMQSink ( const BmnMQSink & )
private

Definition at line 12 of file BmnMQSink.cxx.

References BmnMQSink().

Here is the call graph for this function:

◆ BmnMQSink() [3/4]

BmnMQSink::BmnMQSink ( Int_t OutPort = 6666)

◆ ~BmnMQSink() [2/2]

virtual BmnMQSink::~BmnMQSink ( )
virtual

◆ BmnMQSink() [4/4]

BmnMQSink::BmnMQSink ( const BmnMQSink & )
private

References BmnMQSink().

Here is the call graph for this function:

Member Function Documentation

◆ CloneSink() [1/2]

FairSink * BmnMQSink::CloneSink ( )
virtual

Definition at line 244 of file BmnMQSink.cxx.

References BmnMQSink().

Here is the call graph for this function:

◆ CloneSink() [2/2]

virtual FairSink * BmnMQSink::CloneSink ( )
virtual

◆ Close() [1/2]

void BmnMQSink::Close ( )
virtual

Definition at line 101 of file BmnMQSink.cxx.

References fCtx, and fOutSocket.

◆ Close() [2/2]

virtual void BmnMQSink::Close ( )
virtual

◆ CreatePersistentBranchesAny() [1/2]

bool BmnMQSink::CreatePersistentBranchesAny ( )
virtual

Definition at line 161 of file BmnMQSink.cxx.

◆ CreatePersistentBranchesAny() [2/2]

virtual bool BmnMQSink::CreatePersistentBranchesAny ( )
virtual

◆ EmitPersistentBranchWrongTypeWarning() [1/2]

void BmnMQSink::EmitPersistentBranchWrongTypeWarning ( const char * brname,
const char * typen1,
const char * typen2 ) const
private

Definition at line 167 of file BmnMQSink.cxx.

Referenced by GetPersistentBranchAny().

Here is the caller graph for this function:

◆ EmitPersistentBranchWrongTypeWarning() [2/2]

void BmnMQSink::EmitPersistentBranchWrongTypeWarning ( const char * brname,
const char * typen1,
const char * typen2 ) const
private

◆ Fill() [1/2]

void BmnMQSink::Fill ( )
virtual

Definition at line 173 of file BmnMQSink.cxx.

References TBuffer::Buffer(), fOutSocket, fParts, TBuffer::kWrite, TBuffer::Length(), TBufferIO::Reset(), and TBufferIO::WriteObject().

Here is the call graph for this function:

◆ Fill() [2/2]

virtual void BmnMQSink::Fill ( )
virtual

◆ FillEventHeader() [1/2]

virtual void BmnMQSink::FillEventHeader ( FairEventHeader * )
inlinevirtual

Definition at line 51 of file BmnMQSink.h.

◆ FillEventHeader() [2/2]

virtual void BmnMQSink::FillEventHeader ( FairEventHeader * )
inlinevirtual

Definition at line 51 of file BmnMQSink.h.

◆ GetPersistentBranchAny() [1/2]

template<typename T>
T BmnMQSink::GetPersistentBranchAny ( const char * brname) const
inline

Definition at line 87 of file BmnMQSink.h.

References EmitPersistentBranchWrongTypeWarning().

Here is the call graph for this function:

◆ GetPersistentBranchAny() [2/2]

template<typename T>
T BmnMQSink::GetPersistentBranchAny ( const char * brname) const
inline

Definition at line 87 of file BmnMQSink.h.

References EmitPersistentBranchWrongTypeWarning().

Here is the call graph for this function:

◆ GetSinkType() [1/2]

virtual Sink_Type BmnMQSink::GetSinkType ( )
inlinevirtual

Definition at line 45 of file BmnMQSink.h.

◆ GetSinkType() [2/2]

virtual Sink_Type BmnMQSink::GetSinkType ( )
inlinevirtual

Definition at line 45 of file BmnMQSink.h.

◆ InitSink() [1/2]

Bool_t BmnMQSink::InitSink ( )
virtual

Definition at line 20 of file BmnMQSink.cxx.

References TString::Data(), DBG, DBGERR, fCtx, fOutChannel, fOutPort, and fOutSocket.

Here is the call graph for this function:

◆ InitSink() [2/2]

virtual Bool_t BmnMQSink::InitSink ( )
virtual

◆ IsPersistentBranchAny() [1/2]

bool BmnMQSink::IsPersistentBranchAny ( const char * name)

Definition at line 152 of file BmnMQSink.cxx.

◆ IsPersistentBranchAny() [2/2]

bool BmnMQSink::IsPersistentBranchAny ( const char * name)

◆ operator=() [1/2]

BmnMQSink & BmnMQSink::operator= ( const BmnMQSink & )
private

References BmnMQSink().

Here is the call graph for this function:

◆ operator=() [2/2]

BmnMQSink & BmnMQSink::operator= ( const BmnMQSink & )
private

References BmnMQSink().

Here is the call graph for this function:

◆ RegisterAny() [1/2]

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

Definition at line 145 of file BmnMQSink.cxx.

◆ RegisterAny() [2/2]

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

◆ RegisterImpl() [1/2]

void BmnMQSink::RegisterImpl ( const char * name,
const char * folderName,
void * ob )
virtual

Definition at line 108 of file BmnMQSink.cxx.

References TNamed::Class(), TNamed::Class_Name(), TObject::ClassName(), fArrMap, fObjMap, fParts, TClass::GetClass(), TClonesArray::GetClass(), TObjArray::GetEntriesFast(), TCollection::GetName(), TNamed::GetName(), and TObject::GetTitle().

Here is the call graph for this function:

◆ RegisterImpl() [2/2]

virtual void BmnMQSink::RegisterImpl ( const char * ,
const char * ,
void *  )
virtual

◆ Reset() [1/2]

virtual void BmnMQSink::Reset ( )
inlinevirtual

Definition at line 43 of file BmnMQSink.h.

◆ Reset() [2/2]

virtual void BmnMQSink::Reset ( )
inlinevirtual

Definition at line 43 of file BmnMQSink.h.

◆ SetOutTree() [1/2]

virtual void BmnMQSink::SetOutTree ( TTree * )
inlinevirtual

Definition at line 53 of file BmnMQSink.h.

◆ SetOutTree() [2/2]

virtual void BmnMQSink::SetOutTree ( TTree * )
inlinevirtual

Definition at line 53 of file BmnMQSink.h.

◆ Write() [1/2]

virtual Int_t BmnMQSink::Write ( const char * name,
Int_t ,
Int_t  )
inlinevirtual

Definition at line 61 of file BmnMQSink.h.

◆ Write() [2/2]

virtual Int_t BmnMQSink::Write ( const char * name,
Int_t ,
Int_t  )
inlinevirtual

Definition at line 61 of file BmnMQSink.h.

◆ WriteFolder() [1/2]

virtual void BmnMQSink::WriteFolder ( )
inlinevirtual

Definition at line 70 of file BmnMQSink.h.

◆ WriteFolder() [2/2]

virtual void BmnMQSink::WriteFolder ( )
inlinevirtual

Definition at line 70 of file BmnMQSink.h.

◆ WriteGeometry() [1/2]

virtual void BmnMQSink::WriteGeometry ( )
inlinevirtual

Definition at line 77 of file BmnMQSink.h.

◆ WriteGeometry() [2/2]

virtual void BmnMQSink::WriteGeometry ( )
inlinevirtual

Definition at line 77 of file BmnMQSink.h.

◆ WriteObject() [1/2]

virtual void BmnMQSink::WriteObject ( TObject * f,
const char * name,
Int_t  )
inlinevirtual

Definition at line 73 of file BmnMQSink.h.

References f.

◆ WriteObject() [2/2]

virtual void BmnMQSink::WriteObject ( TObject * f,
const char * name,
Int_t  )
inlinevirtual

Definition at line 73 of file BmnMQSink.h.

References f.

Member Data Documentation

◆ fArrMap

map< const char *, TClonesArray * > BmnMQSink::fArrMap
private

Definition at line 115 of file BmnMQSink.h.

Referenced by RegisterImpl().

◆ fCtx

void * BmnMQSink::fCtx
private

Definition at line 110 of file BmnMQSink.h.

Referenced by BmnMQSink(), Close(), and InitSink().

◆ fObjMap

map< const char *, TObject * > BmnMQSink::fObjMap
private

Definition at line 114 of file BmnMQSink.h.

Referenced by RegisterImpl().

◆ fOutChannel

std::string BmnMQSink::fOutChannel
private

Definition at line 107 of file BmnMQSink.h.

Referenced by InitSink().

◆ fOutPort

Int_t BmnMQSink::fOutPort
private

Definition at line 112 of file BmnMQSink.h.

Referenced by BmnMQSink(), and InitSink().

◆ fOutSocket

void * BmnMQSink::fOutSocket
private

Definition at line 111 of file BmnMQSink.h.

Referenced by BmnMQSink(), Close(), Fill(), and InitSink().

◆ fParts

BmnParts BmnMQSink::fParts
private

Definition at line 108 of file BmnMQSink.h.

Referenced by Fill(), and RegisterImpl().


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