Manage injection TTree. More...
#include <InjTre.h>
Public Member Functions | |
int | AddGauss (const double aRa, const double aDec, const double aTime, const double aEccentricity, const double aPolarization, const double aAmplitude, const double aSigma) |
Adds a Gauss-type injection. | |
int | AddSineGauss (const double aRa, const double aDec, const double aTime, const double aEccentricity, const double aPolarization, const double aAmplitude, const double aSigma, const double aFrequency) |
Adds a SineGauss-type injection. | |
string | GetInjectionType (void) |
Returns the injection type. | |
int | GetNInjections (void) |
Returns the current number of injections. | |
void | Reset (void) |
Resets injection TTree. | |
bool | Write (const string aRootFileName="./myinjections.root") |
Writes injections on disk. | |
Constructors and destructors | |
InjTre (const string aInjType, const int aVerbose=0) | |
Constructor of the InjTre class. | |
virtual | ~InjTre () |
Destructor of the InjTre class. | |
Protected Attributes | |
int | Verbose |
verbosity level |
Manage injection TTree.
InjTre::InjTre | ( | const string | aInjType, | |
const int | aVerbose = 0 | |||
) |
Constructor of the InjTre class.
The injection type must be provided:
aInjType | injection type | |
aVerbose | verbosity level |
InjTre::~InjTre | ( | void | ) | [virtual] |
Destructor of the InjTre class.
int InjTre::AddGauss | ( | const double | aRa, | |
const double | aDec, | |||
const double | aTime, | |||
const double | aEccentricity, | |||
const double | aPolarization, | |||
const double | aAmplitude, | |||
const double | aSigma | |||
) |
Adds a Gauss-type injection.
Returns the current number of injections in TTree. Returns -1 if this function fails.
aRa | injection right ascension [rad] | |
aDec | injection declination [rad] | |
aTime | injection GPS time | |
aEccentricity | injection eccentricity | |
aPolarization | injection polarization angle [rad] | |
aAmplitude | injection amplitude | |
aSigma | injection sigma [s] |
int InjTre::AddSineGauss | ( | const double | aRa, | |
const double | aDec, | |||
const double | aTime, | |||
const double | aEccentricity, | |||
const double | aPolarization, | |||
const double | aAmplitude, | |||
const double | aSigma, | |||
const double | aFrequency | |||
) |
Adds a SineGauss-type injection.
Returns the current number of injections in TTree. Returns -1 if this function fails.
aRa | injection right ascension [rad] | |
aDec | injection declination [rad] | |
aTime | injection GPS time | |
aEccentricity | injection eccentricity | |
aPolarization | injection polarization angle [rad] | |
aAmplitude | injection amplitude | |
aSigma | injection sigma [s] | |
aFrequency | injection frequency [Hz] |
string InjTre::GetInjectionType | ( | void | ) | [inline] |
Returns the injection type.
int InjTre::GetNInjections | ( | void | ) | [inline] |
Returns the current number of injections.
void InjTre::Reset | ( | void | ) | [inline] |
Resets injection TTree.
bool InjTre::Write | ( | const string | aRootFileName = "./myinjections.root" |
) |
Writes injections on disk.
aRootFileName | output file name |
int InjTre::Verbose [protected] |
verbosity level