Example function object for computing power-law flux.
More...
#include <JPowerLawFlux.hh>
Example function object for computing power-law flux.
Definition at line 21 of file JPowerLawFlux.hh.
JAANET::JPowerLawFlux::JPowerLawFlux |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 27 of file JPowerLawFlux.hh.
double normalisation
normalisation [GeV * m^-2 * sr^-1 * s^-1]
double spectralIndex
spectral index >= 0
JAANET::JPowerLawFlux::JPowerLawFlux |
( |
const double |
normalisation, |
|
|
const double |
spectralIndex |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
normalisation | normalisation [GeV * m^-2 * sr^-1 * s^-1] |
spectralIndex | spectral index |
Definition at line 39 of file JPowerLawFlux.hh.
double normalisation
normalisation [GeV * m^-2 * sr^-1 * s^-1]
double spectralIndex
spectral index >= 0
double JAANET::JPowerLawFlux::operator() |
( |
const Evt & |
evt | ) |
const |
|
inline |
Get flux of given event.
- Parameters
-
- Returns
- flux [GeV * m^-2 * sr^-1 * s^-1]
Definition at line 52 of file JPowerLawFlux.hh.
65 THROW(JNullPointerException,
"JPowerLawFlux::operator(): No neutrino for event " << evt.
id <<
'.' << endl);
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.
double E
Energy [GeV] (either MC truth or reconstructed)
double spectralIndex
spectral index >= 0
T pow(const T &x, const double y)
Power .
int id
offline event identifier
const Trk & get_neutrino(const Evt &evt)
Get incoming neutrino.
The Trk class represents a Monte Carlo (MC) particle as well as a reconstructed track/shower.
bool JAANET::JPowerLawFlux::equals |
( |
const JPowerLawFlux & |
object | ) |
const |
|
inline |
Check if this flux is identical to the given flux.
- Parameters
-
object | power-law flux object |
- Returns
- true if this flux is identical to given flux; else flase
Definition at line 76 of file JPowerLawFlux.hh.
double normalisation
normalisation [GeV * m^-2 * sr^-1 * s^-1]
double spectralIndex
spectral index >= 0
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JPowerLawFlux & |
object |
|
) |
| |
|
friend |
Stream input.
- Parameters
-
in | input stream |
object | power-law flux |
- Returns
- input stream
Definition at line 90 of file JPowerLawFlux.hh.
93 return in >>
object.normalisation
94 >>
object.spectralIndex;
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
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JPowerLawFlux & |
object |
|
) |
| |
|
friend |
Write power-law parameters to output stream.
- Parameters
-
out | output stream |
object | power-law flux |
- Returns
- output stream
Definition at line 105 of file JPowerLawFlux.hh.
110 out <<
FIXED(5,3) <<
object.normalisation <<
' '
111 <<
FIXED(5,3) <<
object.spectralIndex;
Auxiliary data structure for floating point format specification.
double JAANET::JPowerLawFlux::normalisation |
double JAANET::JPowerLawFlux::spectralIndex |
The documentation for this struct was generated from the following file: