#include <UserActionManager.h>
Definition at line 60 of file UserActionManager.h.
g4b::UserActionManager::~UserActionManager |
( |
| ) |
|
|
virtual |
g4b::UserActionManager::UserActionManager |
( |
| ) |
|
|
protected |
static void g4b::UserActionManager::AddAndAdoptAction |
( |
UserAction * |
a | ) |
|
|
inlinestatic |
Definition at line 82 of file UserActionManager.h.
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
static fuserActions_t fuserActions
void g4b::UserActionManager::BeginOfEventAction |
( |
const G4Event * |
a_event | ) |
|
|
virtual |
Definition at line 122 of file UserActionManager.cxx.
125 (*i)->BeginOfEventAction(a_event);
fuserActions_t::const_iterator fuserActions_ptr_t
static fuserActions_t fuserActions
void g4b::UserActionManager::BeginOfRunAction |
( |
const G4Run * |
a_run | ) |
|
|
virtual |
Definition at line 106 of file UserActionManager.cxx.
109 (*i)->BeginOfRunAction(a_run);
fuserActions_t::const_iterator fuserActions_ptr_t
static fuserActions_t fuserActions
G4ClassificationOfNewTrack g4b::UserActionManager::ClassifyNewTrack |
( |
const G4Track * |
a_track | ) |
|
|
virtual |
Definition at line 163 of file UserActionManager.cxx.
165 std::map<G4ClassificationOfNewTrack,int> stackChoices;
167 if ( (*i)->ProvidesStacking() ) {
168 G4ClassificationOfNewTrack choice = (*i)->StackClassifyNewTrack(a_track);
169 stackChoices[choice]++;
181 const G4ClassificationOfNewTrack priority[] =
182 { fKill, fPostpone, fWaiting, fUrgent };
183 const size_t nprio =
sizeof(priority)/
sizeof(G4ClassificationOfNewTrack);
184 for (
unsigned int j=0; j<nprio; ++j) {
185 G4ClassificationOfNewTrack saction = priority[j];
186 if ( stackChoices[saction] > 0 )
return saction;
fuserActions_t::const_iterator fuserActions_ptr_t
static fuserActions_t fuserActions
void g4b::UserActionManager::Close |
( |
void |
| ) |
|
bool g4b::UserActionManager::DoesAnyActionProvideStacking |
( |
| ) |
|
|
virtual |
Definition at line 213 of file UserActionManager.cxx.
218 doany |= (*i)->ProvidesStacking();
fuserActions_t::const_iterator fuserActions_ptr_t
static fuserActions_t fuserActions
void g4b::UserActionManager::EndOfEventAction |
( |
const G4Event * |
a_event | ) |
|
|
virtual |
Definition at line 130 of file UserActionManager.cxx.
133 (*i)->EndOfEventAction(a_event);
fuserActions_t::const_iterator fuserActions_ptr_t
static fuserActions_t fuserActions
void g4b::UserActionManager::EndOfRunAction |
( |
const G4Run * |
a_run | ) |
|
|
virtual |
Definition at line 114 of file UserActionManager.cxx.
117 (*i)->EndOfRunAction(a_run);
fuserActions_t::const_iterator fuserActions_ptr_t
static fuserActions_t fuserActions
UserAction* g4b::UserActionManager::GetAction |
( |
G4int |
i | ) |
const |
|
inline |
Definition at line 76 of file UserActionManager.cxx.
79 if ( indx < 0 )
return 0;
G4int GetIndex(std::string const &name) const
static fuserActions_t fuserActions
G4EventManager* g4b::UserActionManager::GetEventManager |
( |
| ) |
const |
|
inline |
G4int g4b::UserActionManager::GetIndex |
( |
std::string const & |
name | ) |
const |
Definition at line 65 of file UserActionManager.cxx.
69 if ( (*i)->GetName() ==
name )
return indx;
fuserActions_t::const_iterator fuserActions_ptr_t
static fuserActions_t fuserActions
G4int g4b::UserActionManager::GetSize |
( |
| ) |
const |
|
inline |
G4SteppingManager* g4b::UserActionManager::GetSteppingManager |
( |
| ) |
const |
|
inline |
G4TrackingManager* g4b::UserActionManager::GetTrackingManager |
( |
| ) |
const |
|
inline |
void g4b::UserActionManager::NewStage |
( |
| ) |
|
|
virtual |
Definition at line 193 of file UserActionManager.cxx.
196 if ( (*i)->ProvidesStacking() ) {
197 (*i)->StackNewStage();
fuserActions_t::const_iterator fuserActions_ptr_t
static fuserActions_t fuserActions
void g4b::UserActionManager::PostUserTrackingAction |
( |
const G4Track * |
a_track | ) |
|
|
virtual |
Definition at line 146 of file UserActionManager.cxx.
149 (*i)->PostTrackingAction(a_track);
fuserActions_t::const_iterator fuserActions_ptr_t
static fuserActions_t fuserActions
void g4b::UserActionManager::PrepareNewEvent |
( |
| ) |
|
|
virtual |
Definition at line 203 of file UserActionManager.cxx.
206 if ( (*i)->ProvidesStacking() ) {
207 (*i)->StackPrepareNewEvent();
fuserActions_t::const_iterator fuserActions_ptr_t
static fuserActions_t fuserActions
void g4b::UserActionManager::PreUserTrackingAction |
( |
const G4Track * |
a_track | ) |
|
|
virtual |
Definition at line 138 of file UserActionManager.cxx.
141 (*i)->PreTrackingAction(a_track);
fuserActions_t::const_iterator fuserActions_ptr_t
static fuserActions_t fuserActions
void g4b::UserActionManager::PrintActionList |
( |
std::string const & |
opt | ) |
const |
Definition at line 84 of file UserActionManager.cxx.
86 bool pcfg = (
opt.find(
"config") != std::string::npos );
87 std::cout <<
"UserActionManager::PrintActionList " <<
GetSize()
89 for ( G4int indx=0; indx <
GetSize(); ++indx ) {
91 std::cout <<
" [" << indx <<
"] " << action->GetName()
92 << ( action->ProvidesStacking() ?
" [stacking]":
"" )
94 if ( pcfg ) action->PrintConfig(
opt);
UserAction * GetAction(G4int i) const
QTextStream & endl(QTextStream &s)
void g4b::UserActionManager::UserSteppingAction |
( |
const G4Step * |
a_step | ) |
|
|
virtual |
Definition at line 154 of file UserActionManager.cxx.
157 (*i)->SteppingAction(a_step);
fuserActions_t::const_iterator fuserActions_ptr_t
static fuserActions_t fuserActions
The documentation for this class was generated from the following files: