![]() |
GWOLLUM 4.2.0
Tools for gravitational-wave analyses
|
Read a set of injections. More...
#include <InjRea.h>


Public Member Functions | |
| Long64_t | GetFirstInjectionIndexEndAfter (const double aTime) |
| Returns the index of the first injection ending after a given time. | |
| double | GetInjectionAmplitude (void) |
| Returns the current injection amplitude. | |
| double | GetInjectionAmplitudeMax (const unsigned int aNameIndex) |
| Returns the maximum injection amplitude. | |
| double | GetInjectionAmplitudeMin (const unsigned int aNameIndex) |
| Returns the minimum injection amplitude. | |
| double | GetInjectionDec (void) |
| Returns the current injection declination [rad]. | |
| double | GetInjectionEccentricity (void) |
| Returns the current injection eccentricity. | |
| double | GetInjectionFrequency (void) |
| Returns the current injection frequency [Hz]. | |
| double | GetInjectionFrequencyMax (const unsigned int aNameIndex) |
| Returns the maximum injection frequency [Hz]. | |
| double | GetInjectionFrequencyMin (const unsigned int aNameIndex) |
| Returns the minimum injection frequency [Hz]. | |
| Long64_t | GetInjectionIndex (void) |
| Returns the index of the current injection. | |
| Long64_t | GetInjectionIndexAfter (const double aTime) |
| Returns the index of the first injection after a given time. | |
| string | GetInjectionName (const unsigned int aNameIndex) |
| Returns a given injection name in the list. | |
| string | GetInjectionName (void) |
| Returns the current injection name. | |
| unsigned int | GetInjectionNameIndex (void) |
| Returns the current injection name index. | |
| unsigned int | GetInjectionNameN (void) |
| Returns the number of injection names. | |
| TH1D * | GetInjectionParamDist (const string aParamName, const unsigned int aNbins=1, const string aBinType="UNIFORM") |
| Returns the 1D distribution of an injection parameter. | |
| double | GetInjectionPolarization (void) |
| Returns the current injection polarization [rad]. | |
| double | GetInjectionRa (void) |
| Returns the current injection right-ascension [rad]. | |
| double | GetInjectionSigma (void) |
| Returns the current injection sigma [s]. | |
| double | GetInjectionSigmaMax (const unsigned int aNameIndex) |
| Returns the maximum injection sigma [s]. | |
| double | GetInjectionSigmaMin (const unsigned int aNameIndex) |
| Returns the minimum injection sigma [s]. | |
| bool | GetInjectionTag (const Long64_t aInjIndex) |
| Returns an injection tag. | |
| bool | GetInjectionTag (void) |
| Returns the current injection tag. | |
| double | GetInjectionTime (void) |
| Returns the current injection GPS time [s]. | |
| double | GetInjectionTimeEnd (void) |
| Returns the GPS ending time of the injection [s] at the center of the Earth. | |
| double | GetInjectionTimeMax (const unsigned int aNameIndex) |
| Returns the maximum injection GPS time. | |
| double | GetInjectionTimeMin (const unsigned int aNameIndex) |
| Returns the minimum injection GPS time. | |
| double | GetInjectionTimeStart (void) |
| Returns the GPS starting time of the injection [s] at the center of the Earth. | |
| injtype | GetInjectionType (void) |
| Returns the current injection type. | |
| string | GetInputFilePattern (void) |
| Returns the input file pattern provided in the constructor. | |
| Long64_t | GetLastInjectionIndexStartBefore (const double aTime) |
| Returns the index of the last injection starting before a given time. | |
| Long64_t | GetN (const unsigned int aNameIndex) |
| Returns the number of injections of a given name. | |
| Long64_t | GetN (void) |
| Returns the number of injections. | |
| double | GetSineGaussh0cross (void) |
| Returns the SineGauss \(h_{\times rss}\) peak amplitude of current injection. | |
| double | GetSineGaussh0plus (void) |
| Returns the SineGauss \(h_{+rss}\) peak amplitude of current injection. | |
| int | LoadInjection (const Long64_t aInjIndex) |
| Loads a given injection. | |
| void | SetInjectionTag (const bool aTag) |
| Sets a new tag value to the current injection. | |
| void | SetInjectionTag (const Long64_t aInjIndex, const bool aTag) |
| Sets a new tag value to an injection. | |
Constructors and destructors | |
| InjRea (const string aPattern, const unsigned int aVerbose=0) | |
| Constructor of the InjRea class. | |
| virtual | ~InjRea () |
| Destructor of the InjRea class. | |
Protected Attributes | |
| TChain * | InjTree |
| Injection tree. | |
| Monitor * | mon |
| Class monitor. | |
| TGraph * | wave_hcross |
| Waveform \(h_{\times}(t)\). | |
| TGraph * | wave_hplus |
| Waveform \(h_{+}(t)\). | |
Private Attributes | |
| double | inj_amp |
| Injection amplitude. | |
| double * | inj_ampmax |
| Amplitude max. | |
| double * | inj_ampmin |
| Amplitude min. | |
| double | inj_dec |
| Injection declination. | |
| double | inj_durmax_m |
| Maximum injection duration before inj_time. | |
| double | inj_durmax_p |
| Maximum injection duration after inj_time. | |
| double | inj_ecc |
| Injection eccentricity. | |
| double | inj_f0 |
| Injection frequency. | |
| double * | inj_f0max |
| Frequency max. | |
| double * | inj_f0min |
| Frequency min. | |
| Long64_t | inj_index |
| Current injection index. | |
| double | inj_psi |
| Injection polarization angle. | |
| double | inj_ra |
| Injection right ascension. | |
| double | inj_sigma |
| Injection sigma. | |
| double * | inj_sigmamax |
| Sigma max. | |
| double * | inj_sigmamin |
| Sigma min. | |
| bool * | inj_tag |
| Injection tags. | |
| double | inj_time |
| Injection time. | |
| double * | inj_timemax |
| Time max. | |
| double * | inj_timemin |
| Time min. | |
| string | pattern |
| Input file pattern. | |
| TTreeIndex * | sort_index |
| TTree index. | |
| string * | wave_name |
| Waveform name. | |
| Long64_t * | wave_name_n |
| vector< string > | wave_names |
| List of waveform names. | |
| UInt_t | wave_type |
| Waveform type: see InjTyp.h. | |
| TChain * | WaveTree |
| Waveform tree. | |
Read a set of injections.
Injection parameters, generated with the InjGen class, are loaded.
| InjRea::InjRea | ( | const string | aPattern, |
| const unsigned int | aVerbose = 0 |
||
| ) |
|
virtual |
Destructor of the InjRea class.
|
inline |
Returns the index of the first injection ending after a given time.
This function is meant to be used for optimizing for loops over injections overlapping a given time segment. It returns the index of the first injection to consider to cover a time segment. This is an approximation as it considers the maximum duration of all injections to find the first injection: the user must test the injection boundaries (with GetInjectionTimeStart() and GetInjectionTimeEnd()) before injecting in the segment.
| [in] | aTime | Reference time [s]. |
|
inline |
Returns the current injection amplitude.
|
inline |
Returns the maximum injection amplitude.
| [in] | aNameIndex | Index in the list of names. If this index is out-of-range, the global maximum is returned. |
|
inline |
Returns the minimum injection amplitude.
| [in] | aNameIndex | Index in the list of names. If this index is out-of-range, the global minimum is returned. |
|
inline |
Returns the current injection declination [rad].
|
inline |
Returns the current injection eccentricity.
|
inline |
Returns the current injection frequency [Hz].
|
inline |
Returns the maximum injection frequency [Hz].
| [in] | aNameIndex | Index in the list of names. If this index is out-of-range, the global maximum is returned. |
|
inline |
Returns the minimum injection frequency [Hz].
| [in] | aNameIndex | Index in the list of names. If this index is out-of-range, the global minimum is returned. |
|
inline |
Returns the index of the current injection.
| Long64_t InjRea::GetInjectionIndexAfter | ( | const double | aTime | ) |
Returns the index of the first injection after a given time.
| [in] | aTime | Reference time [s]. |
|
inline |
Returns a given injection name in the list.
| [in] | aNameIndex | Index in the list of names. |
|
inline |
Returns the current injection name.
|
inline |
Returns the current injection name index.
|
inline |
Returns the number of injection names.
| TH1D * InjRea::GetInjectionParamDist | ( | const string | aParamName, |
| const unsigned int | aNbins = 1, |
||
| const string | aBinType = "UNIFORM" |
||
| ) |
Returns the 1D distribution of an injection parameter.
| [in] | aParamName | Parameter name. Currently supported: "amplitude" and "f0". |
| [in] | aNbins | Number of bins (must be >0). |
| [in] | aBinType | Binning type. Currently supported: "UNIFORM" and "LOG". |
|
inline |
Returns the current injection polarization [rad].
|
inline |
Returns the current injection right-ascension [rad].
|
inline |
Returns the current injection sigma [s].
|
inline |
Returns the maximum injection sigma [s].
| [in] | aNameIndex | Index in the list of names. If this index is out-of-range, the global maximum is returned. |
|
inline |
Returns the minimum injection sigma [s].
| [in] | aNameIndex | Index in the list of names. If this index is out-of-range, the global minimum is returned. |
|
inline |
Returns an injection tag.
| [in] | aInjIndex | Injection index. |
|
inline |
Returns the current injection tag.
|
inline |
Returns the current injection GPS time [s].
| double InjRea::GetInjectionTimeEnd | ( | void | ) |
Returns the GPS ending time of the injection [s] at the center of the Earth.
It depends on the type of waveform:
|
inline |
Returns the maximum injection GPS time.
| [in] | aNameIndex | Index in the list of names. If this index is out-of-range, the global maximum is returned. |
|
inline |
Returns the minimum injection GPS time.
| [in] | aNameIndex | Index in the list of names. If this index is out-of-range, the global minimum is returned. |
| double InjRea::GetInjectionTimeStart | ( | void | ) |
Returns the GPS starting time of the injection [s] at the center of the Earth.
It depends on the type of waveform:
|
inline |
Returns the current injection type.
|
inline |
Returns the input file pattern provided in the constructor.
|
inline |
Returns the index of the last injection starting before a given time.
This function is meant to be used for optimizing for loops over injections overlapping a given time segment. It returns the index of the last injection to consider to cover a time segment. This injection actually starts after the given time: this is where to stop the loop. This is an approximation as it considers the maximum duration of all injections to find the last injection: the user must test the injection boundaries (with GetInjectionTimeStart() and GetInjectionTimeEnd()) before injecting in the segment.
| [in] | aTime | Reference time [s]. |
|
inline |
Returns the number of injections of a given name.
| [in] | aNameIndex | Index in the list of names. |
|
inline |
Returns the number of injections.
| double InjRea::GetSineGaussh0cross | ( | void | ) |
Returns the SineGauss \(h_{\times rss}\) peak amplitude of current injection.
For details see K. Riles, LIGO-T040055-00
| double InjRea::GetSineGaussh0plus | ( | void | ) |
Returns the SineGauss \(h_{+rss}\) peak amplitude of current injection.
For details see K. Riles, LIGO-T040055-00
| int InjRea::LoadInjection | ( | const Long64_t | aInjIndex | ) |
Loads a given injection.
| [in] | aInjIndex | Injection index. |
|
inline |
Sets a new tag value to the current injection.
| [in] | aTag | New tag value. |
|
inline |
Sets a new tag value to an injection.
| [in] | aInjIndex | Injection index. |
| [in] | aTag | New tag value. |
|
private |
Injection amplitude.
|
private |
Amplitude max.
|
private |
Amplitude min.
|
private |
Injection declination.
|
private |
Maximum injection duration before inj_time.
|
private |
Maximum injection duration after inj_time.
|
private |
Injection eccentricity.
|
private |
Injection frequency.
|
private |
Frequency max.
|
private |
Frequency min.
|
private |
Current injection index.
|
private |
Injection polarization angle.
|
private |
Injection right ascension.
|
private |
Injection sigma.
|
private |
Sigma max.
|
private |
Sigma min.
|
private |
Injection tags.
|
private |
Injection time.
|
private |
Time max.
|
private |
Time min.
|
protected |
Injection tree.
|
protected |
Class monitor.
|
private |
Input file pattern.
|
private |
TTree index.
|
protected |
Waveform \(h_{\times}(t)\).
|
protected |
Waveform \(h_{+}(t)\).
|
private |
Waveform name.
|
private |
|
private |
List of waveform names.
|
private |
Waveform type: see InjTyp.h.
|
private |
Waveform tree.