Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEventWriterEVIO Class Reference

#include <DEventWriterEVIO.h>

+ Inheritance diagram for DEventWriterEVIO:

Public Member Functions

 JOBJECT_PUBLIC (DEventWriterEVIO)
 
 DEventWriterEVIO (JEventLoop *locEventLoop)
 
 ~DEventWriterEVIO (void)
 
bool Write_EVIOEvent (JEventLoop *locEventLoop, string locOutputFileNameSubString) const
 
bool Write_EVIOEvent (JEventLoop *locEventLoop, string locOutputFileNameSubString, vector< const JObject * > &locObjectsToSave) const
 
bool Write_EVIOBuffer (JEventLoop *locEventLoop, vector< uint32_t > *locOutputBuffer, string locOutputFileNameSubString) const
 
bool Write_EVIOBuffer (JEventLoop *locEventLoop, uint32_t *locOutputBuffer, uint32_t locOutputBufferSize, string locOutputFileNameSubString) const
 
string Get_OutputFileName (JEventLoop *locEventLoop, string locOutputFileNameSubString) const
 
void SetDetectorsToWriteOut (string detector_list, string locOutputFileNameSubString) const
 
bool Is_MergingFiles () const
 
void Set_MergeFiles (bool in_flag)
 
string Get_MergedFilename () const
 
void Set_MergedFilename (string in_filename)
 

Public Attributes

bool COMPACT
 
bool PREFER_EMULATED
 
bool DEBUG_FILES
 

Protected Member Functions

bool Open_OutputFile (JEventLoop *locEventLoop, string locOutputFileName) const
 

Protected Attributes

std::ofstream * ofs_debug_input
 
std::ofstream * ofs_debug_output
 
const DTranslationTablettab
 
bool dMergeFiles
 
string dMergedFilename
 

Private Member Functions

size_t & Get_NumEVIOOutputThreads (void) const
 
map< string, HDEVIOWriter * > & Get_EVIOOutputters (void) const
 
map< string, pthread_t > & Get_EVIOOutputThreads (void) const
 
map< string, DEVIOBufferWriter * > & Get_EVIOBufferWriters (void) const
 

Detailed Description

Definition at line 48 of file DEventWriterEVIO.h.

Constructor & Destructor Documentation

DEventWriterEVIO::DEventWriterEVIO ( JEventLoop *  locEventLoop)
DEventWriterEVIO::~DEventWriterEVIO ( void  )

Member Function Documentation

map< string, DEVIOBufferWriter * > & DEventWriterEVIO::Get_EVIOBufferWriters ( void  ) const
private

Definition at line 21 of file DEventWriterEVIO.cc.

Referenced by Open_OutputFile(), SetDetectorsToWriteOut(), and Write_EVIOEvent().

map< string, HDEVIOWriter * > & DEventWriterEVIO::Get_EVIOOutputters ( void  ) const
private
map< string, pthread_t > & DEventWriterEVIO::Get_EVIOOutputThreads ( void  ) const
private

Definition at line 28 of file DEventWriterEVIO.cc.

Referenced by Open_OutputFile(), and ~DEventWriterEVIO().

string DEventWriterEVIO::Get_MergedFilename ( ) const
inline

Definition at line 67 of file DEventWriterEVIO.h.

size_t & DEventWriterEVIO::Get_NumEVIOOutputThreads ( void  ) const
private

Definition at line 7 of file DEventWriterEVIO.cc.

Referenced by DEventWriterEVIO(), and ~DEventWriterEVIO().

string DEventWriterEVIO::Get_OutputFileName ( JEventLoop *  locEventLoop,
string  locOutputFileNameSubString 
) const

Definition at line 287 of file DEventWriterEVIO.cc.

References dMergedFilename, and dMergeFiles.

Referenced by Write_EVIOBuffer(), and Write_EVIOEvent().

bool DEventWriterEVIO::Is_MergingFiles ( ) const
inline

Definition at line 65 of file DEventWriterEVIO.h.

DEventWriterEVIO::JOBJECT_PUBLIC ( DEventWriterEVIO  )
bool DEventWriterEVIO::Open_OutputFile ( JEventLoop *  locEventLoop,
string  locOutputFileName 
) const
protected
void DEventWriterEVIO::Set_MergedFilename ( string  in_filename)
inline

Definition at line 68 of file DEventWriterEVIO.h.

void DEventWriterEVIO::Set_MergeFiles ( bool  in_flag)
inline

Definition at line 66 of file DEventWriterEVIO.h.

Referenced by JEventProcessor_merge_rawevents::brun().

void DEventWriterEVIO::SetDetectorsToWriteOut ( string  detector_list,
string  locOutputFileNameSubString 
) const
bool DEventWriterEVIO::Write_EVIOBuffer ( JEventLoop *  locEventLoop,
vector< uint32_t > *  locOutputBuffer,
string  locOutputFileNameSubString 
) const
bool DEventWriterEVIO::Write_EVIOBuffer ( JEventLoop *  locEventLoop,
uint32_t *  locOutputBuffer,
uint32_t  locOutputBufferSize,
string  locOutputFileNameSubString 
) const

Definition at line 224 of file DEventWriterEVIO.cc.

References Write_EVIOBuffer().

bool DEventWriterEVIO::Write_EVIOEvent ( JEventLoop *  locEventLoop,
string  locOutputFileNameSubString,
vector< const JObject * > &  locObjectsToSave 
) const

Member Data Documentation

bool DEventWriterEVIO::COMPACT

Definition at line 70 of file DEventWriterEVIO.h.

Referenced by DEventWriterEVIO(), and Open_OutputFile().

bool DEventWriterEVIO::DEBUG_FILES

Definition at line 72 of file DEventWriterEVIO.h.

Referenced by DEventWriterEVIO(), and Write_EVIOEvent().

string DEventWriterEVIO::dMergedFilename
protected

Definition at line 84 of file DEventWriterEVIO.h.

Referenced by DEventWriterEVIO(), and Get_OutputFileName().

bool DEventWriterEVIO::dMergeFiles
protected

Definition at line 83 of file DEventWriterEVIO.h.

Referenced by DEventWriterEVIO(), and Get_OutputFileName().

std::ofstream* DEventWriterEVIO::ofs_debug_input
protected

Definition at line 77 of file DEventWriterEVIO.h.

Referenced by DEventWriterEVIO(), and Write_EVIOEvent().

std::ofstream* DEventWriterEVIO::ofs_debug_output
protected

Definition at line 78 of file DEventWriterEVIO.h.

Referenced by DEventWriterEVIO(), and Write_EVIOEvent().

bool DEventWriterEVIO::PREFER_EMULATED

Definition at line 71 of file DEventWriterEVIO.h.

Referenced by DEventWriterEVIO(), and Open_OutputFile().

const DTranslationTable* DEventWriterEVIO::ttab
protected

Definition at line 81 of file DEventWriterEVIO.h.

Referenced by DEventWriterEVIO(), and SetDetectorsToWriteOut().


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