#include <gEventHeader.h>
|
| GEventHeader (const std::shared_ptr< GOptions > &gopts, int n, int tid) |
| Constructs a GEventDataCollectionHeader.
|
|
std::string | getTimeStamp () const |
| Gets the timestamp.
|
|
int | getG4LocalEvn () const |
| Gets the local event number.
|
|
int | getThreadID () const |
| Gets the thread ID.
|
|
|
static std::unique_ptr< GEventHeader > | create (const std::shared_ptr< GOptions > &gopts, int tid=-1) |
| Factory method to create a GEventDataCollectionHeader with a unique event number.
|
|
Definition at line 29 of file gEventHeader.h.
◆ GEventHeader()
GEventHeader::GEventHeader |
( |
const std::shared_ptr< GOptions > & | gopts, |
|
|
int | n, |
|
|
int | tid ) |
|
inline |
The event number is obtained from aEvent->GetEventID(), and the thread ID from G4Threading::G4GetThreadId().
- Parameters
-
n | The local event number. |
tid | The thread ID. |
gopts | Pointer to a GOptions instance. |
Definition at line 40 of file gEventHeader.h.
◆ create()
static std::unique_ptr< GEventHeader > GEventHeader::create |
( |
const std::shared_ptr< GOptions > & | gopts, |
|
|
int | tid = -1 ) |
|
inlinestatic |
- Parameters
-
gopts | A shared pointer to Goptions. |
- Returns
- A unique_ptr to the created GEventDataCollectionHeader.
Definition at line 57 of file gEventHeader.h.
◆ getG4LocalEvn()
int GEventHeader::getG4LocalEvn |
( |
| ) |
const |
|
inline |
◆ getThreadID()
int GEventHeader::getThreadID |
( |
| ) |
const |
|
inline |
◆ getTimeStamp()
std::string GEventHeader::getTimeStamp |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: