LArG4Parameters_service.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file LArG4Parameters_service.cc
3 /// \brief Store parameters for running LArG4
4 ///
5 /// \author bjpjones@mit.edu
6 ////////////////////////////////////////////////////////////////////////
7 // This service exists to pass parameters to various different
8 // classes in LArG4, which are not necessary directly called by
9 // the LArG4_module class.
10 //
11 // Ben Jones, MIT, March 2010
12 
13 
14 // Framework includes
16 
18 
19 namespace sim {
20 
21  //--------------------------------------------------------------------------
23  : fOpVerbosity {pset.get< int >("OpticalSimVerbosity" )}
24  , fParticleKineticECut {pset.get< double >("ParticleKineticEnergyCut")}
25  , fStoreTrajectories {pset.get< bool >("StoreTrajectories" )}
26  , fDrawNeutrals {pset.get< bool >("VisualizeNeutrals" )}
27  , fVisualizationEnergyCut {pset.get< double >("VisualizationEnergyCut" )}
28  , fUseCustomPhysics {pset.get< bool >("UseCustomPhysics" )}
29  , fModifyProtonCut {pset.get< bool >("ModifyProtonCut" , false)}
30  , fNewProtonCut {fModifyProtonCut? pset.get<double>("NewProtonCut") /* for HadronHP */ : 0.0}
31  , fLongitudinalDiffusion {pset.get< double >("LongitudinalDiffusion" )}
32  , fTransverseDiffusion {pset.get< double >("TransverseDiffusion" )}
33  , fElectronClusterSize {pset.get< double >("ElectronClusterSize" )}
34  , fMinNumberOfElCluster {pset.get< int >("MinNumberOfElCluster" )}
35  , fEnabledPhysics {pset.get< std::vector<std::string> >("EnabledPhysics" )}
36  , fK0Bias {pset.get< int >("CosmogenicK0Bias" )}
37  , fXSBias {pset.get< int >("CosmogenicXSMNBiasFactor")}
38  , fXBias {pset.get< int >("CosmogenicXSMNBiasOn" )}
39  // First of last 3 flags above turns on secondary particle bias for
40  // K0s,Lambdas,neutrons in MuNuclear.
41  // The 2nd is the enhancement factor for XS bias in MuNuclear. Keep it
42  // <=100.
43  // The 3rd turns on cross-section bias in MuNuclear.
44  , fKeepEMShowerDaughters {pset.get< bool >("KeepEMShowerDaughters" )}
45  , fDisableWireplanes {pset.get< bool >("DisableWireplanes" )}
46  , fSkipWireSignalInTPCs {pset.get< std::vector<unsigned short int> >("SkipWireSignalInTPCs" )}
47  , fRecombA {pset.get< double >("RecombA",util::kRecombA)}
48  , fRecombk {pset.get< double >("Recombk",util::kRecombk)}
49  , fModBoxA {pset.get< double >("ModBoxA",util::kModBoxA)}
50  , fModBoxB {pset.get< double >("ModBoxB",util::kModBoxB)}
51  , fLarqlChi0A {pset.get< double >("LarqlChi0A" )}
52  , fLarqlChi0B {pset.get< double >("LarqlChi0B" )}
53  , fLarqlChi0C {pset.get< double >("LarqlChi0C" )}
54  , fLarqlChi0D {pset.get< double >("LarqlChi0D" )}
55  , fLarqlAlpha {pset.get< double >("LarqlAlpha" )}
56  , fLarqlBeta {pset.get< double >("LarqlBeta" )}
57  , fUseModBoxRecomb {pset.get< bool >("UseModBoxRecomb" )}
58  , fUseModLarqlRecomb {pset.get< bool >("UseModLarqlRecomb" )}
59  , fIonAndScintCalculator {pset.get< std::string >("IonAndScintCalculator", "Separate")}
60  , fOpticalParamVolumes {pset.get< std::vector<std::string> >("OpticalParamVolumes" )}
61  , fOpticalParamModels {pset.get< std::vector<std::string> >("OpticalParamModels" )}
62  , fOpticalParamOrientations{pset.get< std::vector<int> >("OpticalParamOrientations")}
63  , fOpticalParamParameters {pset.get< std::vector<std::vector<std::vector<double> > > >("OpticalParamParameters")}
64  , fLitePhotons {pset.get< bool >("UseLitePhotons" )}
65  , fFillSimEnergyDeposits {pset.get< bool >("FillSimEnergyDeposits",false)}
66  , fNoElectronPropagation {pset.get< bool >("NoElectronPropagation",false)}
67  , fNoPhotonPropagation {pset.get< bool >("NoPhotonPropagation",false)}
68  {}
69 }
70 
Store parameters for running LArG4.
int const fMinNumberOfElCluster
Minimum number of electron clusters.
std::string string
Definition: nybbler.cc:12
double const fLarqlBeta
Possibly override the LarqlBeta parameter.
std::vector< std::vector< std::vector< double > > > const fOpticalParamParameters
bool const fModifyProtonCut
Whether to enable custom ProtonCut value, needed for HadronHP.
double const fModBoxB
Possibly override the ModBoxB parameter.
double const fLarqlChi0B
Possibly override the LarqlChi0B parameter.
bool const fUseModBoxRecomb
Use Modified Box model recombination instead of Birks.
double const fLongitudinalDiffusion
Amount of diffusion in the longitudinal direction, cm^2/ns.
bool const fKeepEMShowerDaughters
constexpr double kModBoxB
Modified Box Beta in g/(MeV cm²)*kV/cm.
T get(std::string const &key) const
Definition: ParameterSet.h:271
double const fVisualizationEnergyCut
depricated, GeV
bool const fUseModLarqlRecomb
Use LArQL model recombination correction (dependence on EF)
double const fLarqlAlpha
Possibly override the LarqlAlpha parameter.
Code to link reconstructed objects back to the MC truth information.
double const fRecombk
Possibly override the Recombk parameter.
#define DEFINE_ART_SERVICE(svc)
double const fRecombA
Possibly override the RecombA parameter.
double const fLarqlChi0D
Possibly override the LarqlChi0D parameter.
LArG4Parameters(fhicl::ParameterSet const &pset)
double const fParticleKineticECut
Minimum energy a particle needs in order to be stored in the particle list [GeV]. ...
double const fNewProtonCut
New Proton Cut parameter to override default in HadronHP.
bool const fUseCustomPhysics
std::vector< std::string > const fOpticalParamModels
List of names of those models.
bool const fNoPhotonPropagation
specifically prevents photon propagation in opfast
double const fModBoxA
Possibly override the ModBoxA parameter.
constexpr double kRecombk
double const fTransverseDiffusion
Amount of diffusion in the transverse direction, cm^2/ns.
bool const fNoElectronPropagation
specifically prevents electron propagation
int const fXSBias
Turns on cross-section bian in MuNuclear.
double const fLarqlChi0C
Possibly override the LarqlChi0C parameter.
std::vector< unsigned short int > const fSkipWireSignalInTPCs
selective disabling of drift simulation
std::vector< std::string > const fOpticalParamVolumes
bool const fDrawNeutrals
depricated
double const fElectronClusterSize
bool const fFillSimEnergyDeposits
handle to fill SimEdeps or not
constexpr double kRecombA
A constant.
std::vector< std::string > const fEnabledPhysics
List of enabled physics processes if using Custom physics.
std::string const fIonAndScintCalculator
bool const fDisableWireplanes
constexpr double kModBoxA
Modified Box Alpha.
double const fLarqlChi0A
Possibly override the LarqlChi0A parameter.
std::vector< int > const fOpticalParamOrientations
bool const fStoreTrajectories