38 SourceRead(
const string aFilePattern,
const string aName);
187 inline TH1D*
GetLightCurve(
const double aEnergyMin=0.0,
const double aEnergyMax=-1.0){
198 inline TH1D*
GetSpectrum(
const double aTimeMin=0.0,
const double aTimeMax=-1.0){
This module offers C++ utility functions.
This module is used to describe spectra and light curves of astrophysical sources.
Read a source file sequence.
Definition SourceRead.h:23
double GetTimeMax(void)
Returns the source time end [ms].
Definition SourceRead.h:178
string GetName(void)
Returns the source name.
Definition SourceRead.h:124
TGraph * src_cosconeangle
source cone angle [rad].
Definition SourceRead.h:215
double GetCosConeAngle(const ULong64_t aTime)
Returns the source cone angle cosine at a given time.
Definition SourceRead.h:118
virtual ~SourceRead(void)
SourceRead class destructor.
Definition SourceRead.cc:72
SpecTime * src_sp
source SpecTime object (read-only).
Definition SourceRead.h:216
double GetPhip(const ULong64_t aTime)
Returns the source position angle [rad]$ at a given time.
Definition SourceRead.h:91
double GetAstroThetap(void)
Returns the astro-particle [rad].
Definition SourceRead.h:145
double GetThetap(const ULong64_t aTime)
Returns the source position angle [rad] at a given time.
Definition SourceRead.h:78
TH2D * GetFlux(void)
Returns the source flux.
Definition SourceRead.h:53
double GetRightAscensionDeg(const ULong64_t aTime)
Returns the source right ascension in [deg] at a given time.
Definition SourceRead.h:98
double astro_phip
astroparticle phi prime.
Definition SourceRead.h:207
double GetAstroDeclinationDeg(void)
Returns the astro-particle declination in [deg].
Definition SourceRead.h:166
SourceRead(const string aFilePattern, const string aName)
SourceRead class constuctor.
int GetType(void)
Returns the source type (see Source::sourcetype).
Definition SourceRead.h:65
double astro_thetap
astroparticle .
Definition SourceRead.h:206
TGraph * GetPhip(void)
Returns the source position angle [rad]$ as a function of time.
Definition SourceRead.h:84
TH1D * GetLightCurve(const double aEnergyMin=0.0, const double aEnergyMax=-1.0)
Returns the source light curve between two energies.
Definition SourceRead.h:187
ULong64_t astro_time
astroparticle time [ms].
Definition SourceRead.h:205
double astro_energy
astroparticle energy [keV].
Definition SourceRead.h:208
double GetDeclinationDeg(const ULong64_t aTime)
Returns the source declination in [deg] at a given time.
Definition SourceRead.h:105
double GetAstroRightAscensionDeg(void)
Returns the astro-particle right-ascension in [deg].
Definition SourceRead.h:159
int src_type
source type, see Source::sourcetype.
Definition SourceRead.h:212
TH2D * GetRate(void)
Returns the source rate.
Definition SourceRead.h:59
string src_name
source name.
Definition SourceRead.h:211
ULong64_t GetAstroTime(void)
Returns the astro-particle time [ms].
Definition SourceRead.h:131
TH1D * GetSpectrum(const double aTimeMin=0.0, const double aTimeMax=-1.0)
Returns the source energy spectrum between two times.
Definition SourceRead.h:198
double GetAstroPhip(void)
Returns the astro-particle [rad].
Definition SourceRead.h:152
TGraph * src_thetap
source .
Definition SourceRead.h:213
double GetTimeMin(void)
Returns the source time start [ms].
Definition SourceRead.h:172
TGraph * GetThetap(void)
Returns the source position angle [rad] as a function of time.
Definition SourceRead.h:71
TGraph * GetCosConeAngle(void)
Returns the source cone angle cosine as a function of time.
Definition SourceRead.h:111
double GetAstroEnergy(void)
Returns the astro-particle energy [keV].
Definition SourceRead.h:138
TGraph * src_phip
source .
Definition SourceRead.h:214
Astrophysical source spectra and light curves.
Definition SpecTime.h:31
TH1D * GetLightCurve(const double aEnergyMin=0.0, const double aEnergyMax=-1.0)
Returns the source light curve between two energies.
Definition SpecTime.cc:310
double GetTimeMax(void)
Returns the maximum time defining the SpecTime object.
Definition SpecTime.h:176
TH2D * GetRate(void)
Returns a pointer to the flux TH2D object.
Definition SpecTime.h:467
TH2D * GetFlux(void)
Returns a pointer to the flux TH2D object.
Definition SpecTime.h:460
double GetTimeMin(void)
Returns the minimum time defining the SpecTime object.
Definition SpecTime.h:182
TH1D * GetSpectrum(const double aTimeMin=0.0, const double aTimeMax=-1.0, const bool aObserved=false)
Returns the source energy spectrum between two times.
Definition SpecTime.cc:412