LDMX Software
|
Bias the k0 long inelastic collisions. More...
#include <K0LongInelastic.h>
Public Member Functions | |
K0LongInelastic (std::string name, const framework::config::Parameters &p) | |
Constructor. | |
virtual | ~K0LongInelastic ()=default |
Destructor. | |
G4VBiasingOperation * | ProposeOccurenceBiasingOperation (const G4Track *track, const G4BiasingProcessInterface *callingProcess) override |
std::string | getProcessToBias () const override |
Return the process to bias. | |
std::string | getParticleToBias () const override |
Return the particle to bias. | |
std::string | getVolumeToBias () const override |
Return the volume to bias in. | |
void | RecordConfig (ldmx::RunHeader &header) const override |
Record the configuration to the run header. | |
Public Member Functions inherited from simcore::XsecBiasingOperator | |
XsecBiasingOperator (std::string name, const framework::config::Parameters ¶meters) | |
Constructor. | |
virtual | ~XsecBiasingOperator ()=default |
Destructor. | |
void | StartRun () |
Method called at the beginning of a run. | |
Private Attributes | |
std::string | volume_ |
The volume to bias in. | |
double | factor_ |
The biasing factor. | |
double | threshold_ |
Minimum kinetic energy [MeV] to allow a track to be biased. | |
Additional Inherited Members | |
Public Types inherited from simcore::XsecBiasingOperator | |
using | Factory = ::simcore::Factory< XsecBiasingOperator, std::shared_ptr< XsecBiasingOperator >, std::string, const framework::config::Parameters & > |
The BiasingOperator factory. | |
Protected Member Functions inherited from simcore::XsecBiasingOperator | |
G4VBiasingOperation * | BiasedXsec (double biased_xsec) |
Helper method for passing a biased interaction length to the Geant4 biasing framework. | |
bool | processIsBiased (std::string process) |
Check if the given processed is being biased. | |
G4VBiasingOperation * | ProposeFinalStateBiasingOperation (const G4Track *, const G4BiasingProcessInterface *) |
Do not propose any biasing on final states. | |
G4VBiasingOperation * | ProposeNonPhysicsBiasingOperation (const G4Track *, const G4BiasingProcessInterface *) |
Do not propose any non-physics biasing. | |
Protected Attributes inherited from simcore::XsecBiasingOperator | |
G4BOptnChangeCrossSection * | xsecOperation_ {nullptr} |
Cross-section biasing operation. | |
G4ProcessManager * | processManager_ {nullptr} |
Process manager associated with the particle of interest. | |
Bias the k0 long inelastic collisions.
Definition at line 12 of file K0LongInelastic.h.
simcore::biasoperators::K0LongInelastic::K0LongInelastic | ( | std::string | name, |
const framework::config::Parameters & | p | ||
) |
Constructor.
Calls parent constructor and allows accesss to configuration parameters.
Definition at line 7 of file K0LongInelastic.cxx.
References factor_, framework::config::Parameters::getParameter(), threshold_, and volume_.
|
inlineoverridevirtual |
Return the particle to bias.
Implements simcore::XsecBiasingOperator.
Definition at line 37 of file K0LongInelastic.h.
|
inlineoverridevirtual |
Return the process to bias.
Implements simcore::XsecBiasingOperator.
Definition at line 34 of file K0LongInelastic.h.
|
inlineoverridevirtual |
Return the volume to bias in.
Implements simcore::XsecBiasingOperator.
Definition at line 40 of file K0LongInelastic.h.
References volume_.
|
overridevirtual |
Implements simcore::XsecBiasingOperator.
Definition at line 15 of file K0LongInelastic.cxx.
References simcore::XsecBiasingOperator::BiasedXsec(), factor_, and threshold_.
|
inlineoverridevirtual |
Record the configuration to the run header.
[in,out] | header | RunHeader to record to |
Implements simcore::XsecBiasingOperator.
Definition at line 47 of file K0LongInelastic.h.
References factor_, ldmx::RunHeader::setFloatParameter(), ldmx::RunHeader::setStringParameter(), threshold_, and volume_.
|
private |
The biasing factor.
Definition at line 59 of file K0LongInelastic.h.
Referenced by K0LongInelastic(), ProposeOccurenceBiasingOperation(), and RecordConfig().
|
private |
Minimum kinetic energy [MeV] to allow a track to be biased.
Definition at line 62 of file K0LongInelastic.h.
Referenced by K0LongInelastic(), ProposeOccurenceBiasingOperation(), and RecordConfig().
|
private |
The volume to bias in.
Definition at line 56 of file K0LongInelastic.h.
Referenced by getVolumeToBias(), K0LongInelastic(), and RecordConfig().