ReadTimeSlides Class Reference

Access TimeSlides objects in ROOT files. More...

#include <ReadTimeSlides.h>

Inheritance diagram for ReadTimeSlides:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

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.

Author:
Florent Robinet

Constructor & Destructor Documentation

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.

Parameters:
apattern input file pattern
adirectory trigger ROOT directory
averbose verbosity level
ReadTimeSlides::~ReadTimeSlides ( void   )  [virtual]

Destructor of the ReadTimeSlides class.


Member Function Documentation

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.

Parameters:
aStreamIndex stream index
aLagIndex lag index
bool ReadTimeSlides::PrintSlides ( const int  aVerbose = 1  ) 

Prints the offset values for all lags.

Parameters:
aVerbose verbosity level

Member Data Documentation

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


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

Generated on 26 Sep 2014 by  doxygen 1.6.1