LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
#include "NueAr40CCGenerator.h"
Public Member Functions | |
NueAr40CCGenerator (fhicl::ParameterSet const ¶meterSet) | |
std::vector< simb::MCTruth > | Generate (CLHEP::HepRandomEngine &engine) |
Private Member Functions | |
std::vector< double > | GetIsotropicDirection (CLHEP::HepRandomEngine &engine) const |
std::vector< double > | GetUniformPosition (CLHEP::HepRandomEngine &engine) const |
int | GetNumberOfNeutrinos (CLHEP::HepRandomEngine &engine) const |
double | GetNeutrinoTime (CLHEP::HepRandomEngine &engine) const |
double | GetNeutrinoEnergy (CLHEP::HepRandomEngine &engine) const |
void | ReadNeutrinoSpectrum () |
void | InitializeVectors () |
void | CreateKinematicsVector (simb::MCTruth &truth, CLHEP::HepRandomEngine &engine) const |
bool | ProcessOneNeutrino (simb::MCTruth &truth, double neutrinoEnergy, double neutrinoTime, CLHEP::HepRandomEngine &engine) const |
std::vector< double > | CalculateCrossSections (double neutrinoEnergy, int &highestLevel) const |
Private Attributes | |
std::map< double, double > | fEnergyProbabilityMap |
int | fNumberOfLevels |
int | fNumberOfStartLevels |
std::vector< std::vector< double > > | fBranchingRatios |
std::vector< std::vector< int > > | fDecayTo |
std::vector< double > | fStartEnergyLevels |
std::vector< double > | fB |
std::vector< double > | fEnergyLevels |
bool | fMonoenergeticNeutrinos |
double | fNeutrinoEnergy |
std::string | fEnergySpectrumFileName |
bool | fUsePoissonDistribution |
bool | fAllowZeroNeutrinos |
int | fNumberOfNeutrinos |
double | fNeutrinoTimeBegin |
double | fNeutrinoTimeEnd |
std::vector< std::vector< double > > | fActiveVolume |
Definition at line 32 of file NueAr40CCGenerator.h.
evgen::NueAr40CCGenerator::NueAr40CCGenerator | ( | fhicl::ParameterSet const & | parameterSet | ) |
Definition at line 37 of file NueAr40CCGenerator.cxx.
References fActiveVolume, fMonoenergeticNeutrinos, fhicl::ParameterSet::get(), InitializeVectors(), and ReadNeutrinoSpectrum().
|
private |
Definition at line 1053 of file NueAr40CCGenerator.cxx.
References f, fB, fNumberOfStartLevels, fStartEnergyLevels, n, and w.
Referenced by ProcessOneNeutrino().
|
private |
Definition at line 798 of file NueAr40CCGenerator.cxx.
References GetNeutrinoEnergy(), GetNeutrinoTime(), and ProcessOneNeutrino().
Referenced by Generate().
std::vector< simb::MCTruth > evgen::NueAr40CCGenerator::Generate | ( | CLHEP::HepRandomEngine & | engine | ) |
Definition at line 62 of file NueAr40CCGenerator.cxx.
References CreateKinematicsVector(), GetNumberOfNeutrinos(), simb::kSuperNovaNeutrino, simb::MCTruth::NParticles(), and simb::MCTruth::SetOrigin().
Referenced by evgen::SNNueAr40CCGen::produce().
|
private |
|
private |
Definition at line 150 of file NueAr40CCGenerator.cxx.
References fEnergyProbabilityMap, fMonoenergeticNeutrinos, and fNeutrinoEnergy.
Referenced by CreateKinematicsVector().
|
private |
Definition at line 139 of file NueAr40CCGenerator.cxx.
References fNeutrinoTimeBegin, and fNeutrinoTimeEnd.
Referenced by CreateKinematicsVector().
|
private |
Definition at line 124 of file NueAr40CCGenerator.cxx.
References fAllowZeroNeutrinos, fNumberOfNeutrinos, and fUsePoissonDistribution.
Referenced by Generate().
|
private |
Definition at line 108 of file NueAr40CCGenerator.cxx.
References fActiveVolume.
Referenced by ProcessOneNeutrino().
|
private |
Definition at line 223 of file NueAr40CCGenerator.cxx.
References fB, fBranchingRatios, fDecayTo, fEnergyLevels, fNumberOfLevels, fNumberOfStartLevels, and fStartEnergyLevels.
Referenced by NueAr40CCGenerator().
|
private |
Definition at line 813 of file NueAr40CCGenerator.cxx.
References util::abs(), simb::MCTruth::Add(), simb::MCParticle::AddTrajectoryPoint(), CalculateCrossSections(), fBranchingRatios, fDecayTo, fEnergyLevels, fNumberOfLevels, fStartEnergyLevels, GetIsotropicDirection(), GetUniformPosition(), simb::kCC, simb::kCCQE, simb::kQE, n, simb::MCTruth::NParticles(), and simb::MCTruth::SetNeutrino().
Referenced by CreateKinematicsVector().
|
private |
Definition at line 188 of file NueAr40CCGenerator.cxx.
References fEnergyProbabilityMap, and fEnergySpectrumFileName.
Referenced by NueAr40CCGenerator().
|
private |
Definition at line 115 of file NueAr40CCGenerator.h.
Referenced by GetUniformPosition(), and NueAr40CCGenerator().
|
private |
Definition at line 104 of file NueAr40CCGenerator.h.
Referenced by GetNumberOfNeutrinos().
|
private |
Definition at line 87 of file NueAr40CCGenerator.h.
Referenced by CalculateCrossSections(), and InitializeVectors().
|
private |
Definition at line 84 of file NueAr40CCGenerator.h.
Referenced by InitializeVectors(), and ProcessOneNeutrino().
|
private |
Definition at line 85 of file NueAr40CCGenerator.h.
Referenced by InitializeVectors(), and ProcessOneNeutrino().
|
private |
Definition at line 88 of file NueAr40CCGenerator.h.
Referenced by InitializeVectors(), and ProcessOneNeutrino().
|
private |
Definition at line 78 of file NueAr40CCGenerator.h.
Referenced by GetNeutrinoEnergy(), and ReadNeutrinoSpectrum().
|
private |
Definition at line 96 of file NueAr40CCGenerator.h.
Referenced by ReadNeutrinoSpectrum().
|
private |
Definition at line 91 of file NueAr40CCGenerator.h.
Referenced by GetNeutrinoEnergy(), and NueAr40CCGenerator().
|
private |
Definition at line 93 of file NueAr40CCGenerator.h.
Referenced by GetNeutrinoEnergy().
|
private |
Definition at line 110 of file NueAr40CCGenerator.h.
Referenced by GetNeutrinoTime().
|
private |
Definition at line 111 of file NueAr40CCGenerator.h.
Referenced by GetNeutrinoTime().
|
private |
Definition at line 80 of file NueAr40CCGenerator.h.
Referenced by InitializeVectors(), and ProcessOneNeutrino().
|
private |
Definition at line 107 of file NueAr40CCGenerator.h.
Referenced by GetNumberOfNeutrinos().
|
private |
Definition at line 81 of file NueAr40CCGenerator.h.
Referenced by CalculateCrossSections(), and InitializeVectors().
|
private |
Definition at line 86 of file NueAr40CCGenerator.h.
Referenced by CalculateCrossSections(), InitializeVectors(), and ProcessOneNeutrino().
|
private |
Definition at line 100 of file NueAr40CCGenerator.h.
Referenced by GetNumberOfNeutrinos().