SupernovaTruth.cxx
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 /// \file Simulation/SupernovaTruth.cxx
3 /// \brief Stores extra MC truth information that is recorded when
4 /// generating events using a time-dependent supernova neutrino spectrum
5 ///
6 /// \author Steven Gardiner <sjgardiner@ucdavis.edu>
7 ////////////////////////////////////////////////////////////////////////
8 
10 
11 namespace sim {
12 
13  SupernovaTruth::SupernovaTruth() : SupernovaTime(0.), Weight(0.),
14  FluxAveragedCrossSection(0.), SamplingMode(kUnknownSupernovaSamplingMode) {}
15 
17  double xs_avg, SupernovaSamplingMode_t sampling_mode)
18  : SupernovaTime(time), Weight(weight), FluxAveragedCrossSection(xs_avg),
19  SamplingMode(sampling_mode) {}
20 
21 }
weight
Definition: test.py:257
SupernovaSamplingMode_t SamplingMode
Method used to sample the supernova neutrino&#39;s energy and arrival time.
double FluxAveragedCrossSection
Flux-averaged total cross section (fm2, average is taken over all energies and times for all defined ...
double Weight
Statistical weight for this neutrino vertex.
Code to link reconstructed objects back to the MC truth information.
double SupernovaTime
Arrival time of the supernova neutrino (seconds)
Stores extra MC truth information that is recorded when generating events using a time-dependent supe...
SupernovaSamplingMode_t