Hall-D Software
alpha
|
#include <DEventWriterEVIO.h>
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 DTranslationTable * | ttab |
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 |
Definition at line 48 of file DEventWriterEVIO.h.
DEventWriterEVIO::DEventWriterEVIO | ( | JEventLoop * | locEventLoop | ) |
Definition at line 35 of file DEventWriterEVIO.cc.
References COMPACT, DEBUG_FILES, dMergedFilename, dMergeFiles, Get_NumEVIOOutputThreads(), japp, ofs_debug_input, ofs_debug_output, PREFER_EMULATED, and ttab.
DEventWriterEVIO::~DEventWriterEVIO | ( | void | ) |
Definition at line 344 of file DEventWriterEVIO.cc.
References Get_EVIOOutputters(), Get_EVIOOutputThreads(), Get_NumEVIOOutputThreads(), japp, and HDEVIOWriter::Quit().
|
private |
Definition at line 21 of file DEventWriterEVIO.cc.
Referenced by Open_OutputFile(), SetDetectorsToWriteOut(), and Write_EVIOEvent().
|
private |
Definition at line 14 of file DEventWriterEVIO.cc.
Referenced by Open_OutputFile(), Write_EVIOBuffer(), Write_EVIOEvent(), and ~DEventWriterEVIO().
|
private |
Definition at line 28 of file DEventWriterEVIO.cc.
Referenced by Open_OutputFile(), and ~DEventWriterEVIO().
|
inline |
Definition at line 67 of file DEventWriterEVIO.h.
|
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().
|
inline |
Definition at line 65 of file DEventWriterEVIO.h.
DEventWriterEVIO::JOBJECT_PUBLIC | ( | DEventWriterEVIO | ) |
|
protected |
Definition at line 317 of file DEventWriterEVIO.cc.
References COMPACT, Get_EVIOBufferWriters(), Get_EVIOOutputters(), Get_EVIOOutputThreads(), HDEVIOOutputThread(), and PREFER_EMULATED.
Referenced by Write_EVIOBuffer(), and Write_EVIOEvent().
|
inline |
Definition at line 68 of file DEventWriterEVIO.h.
|
inline |
Definition at line 66 of file DEventWriterEVIO.h.
Referenced by JEventProcessor_merge_rawevents::brun().
void DEventWriterEVIO::SetDetectorsToWriteOut | ( | string | detector_list, |
string | locOutputFileNameSubString | ||
) | const |
Definition at line 85 of file DEventWriterEVIO.cc.
References DTranslationTable::DetectorName(), Get_EVIOBufferWriters(), DTranslationTable::Get_ROCID_By_System(), japp, DTranslationTable::NUM_DETECTOR_TYPES, string, ttab, and DTranslationTable::UNKNOWN_DETECTOR.
bool DEventWriterEVIO::Write_EVIOBuffer | ( | JEventLoop * | locEventLoop, |
vector< uint32_t > * | locOutputBuffer, | ||
string | locOutputFileNameSubString | ||
) | const |
Definition at line 246 of file DEventWriterEVIO.cc.
References HDEVIOWriter::AddBufferToOutput(), Get_EVIOOutputters(), Get_OutputFileName(), japp, and Open_OutputFile().
Referenced by JEventProcessor_merge_rawevents::evnt(), and Write_EVIOBuffer().
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 | ||
) | const |
Definition at line 156 of file DEventWriterEVIO.cc.
Referenced by JEventProcessor_OmegaSkim::evnt(), JEventProcessor_ps_skim::evnt(), JEventProcessor_pi0calib::evnt(), JEventProcessor_merge_rawevents::evnt(), JEventProcessor_bigevents_skim::evnt(), JEventProcessor_pi0fcalskim::evnt(), JEventProcessor_cal_high_energy_skim::evnt(), JEventProcessor_pi0bcalskim::evnt(), JEventProcessor_2trackskim::evnt(), and JEventProcessor_trigger_skims::evnt().
bool DEventWriterEVIO::Write_EVIOEvent | ( | JEventLoop * | locEventLoop, |
string | locOutputFileNameSubString, | ||
vector< const JObject * > & | locObjectsToSave | ||
) | const |
Definition at line 163 of file DEventWriterEVIO.cc.
References HDEVIOWriter::AddBufferToOutput(), DEBUG_FILES, Get_EVIOBufferWriters(), Get_EVIOOutputters(), Get_OutputFileName(), HDEVIOWriter::GetBufferFromPool(), JEventSource_EVIO::GetEVIOBuffer(), japp, ofs_debug_input, ofs_debug_output, Open_OutputFile(), and DEVIOBufferWriter::WriteEventToBuffer().
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().
|
protected |
Definition at line 84 of file DEventWriterEVIO.h.
Referenced by DEventWriterEVIO(), and Get_OutputFileName().
|
protected |
Definition at line 83 of file DEventWriterEVIO.h.
Referenced by DEventWriterEVIO(), and Get_OutputFileName().
|
protected |
Definition at line 77 of file DEventWriterEVIO.h.
Referenced by DEventWriterEVIO(), and Write_EVIOEvent().
|
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().
|
protected |
Definition at line 81 of file DEventWriterEVIO.h.
Referenced by DEventWriterEVIO(), and SetDetectorsToWriteOut().