gdata
Loading...
Searching...
No Matches
GEventHeader Class Reference

#include <gEventHeader.h>

Inheritance diagram for GEventHeader:
Inheritance graph
Collaboration diagram for GEventHeader:
Collaboration graph

Public Member Functions

 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 Public Member Functions

static std::unique_ptr< GEventHeadercreate (const std::shared_ptr< GOptions > &gopts, int tid=-1)
 Factory method to create a GEventDataCollectionHeader with a unique event number.
 

Detailed Description

Definition at line 29 of file gEventHeader.h.

Constructor & Destructor Documentation

◆ 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
nThe local event number.
tidThe thread ID.
goptsPointer to a GOptions instance.

Definition at line 40 of file gEventHeader.h.

Member Function Documentation

◆ create()

static std::unique_ptr< GEventHeader > GEventHeader::create ( const std::shared_ptr< GOptions > & gopts,
int tid = -1 )
inlinestatic
Parameters
goptsA 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
Returns
The event number.

Definition at line 77 of file gEventHeader.h.

◆ getThreadID()

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

Definition at line 83 of file gEventHeader.h.

◆ getTimeStamp()

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

Definition at line 71 of file gEventHeader.h.


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