Hall-D Software
alpha
|
#include <DReaction_factory_Thrown.h>
Public Member Functions | |
DReaction_factory_Thrown () | |
~DReaction_factory_Thrown () | |
const char * | Tag (void) |
DReaction * | Build_ThrownReaction (JEventLoop *locEventLoop, deque< pair< const DMCThrown *, deque< const DMCThrown * > > > &locThrownSteps) |
void | Recycle_Reaction (DReaction *locReaction) |
Private Member Functions | |
jerror_t | init (void) |
Called once at program start. More... | |
jerror_t | brun (jana::JEventLoop *locEventLoop, int32_t runnumber) |
Called everytime a new run number is detected. More... | |
jerror_t | evnt (jana::JEventLoop *locEventLoop, uint64_t eventnumber) |
Called every event. More... | |
jerror_t | erun (void) |
Called everytime run number changes, provided brun has been called. More... | |
jerror_t | fini (void) |
Called after last event of last event source has been processed. More... | |
DReactionStep * | Get_ReactionStepResource (void) |
Private Attributes | |
const DAnalysisUtilities * | dAnalysisUtilities = nullptr |
deque< DReactionStep * > | dReactionStepPool_All |
deque< DReactionStep * > | dReactionStepPool_Available |
size_t | MAX_dReactionStepPoolSize = 10 |
Definition at line 21 of file DReaction_factory_Thrown.h.
|
inline |
Definition at line 24 of file DReaction_factory_Thrown.h.
|
inline |
Definition at line 25 of file DReaction_factory_Thrown.h.
|
private |
Called everytime a new run number is detected.
Definition at line 27 of file DReaction_factory_Thrown.cc.
References dAnalysisUtilities.
DReaction * DReaction_factory_Thrown::Build_ThrownReaction | ( | JEventLoop * | locEventLoop, |
deque< pair< const DMCThrown *, deque< const DMCThrown * > > > & | locThrownSteps | ||
) |
Definition at line 57 of file DReaction_factory_Thrown.cc.
References DAnalysis::DReactionStep::Add_FinalParticleID(), DAnalysis::DReaction::Add_ReactionStep(), Gamma, Get_ReactionStepResource(), Proton, DAnalysis::DReactionStep::Set_InitialParticleID(), DAnalysis::DReactionStep::Set_TargetParticleID(), and Unknown.
Referenced by DAnalysisUtilities::Check_IsBDTSignalEvent(), and evnt().
|
private |
Called everytime run number changes, provided brun has been called.
Definition at line 127 of file DReaction_factory_Thrown.cc.
|
private |
Called every event.
Definition at line 38 of file DReaction_factory_Thrown.cc.
References Build_ThrownReaction(), dAnalysisUtilities, dReactionStepPool_All, dReactionStepPool_Available, DAnalysisUtilities::Get_ThrownParticleSteps(), and MAX_dReactionStepPoolSize.
|
private |
Called after last event of last event source has been processed.
Definition at line 135 of file DReaction_factory_Thrown.cc.
References dReactionStepPool_All.
|
private |
Definition at line 96 of file DReaction_factory_Thrown.cc.
References dReactionStepPool_All, dReactionStepPool_Available, and DAnalysis::DReactionStep::Reset().
Referenced by Build_ThrownReaction().
|
private |
Called once at program start.
Definition at line 17 of file DReaction_factory_Thrown.cc.
References MAX_dReactionStepPoolSize.
void DReaction_factory_Thrown::Recycle_Reaction | ( | DReaction * | locReaction | ) |
Definition at line 113 of file DReaction_factory_Thrown.cc.
References dReactionStepPool_Available, DAnalysis::DReaction::Get_NumReactionSteps(), and DAnalysis::DReaction::Get_ReactionStep().
Referenced by DAnalysisUtilities::Check_IsBDTSignalEvent().
|
inline |
Definition at line 26 of file DReaction_factory_Thrown.h.
|
private |
Definition at line 39 of file DReaction_factory_Thrown.h.
|
private |
Definition at line 43 of file DReaction_factory_Thrown.h.
Referenced by evnt(), fini(), and Get_ReactionStepResource().
|
private |
Definition at line 44 of file DReaction_factory_Thrown.h.
Referenced by evnt(), Get_ReactionStepResource(), and Recycle_Reaction().
|
private |
Definition at line 46 of file DReaction_factory_Thrown.h.