Access TimeSlides objects in ROOT files. More...
#include <ReadTimeSlides.h>

Public Member Functions | |
| int | GetNLags (void) |
| Returns the number of lags. | |
| int | GetNlags (void) |
| Returns the number of lags. | |
| int | GetNstreams (void) |
| Returns the number of streams. | |
| int | GetNStreams (void) |
| Returns the number of streams. | |
| double | GetTimeOffset (const int aStreamIndex, const int aLagIndex) |
| Returns the time offset for lag 'aLagIndex' and stream 'aStreamIndex'. | |
| bool | PrintSlides (const int aVerbose=1) |
| Prints the offset values for all lags. | |
Constructors and destructors | |
| ReadTimeSlides (const string apattern, const string adirectory="", const int averbose=0) | |
| Constructor of the ReadTimeSlides class. | |
| virtual | ~ReadTimeSlides (void) |
| Destructor of the ReadTimeSlides class. | |
Protected Attributes | |
| string | fdir |
| root directory | |
| string | fpattern |
| pattern of input root files | |
| int | fverbose |
| verbosity level | |
| int | nlags |
| number of lags | |
| int | Nstreams |
| number of data streams | |
| int | randid |
| random integer id | |
| string | srandid |
| random string id | |
| bool | status_OK |
| general status | |
| string * | stream_st |
| stream number suffix | |
| double ** | t_offset |
| time offsets | |
Access TimeSlides objects in ROOT files.
This class was designed to load a collection of ROOT files containing TimeSlides objects (see the GWOLLUM convention for TimeSlides). The lag properties can then be accessed.
| ReadTimeSlides::ReadTimeSlides | ( | const string | apattern, | |
| const string | adirectory = "", |
|||
| const int | averbose = 0 | |||
| ) |
Constructor of the ReadTimeSlides class.
The ROOT files designated by the file pattern are loaded. TTrees named "slides" found in the specified directory are chained. The TTrees must follow the GWOLLUM convention for TimeSlides. In addition *all* the TTrees must be exactly the same: same number of entries and same time offsets. The number of streams is automatically detected given the tree content. There should be at least one stream.
| apattern | input file pattern | |
| adirectory | trigger ROOT directory | |
| averbose | verbosity level |
| ReadTimeSlides::~ReadTimeSlides | ( | void | ) | [virtual] |
Destructor of the ReadTimeSlides class.
| int ReadTimeSlides::GetNLags | ( | void | ) | [inline] |
Returns the number of lags.
| int ReadTimeSlides::GetNlags | ( | void | ) | [inline] |
Returns the number of lags.
| int ReadTimeSlides::GetNstreams | ( | void | ) | [inline] |
Returns the number of streams.
| int ReadTimeSlides::GetNStreams | ( | void | ) | [inline] |
Returns the number of streams.
| double ReadTimeSlides::GetTimeOffset | ( | const int | aStreamIndex, | |
| const int | aLagIndex | |||
| ) |
Returns the time offset for lag 'aLagIndex' and stream 'aStreamIndex'.
Returns -1e20 if it fails.
| aStreamIndex | stream index | |
| aLagIndex | lag index |
| bool ReadTimeSlides::PrintSlides | ( | const int | aVerbose = 1 |
) |
Prints the offset values for all lags.
| aVerbose | verbosity level |
string ReadTimeSlides::fdir [protected] |
root directory
string ReadTimeSlides::fpattern [protected] |
pattern of input root files
int ReadTimeSlides::fverbose [protected] |
verbosity level
int ReadTimeSlides::nlags [protected] |
number of lags
int ReadTimeSlides::Nstreams [protected] |
number of data streams
int ReadTimeSlides::randid [protected] |
random integer id
string ReadTimeSlides::srandid [protected] |
random string id
bool ReadTimeSlides::status_OK [protected] |
general status
string* ReadTimeSlides::stream_st [protected] |
stream number suffix
double** ReadTimeSlides::t_offset [protected] |
time offsets
1.6.1