SatAndLight  2.2.2-hubble
Simulation toolkit for space telescopes
SourceRead Class Reference

Read a source file sequence. More...

#include <SourceRead.h>

Inheritance diagram for SourceRead:
Collaboration diagram for SourceRead:

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...
 
SpecTimesrc_sp
 source SpecTime object (read-only). More...
 
TGraph * src_thetap
 source \(\theta'_{S}\). More...
 
int src_type
 source type, see Source::sourcetype. More...
 

Detailed Description

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()).

Author
Florent Robinet

Constructor & Destructor Documentation

◆ SourceRead()

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.

Parameters
[in]aFilePatternROOT file pattern where the source sequence is saved.
[in]aNameSource name (sub-directories are supported).

◆ ~SourceRead()

SourceRead::~SourceRead ( void  )
virtual

SourceRead class destructor.

Member Function Documentation

◆ GetAstroDeclinationDeg()

double SourceRead::GetAstroDeclinationDeg ( void  )
inline

Returns the astro-particle declination in [deg].

Use the TChain methods to navigate in the entries.

◆ GetAstroEnergy()

double SourceRead::GetAstroEnergy ( void  )
inline

Returns the astro-particle energy [keV].

Use the TChain methods to navigate in the entries.

◆ GetAstroPhip()

double SourceRead::GetAstroPhip ( void  )
inline

Returns the astro-particle \(\varphi'\) [rad].

Use the TChain methods to navigate in the entries.

◆ GetAstroRightAscensionDeg()

double SourceRead::GetAstroRightAscensionDeg ( void  )
inline

Returns the astro-particle right-ascension in [deg].

Use the TChain methods to navigate in the entries.

◆ GetAstroThetap()

double SourceRead::GetAstroThetap ( void  )
inline

Returns the astro-particle \(\theta'\) [rad].

Use the TChain methods to navigate in the entries.

◆ GetAstroTime()

ULong64_t SourceRead::GetAstroTime ( void  )
inline

Returns the astro-particle time [ms].

Use the TChain methods to navigate in the entries.

◆ GetCosConeAngle() [1/2]

double SourceRead::GetCosConeAngle ( const ULong64_t  aTime)
inline

Returns the source cone angle cosine at a given time.

Parameters
[in]aTimeTime [ms].

◆ GetCosConeAngle() [2/2]

TGraph* SourceRead::GetCosConeAngle ( void  )
inline

Returns the source cone angle cosine as a function of time.

◆ GetDeclinationDeg()

double SourceRead::GetDeclinationDeg ( const ULong64_t  aTime)
inline

Returns the source declination in [deg] at a given time.

Parameters
[in]aTimeTime [ms].

◆ GetFlux()

TH2D* SourceRead::GetFlux ( void  )
inline

Returns the source flux.

◆ GetLightCurve()

TH1D* SourceRead::GetLightCurve ( const double  aEnergyMin = 0.0,
const double  aEnergyMax = -1.0 
)
inline

Returns the source light curve between two energies.

See also
SpecTime::GetLightCurve().
Parameters
[in]aEnergyMinMinimum energy, \(E_{min}\), in \([\mathrm{keV}]\).
[in]aEnergyMaxMaximum energy, \(E_{max}\), in \([\mathrm{keV}]\).

◆ GetName()

string SourceRead::GetName ( void  )
inline

Returns the source name.

◆ GetPhip() [1/2]

double SourceRead::GetPhip ( const ULong64_t  aTime)
inline

Returns the source position angle \(\varphi'\) [rad]$ at a given time.

Parameters
[in]aTimeTime [ms].

◆ GetPhip() [2/2]

TGraph* SourceRead::GetPhip ( void  )
inline

Returns the source position angle \(\varphi'\) [rad]$ as a function of time.

◆ GetRate()

TH2D* SourceRead::GetRate ( void  )
inline

Returns the source rate.

◆ GetRightAscensionDeg()

double SourceRead::GetRightAscensionDeg ( const ULong64_t  aTime)
inline

Returns the source right ascension in [deg] at a given time.

Parameters
[in]aTimeTime [ms].

◆ GetSpectrum()

TH1D* SourceRead::GetSpectrum ( const double  aTimeMin = 0.0,
const double  aTimeMax = -1.0 
)
inline

Returns the source energy spectrum between two times.

See also
SpecTime::GetSpectrum().
Parameters
[in]aTimeMinMinimum time, \(t_{min}\), in \([\mathrm{ms}]\).
[in]aTimeMaxMaximum time, \(t_{max}\), in \([\mathrm{ms}]\).

◆ GetThetap() [1/2]

double SourceRead::GetThetap ( const ULong64_t  aTime)
inline

Returns the source position angle \(\theta'\) [rad] at a given time.

Parameters
[in]aTimeTime [ms].

◆ GetThetap() [2/2]

TGraph* SourceRead::GetThetap ( void  )
inline

Returns the source position angle \(\theta'\) [rad] as a function of time.

◆ GetTimeMax()

double SourceRead::GetTimeMax ( void  )
inline

Returns the source time end [ms].

◆ GetTimeMin()

double SourceRead::GetTimeMin ( void  )
inline

Returns the source time start [ms].

◆ GetType()

int SourceRead::GetType ( void  )
inline

Returns the source type (see Source::sourcetype).

Member Data Documentation

◆ astro_energy

double SourceRead::astro_energy
private

astroparticle energy [keV].

◆ astro_phip

double SourceRead::astro_phip
private

astroparticle phi prime.

◆ astro_thetap

double SourceRead::astro_thetap
private

astroparticle \(\theta'\).

◆ astro_time

ULong64_t SourceRead::astro_time
private

astroparticle time [ms].

◆ src_cosconeangle

TGraph* SourceRead::src_cosconeangle
private

source cone angle [rad].

◆ src_name

string SourceRead::src_name
private

source name.

◆ src_phip

TGraph* SourceRead::src_phip
private

source \(\varphi'_{S}\).

◆ src_sp

SpecTime* SourceRead::src_sp
private

source SpecTime object (read-only).

◆ src_thetap

TGraph* SourceRead::src_thetap
private

source \(\theta'_{S}\).

◆ src_type

int SourceRead::src_type
private

source type, see Source::sourcetype.


The documentation for this class was generated from the following files: