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 72 of file ByteStreamEventStorageInputSvc.h.

Constructor & Destructor Documentation

◆ ~EventCache()

ByteStreamEventStorageInputSvc::EventCache::~EventCache ( )
virtual

calls releaseEvent

Definition at line 473 of file ByteStreamEventStorageInputSvc.cxx.

474 {
475  releaseEvent();
476 }

Member Function Documentation

◆ releaseEvent()

void ByteStreamEventStorageInputSvc::EventCache::releaseEvent ( )

deletes fragments and raw event

Definition at line 457 of file ByteStreamEventStorageInputSvc.cxx.

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

Member Data Documentation

◆ data

char* ByteStreamEventStorageInputSvc::EventCache::data = nullptr

take ownership of RawEvent content

Definition at line 74 of file ByteStreamEventStorageInputSvc.h.

◆ eventOffset

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

event offset within a file, can be -1

Definition at line 76 of file ByteStreamEventStorageInputSvc.h.

◆ eventStatus

unsigned int ByteStreamEventStorageInputSvc::EventCache::eventStatus = 0

check_tree() status of the current event

Definition at line 75 of file ByteStreamEventStorageInputSvc.h.

◆ rawEvent

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

current event

Definition at line 73 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:75
ByteStreamEventStorageInputSvc::EventCache::rawEvent
std::unique_ptr< RawEvent > rawEvent
current event
Definition: ByteStreamEventStorageInputSvc.h:73
ByteStreamEventStorageInputSvc::EventCache::data
char * data
take ownership of RawEvent content
Definition: ByteStreamEventStorageInputSvc.h:74
ByteStreamEventStorageInputSvc::EventCache::releaseEvent
void releaseEvent()
deletes fragments and raw event
Definition: ByteStreamEventStorageInputSvc.cxx:457