42 fBiasPrimaryOnly(true),
49 fSplittingFactorMessenger =
52 fSplittingFactorMessenger->
DeclareProperty(
"setSplittingFactor", fSplittingFactor,
53 "Define the brem. splitting factor." );
56 fBiasPrimaryOnlyMessenger =
59 fBiasPrimaryOnlyMessenger->
DeclareProperty(
"biasPrimaryOnly", fBiasPrimaryOnly,
60 "Chose if brem. splitting applies to primary particles only." );
63 fBiasOnlyOnceMessenger =
66 fBiasPrimaryOnlyMessenger->
DeclareProperty(
"biasOnlyOnce", fBiasOnlyOnce,
67 "Chose if apply the brem. splitting only once for the track." );
77 G4cout <<
GetName() <<
" : starting run with brem. splitting factor = "
79 if ( fBiasPrimaryOnly )
G4cout <<
", biasing only primaries ";
80 else G4cout <<
", biasing primary and secondary tracks ";
81 if ( fBiasOnlyOnce )
G4cout <<
", biasing only once per track ";
82 else G4cout <<
", biasing several times per track ";
97 GB04BOptrBremSplitting::
98 ProposeFinalStateBiasingOperation(
const G4Track* track,
103 if ( fBiasPrimaryOnly && ( track->
GetParentID() !=0 ) )
return 0;
106 if ( fBiasOnlyOnce && ( fNInteractions > 0 ) )
return 0;
111 return fBremSplittingOperation;
G4int GetParentID() const
Definition of the GB04BOptrBremSplitting class.
void SetSplittingFactor(G4int splittingFactor)
This class is generic messenger.
Command & DeclareProperty(const G4String &name, const G4AnyType &variable, const G4String &doc="")
Declare Methods.
G4GLOB_DLL std::ostream G4cout
virtual void StartTracking(const G4Track *track)
Command & SetStates(G4ApplicationState s0)
Definition of the GB04BOptnBremSplitting class.
const G4String GetName() const