![]() |
ATLAS Offline Software
|
This class is the ByteStreamInputSvc for reading events written by EventStorage. More...
#include <ByteStreamEventStorageInputSvc.h>
Classes | |
| struct | EventCache |
Public Member Functions | |
| ByteStreamEventStorageInputSvc (const std::string &name, ISvcLocator *pSvcLocator) | |
| Constructors: | |
| virtual | ~ByteStreamEventStorageInputSvc () |
| Destructor. | |
| virtual StatusCode | initialize () override |
| Required of all Gaudi Services. | |
| virtual StatusCode | stop () override |
| virtual StatusCode | finalize () override |
| virtual const RawEvent * | currentEvent () const override |
| Implementation of the IByteStreamInputSvc interface methods. | |
| virtual const RawEvent * | nextEvent () override |
| ++, new | |
| virtual const RawEvent * | previousEvent () override |
| –, old | |
| virtual void | setEvent (void *data, unsigned int eventStatus) override |
| virtual unsigned int | currentEventStatus () const override |
| Return the current event status. | |
| virtual void | validateEvent () override |
| virtual long | positionInBlock () override |
| virtual std::pair< long, std::string > | getBlockIterator (const std::string &fileName) override |
| virtual void | closeBlockIterator (bool clearMetadata=true) override |
| virtual bool | setSequentialRead () |
| virtual bool | ready () override |
| virtual StatusCode | generateDataHeader () override |
Private Types | |
| enum | Advance { PREVIOUS = -1 , NEXT = 1 } |
Private Member Functions | |
| StatusCode | loadMetadata () |
| void | buildFragment (EventCache *cache, uint32_t eventSize, bool validate) const |
| bool | readerReady () |
| bool | ROBFragmentCheck (const RawEvent *) const |
| unsigned | validateEvent (const RawEvent *const rawEvent) const |
| void | setEvent (const EventContext &context, void *data, unsigned int eventStatus) |
| const RawEvent * | getEvent (Advance step) |
| std::unique_ptr< DataHeaderElement > | makeBSProvenance () const |
| template<typename T> | |
| StatusCode | deleteEntry (const std::string &key) |
Private Attributes | |
| std::mutex | m_readerMutex |
| SG::SlotSpecificObj< EventCache > | m_eventsCache |
| std::unique_ptr< EventStorage::DataReader > | m_reader |
| DataReader from EventStorage. | |
| std::vector< long long int > | m_evtOffsets |
| offset for event i in that file | |
| unsigned int | m_evtInFile |
| long long int | m_evtFileOffset |
| last read in event offset within a file, can be -1 | |
| std::string | m_fileGUID |
| current file GUID | |
| ServiceHandle< StoreGateSvc > | m_storeGate {this, "EventStore", "StoreGateSvc"} |
| Pointer to StoreGate. | |
| ServiceHandle< StoreGateSvc > | m_inputMetadata {this, "MetaDataStore", "StoreGateSvc/InputMetaDataStore"} |
| ServiceHandle< IROBDataProviderSvc > | m_robProvider |
| Gaudi::Property< bool > | m_sequential {this, "EnableSequential", false, "enable sequential reading"} |
| Gaudi::Property< bool > | m_dump {this, "DumpFlag", false, "Dump fragments"} |
| Gaudi::Property< float > | m_wait {this, "WaitSecs", 0.0f, "Seconds to wait if input is in wait state"} |
| Gaudi::Property< bool > | m_valEvent {this, "ValidateEvent", false, "switch on check_tree when reading events"} |
| Gaudi::Property< std::string > | m_eventInfoKey {this, "EventInfoKey", "EventInfo", "Key of EventInfo in metadata store"} |
This class is the ByteStreamInputSvc for reading events written by EventStorage.
Definition at line 35 of file ByteStreamEventStorageInputSvc.h.
|
private |
| ByteStreamEventStorageInputSvc::ByteStreamEventStorageInputSvc | ( | const std::string & | name, |
| ISvcLocator * | pSvcLocator ) |
Constructors:
Definition at line 38 of file ByteStreamEventStorageInputSvc.cxx.
|
virtualdefault |
Destructor.
|
private |
Definition at line 304 of file ByteStreamEventStorageInputSvc.cxx.
|
overridevirtual |
Definition at line 466 of file ByteStreamEventStorageInputSvc.cxx.
|
overridevirtual |
Implementation of the IByteStreamInputSvc interface methods.
Definition at line 633 of file ByteStreamEventStorageInputSvc.cxx.
|
overridevirtual |
Return the current event status.
Definition at line 642 of file ByteStreamEventStorageInputSvc.cxx.
|
inlineprivate |
Definition at line 118 of file ByteStreamEventStorageInputSvc.h.
|
overridevirtual |
Definition at line 83 of file ByteStreamEventStorageInputSvc.cxx.
|
overridevirtual |
Definition at line 373 of file ByteStreamEventStorageInputSvc.cxx.
|
overridevirtual |
Definition at line 505 of file ByteStreamEventStorageInputSvc.cxx.
|
overridevirtual |
Required of all Gaudi Services.
Definition at line 60 of file ByteStreamEventStorageInputSvc.cxx.
|
private |
Definition at line 99 of file ByteStreamEventStorageInputSvc.cxx.
|
private |
Definition at line 651 of file ByteStreamEventStorageInputSvc.cxx.
|
overridevirtual |
++, new
Definition at line 179 of file ByteStreamEventStorageInputSvc.cxx.
|
overridevirtual |
Definition at line 91 of file ByteStreamEventStorageInputSvc.cxx.
|
overridevirtual |
–, old
Definition at line 112 of file ByteStreamEventStorageInputSvc.cxx.
|
private |
Definition at line 548 of file ByteStreamEventStorageInputSvc.cxx.
|
overridevirtual |
Definition at line 497 of file ByteStreamEventStorageInputSvc.cxx.
|
private |
Definition at line 566 of file ByteStreamEventStorageInputSvc.cxx.
|
private |
Definition at line 607 of file ByteStreamEventStorageInputSvc.cxx.
|
overridevirtual |
Definition at line 598 of file ByteStreamEventStorageInputSvc.cxx.
|
virtual |
Definition at line 487 of file ByteStreamEventStorageInputSvc.cxx.
|
overridevirtual |
Definition at line 74 of file ByteStreamEventStorageInputSvc.cxx.
|
overridevirtual |
Definition at line 259 of file ByteStreamEventStorageInputSvc.cxx.
|
private |
Definition at line 269 of file ByteStreamEventStorageInputSvc.cxx.
|
private |
Definition at line 99 of file ByteStreamEventStorageInputSvc.h.
|
private |
Definition at line 102 of file ByteStreamEventStorageInputSvc.h.
|
private |
Definition at line 81 of file ByteStreamEventStorageInputSvc.h.
|
private |
last read in event offset within a file, can be -1
Definition at line 87 of file ByteStreamEventStorageInputSvc.h.
|
private |
Definition at line 86 of file ByteStreamEventStorageInputSvc.h.
|
private |
offset for event i in that file
Definition at line 85 of file ByteStreamEventStorageInputSvc.h.
|
private |
current file GUID
Definition at line 89 of file ByteStreamEventStorageInputSvc.h.
|
private |
Definition at line 96 of file ByteStreamEventStorageInputSvc.h.
|
private |
DataReader from EventStorage.
Definition at line 83 of file ByteStreamEventStorageInputSvc.h.
|
private |
Definition at line 70 of file ByteStreamEventStorageInputSvc.h.
|
private |
Definition at line 97 of file ByteStreamEventStorageInputSvc.h.
|
private |
Definition at line 98 of file ByteStreamEventStorageInputSvc.h.
|
private |
Pointer to StoreGate.
Definition at line 95 of file ByteStreamEventStorageInputSvc.h.
|
private |
Definition at line 101 of file ByteStreamEventStorageInputSvc.h.
|
private |
Definition at line 100 of file ByteStreamEventStorageInputSvc.h.