LDMX Software
UserAction.h File Reference

File holding UserAction prototype and supporting macro. More...

#include <iostream>
#include <map>
#include <string>
#include <vector>
#include "G4EventManager.hh"
#include "G4UserStackingAction.hh"
#include "Framework/Configure/Parameters.h"
#include "Framework/Factory.h"
#include "Framework/Logger.h"
#include "SimCore/Event/SimParticle.h"
#include "SimCore/G4User/UserEventInformation.h"

Go to the source code of this file.

Classes

class  simcore::UserAction
 Interface that defines a user action. More...
 

Namespaces

namespace  simcore
 Dynamically loadable photonuclear models either from SimCore or external libraries implementing this interface.
 

Macros

#define DECLARE_ACTION(CLASS)
 register a new UserAction with its factory
 

Enumerations

enum  simcore::TYPE {
  RUN = 1 , EVENT , TRACKING , STEPPING ,
  STACKING , NONE
}
 Enum for each of the user action types. More...
 

Detailed Description

File holding UserAction prototype and supporting macro.

Definition in file UserAction.h.

Macro Definition Documentation

◆ DECLARE_ACTION

#define DECLARE_ACTION ( CLASS)
Value:
#define FACTORY_REGISTRATION(prototype, derived)
Register a new class with a specific factory.
Definition Factory.h:469
Interface that defines a user action.
Definition UserAction.h:47

register a new UserAction with its factory

Parameters
[in]CLASSthe fully-specified class for the new UserAction (including any namespaces)

We just call FACTORY_REGISTRATION with simcore::UserAction as the first argument.

Definition at line 206 of file UserAction.h.