actions
Loading...
Searching...
No Matches
gEventAction.h File Reference

Declares GEventAction, the per-event processing action for the GEMC actions module. More...

#include "G4UserEventAction.hh"
#include <gemc/gbase/gbase.h>
#include <gemc/actions/run/gRunAction.h>
#include <chrono>
Include dependency graph for gEventAction.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  GEventAction
 Handles event begin/end callbacks, hit digitization, and event-level publication. More...
 

Namespaces

namespace  geventaction
 Namespace containing helpers related to event-action configuration.
 

Functions

GOptions geventaction::defineOptions ()
 Returns the options associated with the event-action logger scope.
 

Variables

constexpr const char * EVENTACTION_LOGGER = "geventaction"
 
constexpr const char * LOG_EVERY_OPTION = "log_every"
 Name of the option controlling periodic per-event log messages.
 
constexpr const char * SAVE_ORIGINAL_TRACK_SWITCH = "save_original_track"
 
constexpr const char * SAVE_ALL_ANCESTORS_SWITCH = "save_all_ancestors"
 

Variable Documentation

◆ EVENTACTION_LOGGER

constexpr const char* EVENTACTION_LOGGER = "geventaction"
constexpr

Definition at line 22 of file gEventAction.h.

◆ LOG_EVERY_OPTION

constexpr const char* LOG_EVERY_OPTION = "log_every"
constexpr

Accepts a string of the form N or N-NTH (N is the log module):

  • N : every worker thread prints a message each time it has processed a multiple of N events (the count is per thread, not the global event id).
  • N-NTH: as above, but only the worker thread with id NTH prints (0 <= NTH < nthreads).

Definition at line 32 of file gEventAction.h.

◆ SAVE_ALL_ANCESTORS_SWITCH

constexpr const char* SAVE_ALL_ANCESTORS_SWITCH = "save_all_ancestors"
constexpr

Definition at line 34 of file gEventAction.h.

◆ SAVE_ORIGINAL_TRACK_SWITCH

constexpr const char* SAVE_ORIGINAL_TRACK_SWITCH = "save_original_track"
constexpr

Definition at line 33 of file gEventAction.h.