![]() |
ATLAS Offline Software
|
This class provides the services for writing FullEventFragment into file. More...
#include <ByteStreamEventStorageOutputSvc.h>
Classes | |
| struct | EventCache |
Public Member Functions | |
| ByteStreamEventStorageOutputSvc (const std::string &name, ISvcLocator *pSvcLocator) | |
| Constructors: | |
| virtual | ~ByteStreamEventStorageOutputSvc ()=default |
| Destructor. | |
| StatusCode | initialize () override |
| Required of all Gaudi Services. | |
| StatusCode | stop () override |
| StatusCode | finalize () override |
| virtual bool | putEvent (const RawEvent *re) override |
| Implementation of the IByteStreamOutputSvc interface method putEvent. | |
| virtual bool | putEvent (const RawEvent *re, const EventContext &ctx) override |
| StatusCode | io_reinit () override |
Private Member Functions | |
| StatusCode | reinit () |
reinitialize the service when a fork() occurred/was-issued | |
| bool | initDataWriter (const EventContext *ctx=nullptr) |
| initialize EventStorage's DataWriter | |
| bool | initDataWriterContents (const xAOD::EventInfo *, const ByteStreamMetadata *) |
| const ByteStreamMetadata * | getByteStreamMetadata () |
| const ByteStreamMetadata * | getByteStreamMetadata (const EventContext &ctx) |
| void | updateDataWriterParameters (DataWriterParameters &) const |
| Create DataWriter parameters from job properties. | |
| void | updateDataWriterParameters (DataWriterParameters ¶ms, const xAOD::EventInfo &evtInfo) const |
| Create DataWriter parameters from EventInfo. | |
| void | updateDataWriterParameters (DataWriterParameters ¶ms, const ByteStreamMetadata &metaData) const |
| Create DataWriter parameters from MetaData. | |
Private Attributes | |
| Gaudi::Property< std::string > | m_inputDir |
| < directory for the data files | |
| Gaudi::Property< std::string > | m_projectTag |
| Application Name. | |
| Gaudi::Property< std::string > | m_appName |
| File Tag. | |
| Gaudi::Property< std::string > | m_fileTag |
| stream type | |
| Gaudi::Property< std::string > | m_streamType |
| stream name | |
| Gaudi::Property< std::string > | m_streamName |
| eformat event version to produce, "v40" for run1, or "current" | |
| Gaudi::Property< std::string > | m_eformatVersion |
| EventStorage BS version to produce, "v5" for run1, or "current". | |
| Gaudi::Property< std::string > | m_eventStorageVersion |
| stream name for multiple output | |
| Gaudi::Property< std::string > | m_bsOutputStreamName |
| Gaudi::Property< std::string > | m_simpleFileName |
| use this string for filename, not from the "AgreedFileName" | |
| Gaudi::Property< int > | m_lumiBlockNumber |
| run number | |
| Gaudi::Property< int > | m_run {this, "RunNumber", 0, "part of filename"} |
| Dump fragments. | |
| Gaudi::Property< bool > | m_dump {this, "DumpFlag", false, "dump fragments"} |
| Write eventless files. | |
| Gaudi::Property< bool > | m_writeEventless |
| Compress events. | |
| Gaudi::Property< bool > | m_compressEvents {this, "CompressEvents", false, ""} |
| number of MB per file | |
| Gaudi::Property< unsigned int > | m_maxFileMB |
| number of events per file | |
| Gaudi::Property< unsigned int > | m_maxFileNE |
| SG::ReadHandleKey< xAOD::EventInfo > | m_eventInfoKey |
| SG::ReadHandleKey< ByteStreamMetadataContainer > | m_byteStreamMetadataKey |
| ServiceHandle< IIoComponentMgr > | m_ioMgr {"IoComponentMgr", name()} |
| ServiceHandle< ITagInfoMgr > | m_tagInfoMgr {"TagInfoMgr", name()} |
| ServiceHandle< StoreGateSvc > | m_metaDataStore {"StoreGateSvc/MetaDataStore", name()} |
| int | m_totalEventCounter {0} |
| number of event counter | |
| bool | m_isRun1 {false} |
| std::unique_ptr< ByteStreamDataWriter > | m_dataWriter |
| pointer to DataWriter | |
| std::mutex | m_dataWriterMutex |
| mutex to lock data writer during initialization or writing | |
| SG::SlotSpecificObj< EventCache > | m_eventCache |
| Cache of event data for each slot. | |
This class provides the services for writing FullEventFragment into file.
This class implements the interface IByteStreamOutputSvc for the conversion service to write the output to a file.
Definition at line 49 of file ByteStreamEventStorageOutputSvc.h.
| ByteStreamEventStorageOutputSvc::ByteStreamEventStorageOutputSvc | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Constructors:
Definition at line 31 of file ByteStreamEventStorageOutputSvc.cxx.
|
virtualdefault |
Destructor.
|
override |
Definition at line 111 of file ByteStreamEventStorageOutputSvc.cxx.
|
private |
Definition at line 291 of file ByteStreamEventStorageOutputSvc.cxx.
|
private |
Definition at line 307 of file ByteStreamEventStorageOutputSvc.cxx.
|
private |
initialize EventStorage's DataWriter
Definition at line 122 of file ByteStreamEventStorageOutputSvc.cxx.
|
private |
Definition at line 139 of file ByteStreamEventStorageOutputSvc.cxx.
|
override |
Required of all Gaudi Services.
Definition at line 38 of file ByteStreamEventStorageOutputSvc.cxx.
|
override |
Definition at line 256 of file ByteStreamEventStorageOutputSvc.cxx.
|
overridevirtual |
Implementation of the IByteStreamOutputSvc interface method putEvent.
Definition at line 175 of file ByteStreamEventStorageOutputSvc.cxx.
|
overridevirtual |
Definition at line 182 of file ByteStreamEventStorageOutputSvc.cxx.
|
private |
reinitialize the service when a fork() occurred/was-issued
Definition at line 88 of file ByteStreamEventStorageOutputSvc.cxx.
|
override |
Definition at line 95 of file ByteStreamEventStorageOutputSvc.cxx.
|
private |
Create DataWriter parameters from job properties.
Definition at line 324 of file ByteStreamEventStorageOutputSvc.cxx.
|
private |
Create DataWriter parameters from MetaData.
Definition at line 456 of file ByteStreamEventStorageOutputSvc.cxx.
|
private |
Create DataWriter parameters from EventInfo.
Definition at line 378 of file ByteStreamEventStorageOutputSvc.cxx.
|
private |
File Tag.
Definition at line 83 of file ByteStreamEventStorageOutputSvc.h.
|
private |
Definition at line 110 of file ByteStreamEventStorageOutputSvc.h.
|
private |
Definition at line 145 of file ByteStreamEventStorageOutputSvc.h.
|
private |
number of MB per file
Definition at line 132 of file ByteStreamEventStorageOutputSvc.h.
|
private |
pointer to DataWriter
Definition at line 160 of file ByteStreamEventStorageOutputSvc.h.
|
private |
mutex to lock data writer during initialization or writing
Definition at line 163 of file ByteStreamEventStorageOutputSvc.h.
|
private |
Write eventless files.
Definition at line 125 of file ByteStreamEventStorageOutputSvc.h.
|
private |
EventStorage BS version to produce, "v5" for run1, or "current".
Definition at line 99 of file ByteStreamEventStorageOutputSvc.h.
|
private |
Cache of event data for each slot.
Definition at line 189 of file ByteStreamEventStorageOutputSvc.h.
|
private |
Definition at line 142 of file ByteStreamEventStorageOutputSvc.h.
|
private |
stream name for multiple output
Definition at line 104 of file ByteStreamEventStorageOutputSvc.h.
|
private |
stream type
Definition at line 87 of file ByteStreamEventStorageOutputSvc.h.
|
private |
< directory for the data files
Project Tag
Definition at line 75 of file ByteStreamEventStorageOutputSvc.h.
|
private |
Definition at line 149 of file ByteStreamEventStorageOutputSvc.h.
|
private |
Definition at line 157 of file ByteStreamEventStorageOutputSvc.h.
|
private |
run number
Definition at line 118 of file ByteStreamEventStorageOutputSvc.h.
|
private |
number of events per file
Definition at line 135 of file ByteStreamEventStorageOutputSvc.h.
|
private |
Definition at line 139 of file ByteStreamEventStorageOutputSvc.h.
|
private |
Definition at line 151 of file ByteStreamEventStorageOutputSvc.h.
|
private |
Application Name.
Definition at line 79 of file ByteStreamEventStorageOutputSvc.h.
|
private |
Dump fragments.
Definition at line 122 of file ByteStreamEventStorageOutputSvc.h.
|
private |
use this string for filename, not from the "AgreedFileName"
luminosity block number
Definition at line 114 of file ByteStreamEventStorageOutputSvc.h.
|
private |
eformat event version to produce, "v40" for run1, or "current"
Definition at line 95 of file ByteStreamEventStorageOutputSvc.h.
|
private |
stream name
Definition at line 91 of file ByteStreamEventStorageOutputSvc.h.
|
private |
Definition at line 150 of file ByteStreamEventStorageOutputSvc.h.
|
private |
|
private |
Compress events.
Definition at line 128 of file ByteStreamEventStorageOutputSvc.h.