![]() |
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]. | |
| double | GetAstroEnergy (void) |
| Returns the astro-particle energy [keV]. | |
| double | GetAstroPhip (void) |
| Returns the astro-particle \(\varphi'\) [rad]. | |
| double | GetAstroRightAscensionDeg (void) |
| Returns the astro-particle right-ascension in [deg]. | |
| double | GetAstroThetap (void) |
| Returns the astro-particle \(\theta'\) [rad]. | |
| ULong64_t | GetAstroTime (void) |
| Returns the astro-particle time [ms]. | |
| double | GetCosConeAngle (const ULong64_t aTime) |
| Returns the source cone angle cosine at a given time. | |
| TGraph * | GetCosConeAngle (void) |
| Returns the source cone angle cosine as a function of time. | |
| double | GetDeclinationDeg (const ULong64_t aTime) |
| Returns the source declination in [deg] at a given time. | |
| TH2D * | GetFlux (void) |
| Returns the source flux. | |
| TH1D * | GetLightCurve (const double aEnergyMin=0.0, const double aEnergyMax=-1.0) |
| Returns the source light curve between two energies. | |
| string | GetName (void) |
| Returns the source name. | |
| double | GetPhip (const ULong64_t aTime) |
| Returns the source position angle \(\varphi'\) [rad]$ at a given time. | |
| TGraph * | GetPhip (void) |
| Returns the source position angle \(\varphi'\) [rad]$ as a function of time. | |
| TH2D * | GetRate (void) |
| Returns the source rate. | |
| double | GetRightAscensionDeg (const ULong64_t aTime) |
| Returns the source right ascension in [deg] at a given time. | |
| TH1D * | GetSpectrum (const double aTimeMin=0.0, const double aTimeMax=-1.0) |
| Returns the source energy spectrum between two times. | |
| double | GetThetap (const ULong64_t aTime) |
| Returns the source position angle \(\theta'\) [rad] at a given time. | |
| TGraph * | GetThetap (void) |
| Returns the source position angle \(\theta'\) [rad] as a function of time. | |
| double | GetTimeMax (void) |
| Returns the source time end [ms]. | |
| double | GetTimeMin (void) |
| Returns the source time start [ms]. | |
| int | GetType (void) |
| Returns the source type (see Source::sourcetype). | |
Constructors and destructors | |
| SourceRead (const string aFilePattern, const string aName) | |
| SourceRead class constuctor. | |
| virtual | ~SourceRead (void) |
| SourceRead class destructor. | |
Private Attributes | |
| double | astro_energy |
| astroparticle energy [keV]. | |
| double | astro_phip |
| astroparticle phi prime. | |
| double | astro_thetap |
| astroparticle \(\theta'\). | |
| ULong64_t | astro_time |
| astroparticle time [ms]. | |
| TGraph * | src_cosconeangle |
| source cone angle [rad]. | |
| string | src_name |
| source name. | |
| TGraph * | src_phip |
| source \(\varphi'_{S}\). | |
| SpecTime * | src_sp |
| source SpecTime object (read-only). | |
| TGraph * | src_thetap |
| source \(\theta'_{S}\). | |
| int | src_type |
| source type, see Source::sourcetype. | |
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.