ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
ByteStreamEventStorageInputSvc::EventCache Struct Reference
Collaboration diagram for ByteStreamEventStorageInputSvc::EventCache:

Public Member Functions

void releaseEvent ()
 deletes fragments and raw event More...
 
virtual ~EventCache ()
 calls releaseEvent More...
 

Public Attributes

std::unique_ptr< RawEventrawEvent = nullptr
 current event More...
 
char * data = nullptr
 take ownership of RawEvent content More...
 
unsigned int eventStatus = 0
 check_tree() status of the current event More...
 
long long int eventOffset = 0
 event offset within a file, can be -1 More...
 

Detailed Description

Definition at line 75 of file ByteStreamEventStorageInputSvc.h.

Constructor & Destructor Documentation

◆ ~EventCache()

ByteStreamEventStorageInputSvc::EventCache::~EventCache ( )
virtual

calls releaseEvent

Definition at line 474 of file ByteStreamEventStorageInputSvc.cxx.

475 {
476  releaseEvent();
477 }

Member Function Documentation

◆ releaseEvent()

void ByteStreamEventStorageInputSvc::EventCache::releaseEvent ( )

deletes fragments and raw event

Definition at line 458 of file ByteStreamEventStorageInputSvc.cxx.

459 {
460  // cleanup parts of previous event and re-init them
461  if (rawEvent) {
462  rawEvent.reset(nullptr);
463  eventStatus = 0;
464  }
465 
466  if (data) {
467  delete [] data;
468  data = nullptr;
469  }
470 }

Member Data Documentation

◆ data

char* ByteStreamEventStorageInputSvc::EventCache::data = nullptr

take ownership of RawEvent content

Definition at line 77 of file ByteStreamEventStorageInputSvc.h.

◆ eventOffset

long long int ByteStreamEventStorageInputSvc::EventCache::eventOffset = 0

event offset within a file, can be -1

Definition at line 79 of file ByteStreamEventStorageInputSvc.h.

◆ eventStatus

unsigned int ByteStreamEventStorageInputSvc::EventCache::eventStatus = 0

check_tree() status of the current event

Definition at line 78 of file ByteStreamEventStorageInputSvc.h.

◆ rawEvent

std::unique_ptr<RawEvent> ByteStreamEventStorageInputSvc::EventCache::rawEvent = nullptr

current event

Definition at line 76 of file ByteStreamEventStorageInputSvc.h.


The documentation for this struct was generated from the following files:
ByteStreamEventStorageInputSvc::EventCache::eventStatus
unsigned int eventStatus
check_tree() status of the current event
Definition: ByteStreamEventStorageInputSvc.h:78
ByteStreamEventStorageInputSvc::EventCache::rawEvent
std::unique_ptr< RawEvent > rawEvent
current event
Definition: ByteStreamEventStorageInputSvc.h:76
ByteStreamEventStorageInputSvc::EventCache::data
char * data
take ownership of RawEvent content
Definition: ByteStreamEventStorageInputSvc.h:77
ByteStreamEventStorageInputSvc::EventCache::releaseEvent
void releaseEvent()
deletes fragments and raw event
Definition: ByteStreamEventStorageInputSvc.cxx:458