gdata
GEventDataCollectionHeader Class Reference

#include <gEventDataCollectionHeader.h>

Collaboration diagram for GEventDataCollectionHeader:
Collaboration graph

Public Member Functions

 GEventDataCollectionHeader (int n, int tid, std::shared_ptr< GLogger > logger)
 Constructs a GEventDataCollectionHeader. More...
 
 ~GEventDataCollectionHeader ()
 Destructor for GEventDataCollectionHeader. More...
 
std::string getTimeStamp () const
 Gets the timestamp. More...
 
int getG4LocalEvn () const
 Gets the local event number. More...
 
int getThreadID () const
 Gets the thread ID. More...
 

Detailed Description

Definition at line 15 of file gEventDataCollectionHeader.h.

Constructor & Destructor Documentation

◆ GEventDataCollectionHeader()

GEventDataCollectionHeader::GEventDataCollectionHeader ( int  n,
int  tid,
std::shared_ptr< GLogger >  logger 
)
inline

The event number is obtained from aEvent->GetEventID(), and the thread ID from G4Threading::G4GetThreadId().

Parameters
nThe local event number.
tidThe thread ID.
loggerPointer to a GLogger instance.

Definition at line 26 of file gEventDataCollectionHeader.h.

◆ ~GEventDataCollectionHeader()

GEventDataCollectionHeader::~GEventDataCollectionHeader ( )
inline

Definition at line 38 of file gEventDataCollectionHeader.h.

Member Function Documentation

◆ getG4LocalEvn()

int GEventDataCollectionHeader::getG4LocalEvn ( ) const
inline
Returns
The event number.

Definition at line 50 of file gEventDataCollectionHeader.h.

◆ getThreadID()

int GEventDataCollectionHeader::getThreadID ( ) const
inline
Returns
The thread ID.

Definition at line 56 of file gEventDataCollectionHeader.h.

◆ getTimeStamp()

std::string GEventDataCollectionHeader::getTimeStamp ( ) const
inline
Returns
The timestamp as a string.

Definition at line 44 of file gEventDataCollectionHeader.h.


The documentation for this class was generated from the following file: