#include <ISCalculationSeparate.h>
detsim::ISCalculationSeparate::ISCalculationSeparate |
( |
fhicl::ParameterSet const & |
pset | ) |
|
|
explicit |
Definition at line 37 of file ISCalculationSeparate.cc.
38 :
fRecombA{pset.get<
double>(
"RecombA")}
39 ,
fRecombk{pset.get<
double>(
"Recombk")}
40 ,
fModBoxA{pset.get<
double>(
"ModBoxA")}
41 ,
fModBoxB{pset.get<
double>(
"ModBoxB")}
45 fLArProp = lar::providerFrom<detinfo::LArPropertiesService>();
46 fSCE = lar::providerFrom<spacecharge::SpaceChargeService>();
const detinfo::LArProperties * fLArProp
double fGeVToElectrons
from LArG4Parameters service
const spacecharge::SpaceCharge * fSCE
BEGIN_PROLOG could also be cout
Definition at line 59 of file ISCalculationSeparate.cc.
62 float e = edep.Energy();
63 float ds = edep.StepLength();
64 float x = edep.MidPointX();
65 float y = edep.MidPointY();
66 float z = edep.MidPointZ();
68 double dEdx = (ds <= 0.0) ? 0.0 : e /
ds;
72 if (dEdx < 1.) dEdx = 1.;
76 double Xi =
fModBoxB * dEdx / EFieldStep;
89 MF_LOG_DEBUG(
"ISCalculationSeparate")
90 <<
" Electrons produced for " << edep.Energy() <<
" MeV deposited with " << recomb
91 <<
" recombination: " << numIonElectrons << std::endl;
93 return numIonElectrons;
process_name opflash particleana ie ie ie z
process_name opflash particleana ie x
double fGeVToElectrons
from LArG4Parameters service
process_name opflash particleana ie ie y
double EFieldAtStep(double efield, sim::SimEnergyDeposit const &edep) const
float dEdx(detinfo::DetectorClocksData const &clockData, detinfo::DetectorPropertiesData const &detProp, const TCSlice &slc, TP3D &tp3d)
Definition at line 130 of file ISCalculationSeparate.cc.
double CalculateIonization(detinfo::DetectorPropertiesData const &detProp, sim::SimEnergyDeposit const &edep) const
double CalculateScintillation(sim::SimEnergyDeposit const &edep) const
Definition at line 98 of file ISCalculationSeparate.cc.
100 float const e = edep.Energy();
101 int const pdg = edep.PdgCode();
105 MF_LOG_DEBUG(
"ISCalculationSeparate") <<
"scintillating by particle type";
123 return scintYield *
e;
126 return scint_yield_factor * scintYield *
e;
const detinfo::LArProperties * fLArProp
virtual double KaonScintYield(bool prescale=false) const =0
virtual double ElectronScintYield(bool prescale=false) const =0
virtual double PionScintYield(bool prescale=false) const =0
virtual double ProtonScintYield(bool prescale=false) const =0
virtual double ScintYield(bool prescale=false) const =0
virtual double MuonScintYield(bool prescale=false) const =0
virtual bool ScintByParticleType() const =0
virtual double AlphaScintYield(bool prescale=false) const =0
double detsim::ISCalculationSeparate::EFieldAtStep |
( |
double |
efield, |
|
|
sim::SimEnergyDeposit const & |
edep |
|
) |
| const |
Definition at line 138 of file ISCalculationSeparate.cc.
140 return EFieldAtStep(efield, edep.MidPointX(), edep.MidPointY(), edep.MidPointZ());
double EFieldAtStep(double efield, sim::SimEnergyDeposit const &edep) const
double detsim::ISCalculationSeparate::EFieldAtStep |
( |
double |
efield, |
|
|
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| const |
|
private |
Definition at line 144 of file ISCalculationSeparate.cc.
152 return std::hypot(efield + efield * offsets.X(), efield * offsets.Y(), efield * offsets.Z());
process_name opflash particleana ie ie ie z
process_name opflash particleana ie x
const spacecharge::SpaceCharge * fSCE
process_name opflash particleana ie ie y
virtual geo::Vector_t GetEfieldOffsets(geo::Point_t const &point) const =0
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
virtual bool EnableSimEfieldSCE() const =0
double detsim::ISCalculationSeparate::fGeVToElectrons |
|
private |
double detsim::ISCalculationSeparate::fModBoxA |
|
private |
double detsim::ISCalculationSeparate::fModBoxB |
|
private |
double detsim::ISCalculationSeparate::fRecombA |
|
private |
double detsim::ISCalculationSeparate::fRecombk |
|
private |
bool detsim::ISCalculationSeparate::fUseModBoxRecomb |
|
private |
The documentation for this class was generated from the following files: