SatAndLight
2.2.2-hubble
Simulation toolkit for space telescopes
|
Read a source file sequence. More...
#include <SourceRead.h>
Public Member Functions | |
double | GetAstroDeclinationDeg (void) |
Returns the astro-particle declination in [deg]. More... | |
double | GetAstroEnergy (void) |
Returns the astro-particle energy [keV]. More... | |
double | GetAstroPhip (void) |
Returns the astro-particle \(\varphi'\) [rad]. More... | |
double | GetAstroRightAscensionDeg (void) |
Returns the astro-particle right-ascension in [deg]. More... | |
double | GetAstroThetap (void) |
Returns the astro-particle \(\theta'\) [rad]. More... | |
ULong64_t | GetAstroTime (void) |
Returns the astro-particle time [ms]. More... | |
double | GetCosConeAngle (const ULong64_t aTime) |
Returns the source cone angle cosine at a given time. More... | |
TGraph * | GetCosConeAngle (void) |
Returns the source cone angle cosine as a function of time. More... | |
double | GetDeclinationDeg (const ULong64_t aTime) |
Returns the source declination in [deg] at a given time. More... | |
TH2D * | GetFlux (void) |
Returns the source flux. More... | |
TH1D * | GetLightCurve (const double aEnergyMin=0.0, const double aEnergyMax=-1.0) |
Returns the source light curve between two energies. More... | |
string | GetName (void) |
Returns the source name. More... | |
double | GetPhip (const ULong64_t aTime) |
Returns the source position angle \(\varphi'\) [rad]$ at a given time. More... | |
TGraph * | GetPhip (void) |
Returns the source position angle \(\varphi'\) [rad]$ as a function of time. More... | |
TH2D * | GetRate (void) |
Returns the source rate. More... | |
double | GetRightAscensionDeg (const ULong64_t aTime) |
Returns the source right ascension in [deg] at a given time. More... | |
TH1D * | GetSpectrum (const double aTimeMin=0.0, const double aTimeMax=-1.0) |
Returns the source energy spectrum between two times. More... | |
double | GetThetap (const ULong64_t aTime) |
Returns the source position angle \(\theta'\) [rad] at a given time. More... | |
TGraph * | GetThetap (void) |
Returns the source position angle \(\theta'\) [rad] as a function of time. More... | |
double | GetTimeMax (void) |
Returns the source time end [ms]. More... | |
double | GetTimeMin (void) |
Returns the source time start [ms]. More... | |
int | GetType (void) |
Returns the source type (see Source::sourcetype). More... | |
Constructors and destructors | |
SourceRead (const string aFilePattern, const string aName) | |
SourceRead class constuctor. More... | |
virtual | ~SourceRead (void) |
SourceRead class destructor. More... | |
Private Attributes | |
double | astro_energy |
astroparticle energy [keV]. More... | |
double | astro_phip |
astroparticle phi prime. More... | |
double | astro_thetap |
astroparticle \(\theta'\). More... | |
ULong64_t | astro_time |
astroparticle time [ms]. More... | |
TGraph * | src_cosconeangle |
source cone angle [rad]. More... | |
string | src_name |
source name. More... | |
TGraph * | src_phip |
source \(\varphi'_{S}\). More... | |
SpecTime * | src_sp |
source SpecTime object (read-only). More... | |
TGraph * | src_thetap |
source \(\theta'_{S}\). More... | |
int | src_type |
source type, see Source::sourcetype. More... | |
Read a source file sequence.
A source object, created with the Source class, can be saved in a sequence of root files (see Source). This class can be used to read the resulting source file sequence. The SourceRead object should be seen as a TChain object which can be used to browse the astro-particles generated with the source (using TChain::GetEntry()).
SourceRead::SourceRead | ( | const string | aFilePattern, |
const string | aName | ||
) |
SourceRead class constuctor.
The source sequence is extracted from the list of ROOT files given in argument.
[in] | aFilePattern | ROOT file pattern where the source sequence is saved. |
[in] | aName | Source name (sub-directories are supported). |
|
virtual |
SourceRead class destructor.
|
inline |
Returns the astro-particle declination in [deg].
Use the TChain methods to navigate in the entries.
|
inline |
Returns the astro-particle energy [keV].
Use the TChain methods to navigate in the entries.
|
inline |
Returns the astro-particle \(\varphi'\) [rad].
Use the TChain methods to navigate in the entries.
|
inline |
Returns the astro-particle right-ascension in [deg].
Use the TChain methods to navigate in the entries.
|
inline |
Returns the astro-particle \(\theta'\) [rad].
Use the TChain methods to navigate in the entries.
|
inline |
Returns the astro-particle time [ms].
Use the TChain methods to navigate in the entries.
|
inline |
Returns the source cone angle cosine at a given time.
[in] | aTime | Time [ms]. |
|
inline |
Returns the source cone angle cosine as a function of time.
|
inline |
Returns the source declination in [deg] at a given time.
[in] | aTime | Time [ms]. |
|
inline |
Returns the source flux.
|
inline |
Returns the source light curve between two energies.
[in] | aEnergyMin | Minimum energy, \(E_{min}\), in \([\mathrm{keV}]\). |
[in] | aEnergyMax | Maximum energy, \(E_{max}\), in \([\mathrm{keV}]\). |
|
inline |
Returns the source name.
|
inline |
Returns the source position angle \(\varphi'\) [rad]$ at a given time.
[in] | aTime | Time [ms]. |
|
inline |
Returns the source position angle \(\varphi'\) [rad]$ as a function of time.
|
inline |
Returns the source rate.
|
inline |
Returns the source right ascension in [deg] at a given time.
[in] | aTime | Time [ms]. |
|
inline |
Returns the source energy spectrum between two times.
[in] | aTimeMin | Minimum time, \(t_{min}\), in \([\mathrm{ms}]\). |
[in] | aTimeMax | Maximum time, \(t_{max}\), in \([\mathrm{ms}]\). |
|
inline |
Returns the source position angle \(\theta'\) [rad] at a given time.
[in] | aTime | Time [ms]. |
|
inline |
Returns the source position angle \(\theta'\) [rad] as a function of time.
|
inline |
Returns the source time end [ms].
|
inline |
Returns the source time start [ms].
|
inline |
Returns the source type (see Source::sourcetype).
|
private |
astroparticle energy [keV].
|
private |
astroparticle phi prime.
|
private |
astroparticle \(\theta'\).
|
private |
astroparticle time [ms].
|
private |
source cone angle [rad].
|
private |
source name.
|
private |
source \(\varphi'_{S}\).
|
private |
source \(\theta'_{S}\).
|
private |
source type, see Source::sourcetype.