Example routine for calculating the "ultimate e-m mother" of a particle in a simulated event. More...
Classes | |
class | EmEveIdCalculator |
class | EveIdCalculator |
class | FilterFlags |
class | FLSHit |
A single unit of energy deposition in the liquid scintillator. More... | |
class | FLSHitList |
A vector of FLSHit from single neutrino interaction. More... | |
class | G4Status |
class | MixSimAndRealEventsDetail |
class | Particle |
class | ParticleHistory |
class | ParticleNavigator |
class | PhotonSignal |
class | TrueEnergy |
Typedefs | |
typedef art::MixFilter< MixSimAndRealEventsDetail > | MixSimAndRealEvents |
Functions | |
std::ostream & | operator<< (std::ostream &o, const FLSHit &a) |
std::ostream & | operator<< (std::ostream &output, const ParticleHistory &list) |
ParticleNavigator | operator+ (const int &value, const ParticleNavigator &list) |
std::ostream & | operator<< (std::ostream &output, const ParticleNavigator &list) |
std::ostream & | operator<< (std::ostream &o, const PhotonSignal &ps) |
bool | CompareByPlaneAndCell (const sim::PhotonSignal &a, const sim::PhotonSignal &b) |
Helper for SortByPlaneAndCell. More... | |
void | SortByPlaneAndCell (std::vector< sim::PhotonSignal > &c) |
bool | CompareByNPhoton (const sim::PhotonSignal &a, const sim::PhotonSignal &b) |
Helper for SortByNPhoton. More... | |
void | SortByNPhoton (std::vector< sim::PhotonSignal > &c) |
Sort c by number of photons. Lowerst to highest. More... | |
unsigned int | GetRandomNumberSeed () |
std::ostream & | operator<< (std::ostream &o, const TrueEnergy &TE) |
Variables | |
static std::unique_ptr< EveIdCalculator > | eveIdCalculator |
static const int | kNoiseId = 1234567890 |
flag for noise id More... | |
static const int | kNoParticleId = -999 |
static const int | kPrimaryParticle = 0 |
Example routine for calculating the "ultimate e-m mother" of a particle in a simulated event.
A class to contain true energy deposited in/escaping the detector Remember that as this data product holds information from all daughters it is possible (and in fact likely) that not all of the numbers add up. Especially as the energies are kinetic energies. Consider for example a very low energy muon KE = 10 KeV which decays. The electron it produces will likely deposit ~50 KeV in the detector. The neutrinos will likely leave the detector with about ~50 KeV energy. Therefore, EntEn = 10 KeV, EnDep = ~60 KeV, TotEscEn = ~50 KeV!!!
A class to contain true energy deposited in/escaping the detector.
Simulation header file.
Useful tools for simulation.
Photon signal class.
Particle list in DetSim contains Monte Carlo particle information.
A "chain" of particles associated with production of a Particle in a ParticleList.
A "chain" of particles associated with production of a Particle in a ParticleNavigator.
Description of a particle passed to Geant4.
Status reported by Geant4 simulation.
Vector container of FLSHit.
A single unit of energy deposition in the liquid scintillator.
FLSHit class.
FilterFlags class.
Interface for calculating the "ultimate mother" of a particle in a simulated event.
Although there's nothing in the following class that assumes units, the standard for NOvASoft is that distances are in cm, and energies are in GeV.
Definition at line 137 of file MixSimAndRealEvents_module.cc.
bool sim::CompareByNPhoton | ( | const sim::PhotonSignal & | a, |
const sim::PhotonSignal & | b | ||
) |
Helper for SortByNPhoton.
Definition at line 61 of file PhotonSignal.cxx.
References sim::PhotonSignal::NPhoton().
Referenced by cheat::BackTracker::Rebuild(), and SortByNPhoton().
bool sim::CompareByPlaneAndCell | ( | const sim::PhotonSignal & | a, |
const sim::PhotonSignal & | b | ||
) |
Helper for SortByPlaneAndCell.
Definition at line 44 of file PhotonSignal.cxx.
References sim::PhotonSignal::fCell, and sim::PhotonSignal::fPlane.
|
inline |
Definition at line 13 of file Simulation.cxx.
References central_limit::rand.
Referenced by chaninfo::BadChanList::BadChanList(), evgen::CosmicPionGen::CosmicPionGen(), evgen::CosmicsGen::CosmicsGen(), fuzz::FuzzyKVertex::FuzzyKVertex(), g4n::G4Gen::G4Gen(), photrans::ImprovedTransport::ImprovedTransport(), evgen::IsoGen::IsoGen(), rsim::MakeNoiseSpectrumFile::MakeNoiseSpectrumFile(), mix::MixSimEvents::MixSimEvents(), photrans::PhotonSystRewriter::PhotonSystRewriter(), photrans::PhotonTransport::PhotonTransport(), rsim::ReadoutSim::ReadoutSim(), evgen::SingleGen::SingleGen(), and evgen::SupernovaGen::SupernovaGen().
ParticleNavigator sim::operator+ | ( | const int & | value, |
const ParticleNavigator & | list | ||
) |
Definition at line 231 of file ParticleNavigator.cxx.
std::ostream& sim::operator<< | ( | std::ostream & | o, |
const PhotonSignal & | ps | ||
) |
Definition at line 30 of file PhotonSignal.cxx.
References sim::PhotonSignal::Cell(), sim::PhotonSignal::NPhoton(), msf_helper::o, sim::PhotonSignal::Plane(), art::right(), sim::PhotonSignal::TimeMean(), and sim::PhotonSignal::TrackId().
std::ostream& sim::operator<< | ( | std::ostream & | o, |
const TrueEnergy & | TE | ||
) |
Definition at line 30 of file TrueEnergy.cxx.
References sim::TrueEnergy::EnteringEnergy(), sim::TrueEnergy::EscapingEnergy(), msf_helper::o, sim::TrueEnergy::TotalDepEnergy(), sim::TrueEnergy::TotalEscEnergy(), and sim::TrueEnergy::TrackId().
std::ostream& sim::operator<< | ( | std::ostream & | output, |
const ParticleHistory & | list | ||
) |
Definition at line 53 of file ParticleHistory.cxx.
References allTimeWatchdog::endl, makeTrainCVSamples::int, std::log10(), and output.
std::ostream & sim::operator<< | ( | std::ostream & | o, |
const FLSHit & | a | ||
) |
Definition at line 203 of file FLSHit.cxx.
References sim::FLSHit::GetCellID(), sim::FLSHit::GetCellUniqueId(), sim::FLSHit::GetEdep(), sim::FLSHit::GetEdepBirks(), sim::FLSHit::GetEntryEnergy(), sim::FLSHit::GetEntryT(), sim::FLSHit::GetEntryX(), sim::FLSHit::GetEntryY(), sim::FLSHit::GetEntryZ(), sim::FLSHit::GetExitEnergy(), sim::FLSHit::GetExitT(), sim::FLSHit::GetExitX(), sim::FLSHit::GetExitY(), sim::FLSHit::GetExitZ(), sim::FLSHit::GetNCerenkov(), sim::FLSHit::GetPlaneID(), sim::FLSHit::GetTrackID(), msf_helper::o, and art::right().
std::ostream& sim::operator<< | ( | std::ostream & | output, |
const ParticleNavigator & | list | ||
) |
Definition at line 294 of file ParticleNavigator.cxx.
References sim::ParticleNavigator::begin(), sim::ParticleNavigator::end(), allTimeWatchdog::endl, makeTrainCVSamples::int, std::log10(), output, and sim::ParticleNavigator::size().
void sim::SortByNPhoton | ( | std::vector< sim::PhotonSignal > & | c | ) |
Sort c by number of photons. Lowerst to highest.
Definition at line 69 of file PhotonSignal.cxx.
References CompareByNPhoton().
void sim::SortByPlaneAndCell | ( | std::vector< sim::PhotonSignal > & | c | ) |
Sort c by plane and cell. ie guarantees hits on the same channel are adjacent.
Definition at line 54 of file PhotonSignal.cxx.
References sim::PhotonSignal::CompareByPlaneAndCell.
Referenced by rsim::ReadoutSim::produce().
|
static |
Definition at line 33 of file ParticleNavigator.cxx.
|
static |
flag for noise id
Definition at line 13 of file Simulation.h.
Referenced by trk::KalmanTrackAna::FindVisibleProngs(), and cheat::RecoCheckAna::FindVisibleProngs().
|
static |
if any track id method returns sim::kNoParticleId, it means the associated particle was too low-energy to be written by the detector Monte Carlo.
Definition at line 14 of file Simulation.h.
Referenced by g4n::ParticleListAction::BeginOfEventAction(), g4n::ParticleListAction::GetParentage(), and g4n::ParticleListAction::PreTrackingAction().
|
static |
enumeration to indicate the mother of a particle is a primary particle
Definition at line 18 of file Simulation.h.