Class for handling distributions containing the spectra of CR.
More...
#include <spectrum.h>
List of all members.
Public Member Functions |
| | Spectrum (const std::vector< Tproperties > &, const std::vector< double > &) |
| | Constructor.
|
| | Spectrum (const TmodelInformation &, std::string, std::string, Tproperties) |
| | Constructor to read data from FITS or Text file.
|
|
| ~Spectrum () |
| | Destructor.
|
| void | output (std::string, std::string, std::string, std::string, int, double) |
| | Output to file.
|
|
std::vector< double > | getEkin () const |
| | Getter for Ekin.
|
|
std::vector< Tproperties > | getSpec () const |
| | Getter for Particle properties.
|
| void | quality (int) |
| | Function to improve the data quality.
|
| void | reduceData (const std::vector< double > &) |
| | Reduce distribution to data points provided by origEkin.
|
| void | forceField (int, const Spectrum &, double) |
| | Force field routine to calculate force field approximation for a given distribution.
|
| void | modulate (int, const TmodelInformation &, const Spectrum &) |
| | Modulate an input distribution with the result from the simulation, given as a vector of distributions.
|
Detailed Description
Class for handling distributions containing the spectra of CR.
Constructor & Destructor Documentation
| Spectrum::Spectrum |
( |
const std::vector< Tproperties > & |
sp, |
|
|
const std::vector< double > & |
ekinInput |
|
) |
| |
Constructor.
- Parameters:
-
| sp | List (std::vector) of particle properties |
| ekinInput | std::vector of the spacing of the kinetic energy for the distribution |
Constructor to read data from FITS or Text file.
- Parameters:
-
| modelInfo | Model information from import.cc |
| input | File name of the FITS or Text file |
| format | Input Format (FITS, Text or Model) |
| sp | Properties of CR species |
Member Function Documentation
| void Spectrum::forceField |
( |
int |
species, |
|
|
const Spectrum & |
is, |
|
|
double |
phi |
|
) |
| |
Force field routine to calculate force field approximation for a given distribution.
- Parameters:
-
| species | Number of CR species which should be modulated |
| is | Interstellar spectrum which should be modulated |
| phi | Modulation potential parameter phi in GV |
Modulate an input distribution with the result from the simulation, given as a vector of distributions.
- Parameters:
-
| species | Number of CR species which should be modulated |
| modelInfo | Model information from import.cc |
| is | LIS spectrum |
| void Spectrum::output |
( |
std::string |
inputFormat, |
|
|
std::string |
outputFormat, |
|
|
std::string |
in, |
|
|
std::string |
out, |
|
|
int |
m, |
|
|
double |
index |
|
) |
| |
Output to file.
- Parameters:
-
| inputFormat | Input Format |
| outputFormat | Output Format |
| in | Input file name |
| out | Output file name |
| m | modNumber for text output |
| index | spectral index for output rescaling |
| void Spectrum::quality |
( |
int |
extra | ) |
|
Function to improve the data quality.
- Parameters:
-
| extra | Number of extra data points |
| void Spectrum::reduceData |
( |
const std::vector< double > & |
origEkin | ) |
|
Reduce distribution to data points provided by origEkin.
- Parameters:
-
The documentation for this class was generated from the following files: