InjTre Class Reference

Manage injection TTree. More...

#include <InjTre.h>

Inheritance diagram for InjTre:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Manage injection TTree.

Author:
Florent Robinet

Constructor & Destructor Documentation

InjTre::InjTre ( const string  aInjType,
const int  aVerbose = 0 
)

Constructor of the InjTre class.

The injection type must be provided:

  • "Gauss" for Gaussian injections
  • "SineGauss" for sine-Gaussian injections
Parameters:
aInjType injection type
aVerbose verbosity level
InjTre::~InjTre ( void   )  [virtual]

Destructor of the InjTre class.


Member Function Documentation

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.

Parameters:
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.

Parameters:
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.

Parameters:
aRootFileName output file name

Member Data Documentation

int InjTre::Verbose [protected]

verbosity level


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Friends Defines

Generated on 29 Sep 2016 by  doxygen 1.6.1