1#include "SimCore/XsecBiasingOperator.h"
3#include "Framework/Exception/Exception.h"
9 : G4VBiasingOperator(name), theLog_{
framework::logging::makeLogger(name)} {}
15 processManager_ = G4Electron::ElectronDefinition()->GetProcessManager();
20 G4KaonZeroLong::KaonZeroLongDefinition()->GetProcessManager();
22 EXCEPTION_RAISE(
"BiasSetup",
"Invalid particle type '" +
32 EXCEPTION_RAISE(
"BiasSetup",
34 " is not found in list of biased processes!");
41 const G4BiasingProcessSharedData* sharedData =
44 for (
size_t iprocess = 0;
45 iprocess < (sharedData->GetPhysicsBiasingProcessInterfaces()).size();
47 const G4BiasingProcessInterface* wrapperProcess =
48 (sharedData->GetPhysicsBiasingProcessInterfaces())[iprocess];
50 if (wrapperProcess->GetWrappedProcess()->GetProcessName().compareTo(
Class encapsulating parameters for configuring a processor.
virtual std::string getProcessToBias() const =0
Return the process whose cross-section will be biased.
void StartRun()
Method called at the beginning of a run.
XsecBiasingOperator(std::string name, const framework::config::Parameters ¶meters)
Constructor.
bool processIsBiased(std::string process)
Check if the given processed is being biased.
virtual std::string getParticleToBias() const =0
Return the particle which should be biased.
G4ProcessManager * processManager_
Process manager associated with the particle of interest.
G4BOptnChangeCrossSection * xsecOperation_
Cross-section biasing operation.
All classes in the ldmx-sw project use this namespace.