1 #ifndef __JAANET__JPOWERLAWFLUX__
2 #define __JAANET__JPOWERLAWFLUX__
35 normalisation(normalisation),
36 spectralIndex(spectralIndex)
74 return in >>
object.normalisation
75 >>
object.spectralIndex;
86 inline friend std::ostream&
operator<<(std::ostream& out,
91 out <<
FIXED(5,3) <<
object.normalisation <<
' '
92 <<
FIXED(5,3) <<
object.spectralIndex;
double normalisation
normalisation [GeV * m^-2 * sr^-1 * s^-1]
bool has_neutrino(const Evt &evt)
Test whether given event has an incoming neutrino.
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
Implementation of event-weight factor interface.
Auxiliary data structure for floating point format specification.
JEvtWeightFactorFunction< JFunction_t, JFlux > make_fluxFunction(const JFunction_t &flux)
Auxiliary method for creating an interface to a flux function.
double E
Energy [GeV] (either MC truth or reconstructed)
friend std::istream & operator>>(std::istream &in, JPowerLawFlux &object)
Stream input.
double spectralIndex
spectral index >= 0
Exception for null pointer operation.
friend std::ostream & operator<<(std::ostream &out, const JPowerLawFlux &object)
Write power-law parameters to output stream.
T pow(const T &x, const double y)
Power .
Example function object for computing power-law flux.
JEvtWeightFactorFunction< JPowerLawFlux, JFlux > make_powerLawFluxFunction(const double normalisation, const double spectralIndex)
Auxiliary method for creating an interface to a power-law flux function.
double operator()(const Evt &evt) const
Get flux of given event.
int id
offline event identifier
const Trk & get_neutrino(const Evt &evt)
Get incoming neutrino.
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
JPowerLawFlux()
Default constructor.
JPowerLawFlux(const double normalisation, const double spectralIndex)
Constructor.
The Evt class respresent a Monte Carlo (MC) event as well as an offline event.