LDMX Software
APrimeToFCPPair.h
Go to the documentation of this file.
1
7#ifndef SIMCORE_BIASOPERATORS_APRIMETOFCPPAIR_H_
8#define SIMCORE_BIASOPERATORS_APRIMETOFCPPAIR_H_
9
11#include "SimCore/BiasOperators/XsecBiasingOperator.h"
12
13namespace simcore {
14namespace biasoperators {
15
22 public:
29 APrimeToFCPPair(std::string name, const framework::config::Parameters& p);
30
32 virtual ~APrimeToFCPPair() = default;
33
38 G4VBiasingOperation* ProposeOccurenceBiasingOperation(
39 const G4Track* track,
40 const G4BiasingProcessInterface* callingProcess) override;
41
43 std::string getProcessToBias() const override {
45 }
46
48 std::string getParticleToBias() const override { return "A^1"; }
49
51 std::string getVolumeToBias() const override { return volume_; }
52
58 void RecordConfig(ldmx::RunHeader& header) const override {
59 header.setStringParameter("BiasOperator::APrimeToFCPPair::Volume", volume_);
60 header.setFloatParameter("BiasOperator::APrimeToFCPPair::Factor", factor_);
61 header.setFloatParameter("BiasOperator::APrimeToFCPPair::Threshold",
63 }
64
65 private:
67 std::string volume_;
68
70 double factor_;
71
73 double threshold_;
74};
75
76} // namespace biasoperators
77} // namespace simcore
78
79#endif // SIMCORE_BIASOPERATORS_APRIMETOFCPPAIR_H_
A' -> fcp+ fcp- conversion in a nuclear field.
Class encapsulating parameters for configuring a processor.
Definition Parameters.h:29
Run-specific configuration and data stored in its own output TTree alongside the event TTree in the o...
Definition RunHeader.h:57
void setFloatParameter(const std::string &name, float value)
Set a float parameter value.
Definition RunHeader.h:197
void setStringParameter(const std::string &name, std::string value)
Set a string parameter value.
Definition RunHeader.h:222
static const std::string PROCESS_NAME
The name of this process.
Our specialization of the biasing operator used with Geant4.
Bias the A' -> fcp+ fcp- process.
APrimeToFCPPair(std::string name, const framework::config::Parameters &p)
Constructor.
std::string getProcessToBias() const override
Return the process to bias.
G4VBiasingOperation * ProposeOccurenceBiasingOperation(const G4Track *track, const G4BiasingProcessInterface *callingProcess) override
std::string getVolumeToBias() const override
Return the volume to bias in.
double threshold_
Minimum kinetic energy [MeV] to allow a track to be biased.
std::string volume_
The volume to bias in.
virtual ~APrimeToFCPPair()=default
Destructor.
std::string getParticleToBias() const override
Return the particle to bias (A' short name in Geant4)
void RecordConfig(ldmx::RunHeader &header) const override
Record the configuration to the run header.
Dynamically loadable photonuclear models either from SimCore or external libraries implementing this ...