![]() |
GWOLLUM 4.2.0
Tools for gravitational-wave analyses
|
Select trigger parameters. More...
#include <TriggerSelect.h>

Public Member Functions | |
| int | GetClusterTag (void) |
| Returns the cluster tag used for the selection. | |
| double | GetFrequencyMax (void) |
| Returns the maximal frequency value. | |
| double | GetFrequencyMin (void) |
| Returns the minimal frequency value. | |
| double | GetFrequencyRange (void) |
| Returns the frequency range value. | |
| unsigned int | GetFrequencyResolution (void) |
| Returns the frequency resolution value. | |
| double | GetQMax (void) |
| Returns the maximal Q value. | |
| double | GetQMin (void) |
| Returns the minimal Q value. | |
| double | GetQRange (void) |
| Returns the Q range value. | |
| unsigned int | GetQResolution (void) |
| Returns the Q resolution value. | |
| double | GetSnrMax (void) |
| Returns the maximal SNR value. | |
| double | GetSnrMin (void) |
| Returns the minimal SNR value. | |
| double | GetSnrRange (void) |
| Returns the SNR range value. | |
| unsigned int | GetSnrResolution (void) |
| Returns the SNR resolution value. | |
| TH1D * | GetTH1D (const string aParameter) |
| Returns an empty 1-D histogram binned in a given parameter. | |
| TH2D * | GetTH2D (const string aParameterX, const string aParameterY) |
| Returns an empty 2-D histogram binned in a given combination of parameters. | |
| double | GetTimeMax (void) |
| Returns the maximal time value. | |
| double | GetTimeMin (void) |
| Returns the minimal time value. | |
| double | GetTimeRange (void) |
| Returns the time range value. | |
| unsigned int | GetTimeResolution (void) |
| Returns the time resolution value. | |
| string | GetTimeStamp (void) |
| Returns the time stamp for this selection. | |
| void | ResetSelection (void) |
| Resets the selection back to default. | |
| void | SetFrequencyMax (const double aMax) |
| Sets the maximal frequency value. | |
| void | SetFrequencyMin (const double aMin) |
| Sets the minimal frequency value. | |
| void | SetFrequencyRange (const double aMin, const double aMax) |
| Sets the frequency range. | |
| void | SetFrequencyResolution (const unsigned int aResolution) |
| Sets the frequency resolution. | |
| void | SetFrequencySelection (const unsigned int aResolution, const double aMin, const double aMax) |
| Sets the frequency selection. | |
| void | SetQMax (const double aMax) |
| Sets the maximal Q value. | |
| void | SetQMin (const double aMin) |
| Sets the minimal Q value. | |
| void | SetQRange (const double aMin, const double aMax) |
| Sets the Q range. | |
| void | SetQResolution (const unsigned int aResolution) |
| Sets the Q resolution. | |
| void | SetQSelection (const unsigned int aResolution, const double aMin, const double aMax) |
| Sets the Q selection. | |
| void | SetSnrMax (const double aMax) |
| Sets the maximal SNR value. | |
| void | SetSnrMin (const double aMin) |
| Sets the minimal SNR value. | |
| void | SetSnrRange (const double aMin, const double aMax) |
| Sets the SNR range. | |
| void | SetSnrResolution (const unsigned int aResolution) |
| Sets the SNR resolution. | |
| void | SetSnrSelection (const unsigned int aResolution, const double aMin, const double aMax) |
| Sets the SNR selection. | |
| void | SetTimeMax (const double aMax) |
| Sets the maximal time value. | |
| void | SetTimeMin (const double aMin) |
| Sets the minimal time value. | |
| void | SetTimeRange (const double aMin, const double aMax) |
| Sets the time range. | |
| void | SetTimeResolution (const unsigned int aResolution) |
| Sets the time resolution. | |
| void | SetTimeSelection (const unsigned int aResolution, const double aMin, const double aMax) |
| Sets the time selection. | |
| void | UseClusterTag (unsigned int aTag) |
| Use cluster tags. | |
| void | UseDateTime (void) |
| Use a date format for time axes. | |
| void | UseGpsTime (void) |
| Use a GPS format for time axes. | |
| void | UseTriggers (void) |
| Use triggers. | |
Constructors and destructors | |
| TriggerSelect (const string aName, const unsigned int aVerbose=0) | |
| Constructor of the TriggerSelect class. | |
| TriggerSelect (ReadTriggers *aTriggers, const unsigned int aVerbose=0) | |
| Constructor of the TriggerSelect class. | |
| virtual | ~TriggerSelect (void) |
| Destructor of the TriggerSelect class. | |
Private Member Functions | |
| void | MakeFbins (void) |
| Makes frequency binning (log). | |
| void | MakeQbins (void) |
| Makes Q binning (log). | |
| void | MakeSbins (void) |
| Makes SNR binning (log). | |
| void | MakeTbins (void) |
| Makes time binning (linear). | |
Private Attributes | |
| int | clustertag |
| cluster tag: -1 for triggers. | |
| double * | fbins |
| Frequency bins. | |
| double | fmax |
| Frequency max (current). | |
| double | fmax_0 |
| Frequency max (default). | |
| double | fmin |
| Frequency min (current). | |
| double | fmin_0 |
| Frequency min (default). | |
| Monitor * | mon |
| Class monitor. | |
| string | name |
| Name. | |
| unsigned int | nfbins |
| Number of frequency bins (current). | |
| unsigned int | nfbins_0 |
| Number of frequency bins (default). | |
| unsigned int | nqbins |
| Number of Q bins (current). | |
| unsigned int | nqbins_0 |
| Number of Q bins (default). | |
| unsigned int | nsbins |
| Number of SNR bins (current). | |
| unsigned int | nsbins_0 |
| Number of SNR bins (default). | |
| unsigned int | ntbins |
| Number of time bins (current). | |
| unsigned int | ntbins_0 |
| Number of time bins (default). | |
| double * | qbins |
| Q bins. | |
| double | qmax |
| Q max (current). | |
| double | qmax_0 |
| Q max (default). | |
| double | qmin |
| Q min (current). | |
| double | qmin_0 |
| Q min (default). | |
| double * | sbins |
| SNR bins. | |
| double | smax |
| SNR max (current). | |
| double | smax_0 |
| SNR max (default). | |
| double | smin |
| SNR min (current). | |
| double | smin_0 |
| SNR min (default). | |
| string | sstart |
| Start time string. See MakeTbins(). | |
| double * | tbins |
| Time bins. | |
| double | tmax |
| Time max (current). | |
| double | tmax_0 |
| Time max (default). | |
| double | tmin |
| Time min (current). | |
| double | tmin_0 |
| Time min (default). | |
| bool | usedate |
| Flag to use a date format. | |
Select trigger parameters.
This class is designed to operate a selection over trigger parameters: time, frequency, Q and SNR. For each parameter, the user can select a minimum, a maximum and a resolution. The resolution is the number of bins to cover the parameter range. The time is linearly binned while the other parameters are logarithmically binned. Once a selection is defined, pre-binned histograms can be extracted.
| TriggerSelect::TriggerSelect | ( | const string | aName, |
| const unsigned int | aVerbose = 0 |
||
| ) |
Constructor of the TriggerSelect class.
Single-bin selections.
| [in] | aName | Selection name. |
| [in] | aVerbose | Verbosity level. |
| TriggerSelect::TriggerSelect | ( | ReadTriggers * | aTriggers, |
| const unsigned int | aVerbose = 0 |
||
| ) |
Constructor of the TriggerSelect class.
The default selection is defined using the metadata (min/max) of the input ReadTriggers object. For each parameter the resolution is set to 1 bin. The selection is given the input Streams name.
| [in] | aTriggers | Input triggers. |
| [in] | aVerbose | Verbosity level. |
|
virtual |
Destructor of the TriggerSelect class.
|
inline |
Returns the cluster tag used for the selection.
|
inline |
Returns the maximal frequency value.
|
inline |
Returns the minimal frequency value.
|
inline |
Returns the frequency range value.
|
inline |
Returns the frequency resolution value.
|
inline |
Returns the maximal Q value.
|
inline |
Returns the minimal Q value.
|
inline |
Returns the Q range value.
|
inline |
Returns the Q resolution value.
|
inline |
Returns the maximal SNR value.
|
inline |
Returns the minimal SNR value.
|
inline |
Returns the SNR range value.
|
inline |
Returns the SNR resolution value.
| TH1D * TriggerSelect::GetTH1D | ( | const string | aParameter | ) |
Returns an empty 1-D histogram binned in a given parameter.
| [in] | aParameter | Parameter name. |
| TH2D * TriggerSelect::GetTH2D | ( | const string | aParameterX, |
| const string | aParameterY | ||
| ) |
Returns an empty 2-D histogram binned in a given combination of parameters.
| [in] | aParameterX | Parameter name for X axis. |
| [in] | aParameterY | Parameter name for Y axis. |
|
inline |
Returns the maximal time value.
|
inline |
Returns the minimal time value.
|
inline |
Returns the time range value.
|
inline |
Returns the time resolution value.
|
inline |
Returns the time stamp for this selection.
The minimum time for this selection is returned.
|
private |
Makes frequency binning (log).
|
private |
Makes Q binning (log).
|
private |
Makes SNR binning (log).
|
private |
Makes time binning (linear).
| void TriggerSelect::ResetSelection | ( | void | ) |
Resets the selection back to default.
|
inline |
Sets the maximal frequency value.
| [in] | aMax | Maximal value. |
|
inline |
Sets the minimal frequency value.
| [in] | aMin | Minimal value. |
|
inline |
Sets the frequency range.
| [in] | aMin | Minimal value. |
| [in] | aMax | Maximal value. |
|
inline |
Sets the frequency resolution.
| [in] | aResolution | Resolution (number of bins). |
| void TriggerSelect::SetFrequencySelection | ( | const unsigned int | aResolution, |
| const double | aMin, | ||
| const double | aMax | ||
| ) |
Sets the frequency selection.
| [in] | aResolution | Resolution (number of bins). |
| [in] | aMin | Minimal value. |
| [in] | aMax | Maximal value. |
|
inline |
Sets the maximal Q value.
| [in] | aMax | Maximal value. |
|
inline |
Sets the minimal Q value.
| [in] | aMin | Minimal value. |
|
inline |
Sets the Q range.
| [in] | aMin | Minimal value. |
| [in] | aMax | Maximal value. |
|
inline |
Sets the Q resolution.
| [in] | aResolution | Resolution (number of bins). |
| void TriggerSelect::SetQSelection | ( | const unsigned int | aResolution, |
| const double | aMin, | ||
| const double | aMax | ||
| ) |
Sets the Q selection.
| [in] | aResolution | Resolution (number of bins). |
| [in] | aMin | Minimal value. |
| [in] | aMax | Maximal value. |
|
inline |
Sets the maximal SNR value.
| [in] | aMax | Maximal value. |
|
inline |
Sets the minimal SNR value.
| [in] | aMin | Minimal value. |
|
inline |
Sets the SNR range.
| [in] | aMin | Minimal value. |
| [in] | aMax | Maximal value. |
|
inline |
Sets the SNR resolution.
| [in] | aResolution | Resolution (number of bins). |
| void TriggerSelect::SetSnrSelection | ( | const unsigned int | aResolution, |
| const double | aMin, | ||
| const double | aMax | ||
| ) |
Sets the SNR selection.
| [in] | aResolution | Resolution (number of bins). |
| [in] | aMin | Minimal value. |
| [in] | aMax | Maximal value. |
|
inline |
Sets the maximal time value.
| [in] | aMax | Maximal value. |
|
inline |
Sets the minimal time value.
| [in] | aMin | Minimal value. |
|
inline |
Sets the time range.
| [in] | aMin | Minimal value. |
| [in] | aMax | Maximal value. |
|
inline |
Sets the time resolution.
| [in] | aResolution | Resolution (number of bins). |
| void TriggerSelect::SetTimeSelection | ( | const unsigned int | aResolution, |
| const double | aMin, | ||
| const double | aMax | ||
| ) |
Sets the time selection.
| [in] | aResolution | Resolution (number of bins). |
| [in] | aMin | Minimal value. |
| [in] | aMax | Maximal value. |
|
inline |
Use cluster tags.
| [in] | aTag | Cluster tag. |
|
inline |
Use a date format for time axes.
|
inline |
Use a GPS format for time axes.
|
inline |
Use triggers.
|
private |
cluster tag: -1 for triggers.
|
private |
Frequency bins.
|
private |
Frequency max (current).
|
private |
Frequency max (default).
|
private |
Frequency min (current).
|
private |
Frequency min (default).
|
private |
Class monitor.
|
private |
Name.
|
private |
Number of frequency bins (current).
|
private |
Number of frequency bins (default).
|
private |
Number of Q bins (current).
|
private |
Number of Q bins (default).
|
private |
Number of SNR bins (current).
|
private |
Number of SNR bins (default).
|
private |
Number of time bins (current).
|
private |
Number of time bins (default).
|
private |
Q bins.
|
private |
Q max (current).
|
private |
Q max (default).
|
private |
Q min (current).
|
private |
Q min (default).
|
private |
SNR bins.
|
private |
SNR max (current).
|
private |
SNR max (default).
|
private |
SNR min (current).
|
private |
SNR min (default).
|
private |
Start time string. See MakeTbins().
|
private |
Time bins.
|
private |
Time max (current).
|
private |
Time max (default).
|
private |
Time min (current).
|
private |
Time min (default).
|
private |
Flag to use a date format.