Read trigger files. More...
#include <ReadTriggers.h>
Public Member Functions | |
bool | SetNewPattern (const string aPattern) |
Loads new trigger files. | |
Constructors and destructors | |
ReadTriggers (const string aPattern, Segments *aInSeg, const int aVerbose=0) | |
Constructor of the ReadTriggers class. | |
ReadTriggers (const string aPattern, const string aDirectory="", const int aVerbose=0) | |
Constructor of the ReadTriggers class. | |
virtual | ~ReadTriggers (void) |
Destructor of the ReadTriggers class. | |
Friends | |
class | SearchRead |
Read trigger files.
This class was designed to read triggers saved in ROOT files and following the GWOLLUM convention. It inherits from the Triggers (reading-mode) and the ReadTriggerMetaData classes. The purpose is to offer a class which logically loads all the trigger information contained in trigger files: the triggers, the segments and the metadata.
ReadTriggers::ReadTriggers | ( | const string | aPattern, | |
const string | aDirectory = "" , |
|||
const int | aVerbose = 0 | |||
) |
Constructor of the ReadTriggers class.
The trigger files designated by the file pattern 'aPattern' are loaded. The triggers, the segments and the metadata are accessed in the root directory 'aDirectory'. The verbosity level, set by 'aVerbose', follows the GWOLLUM convention for verbosity. The stream name saved in the metadata is used to construct the Streams inheritance.
aPattern | input file pattern | |
aDirectory | trigger ROOT directory | |
aVerbose | verbosity level |
ReadTriggers::ReadTriggers | ( | const string | aPattern, | |
Segments * | aInSeg, | |||
const int | aVerbose = 0 | |||
) |
Constructor of the ReadTriggers class.
The trigger files designated by the file pattern 'aPattern' and selected by a list of segments are loaded. The triggers, the segments and the metadata are accessed in the root directory 'aDirectory'. The verbosity level, set by 'aVerbose', follows the GWOLLUM convention for verbosity. The stream name saved in the metadata is used to construct the Streams inheritance.
aPattern | input file pattern | |
aInSeg | Segments selection | |
aVerbose | verbosity level |
ReadTriggers::~ReadTriggers | ( | void | ) | [virtual] |
Destructor of the ReadTriggers class.
bool ReadTriggers::SetNewPattern | ( | const string | aPattern | ) |
Loads new trigger files.
This function resets the ReadTriggers class and loads a new list of files given by 'aPattern'.
IMPORTANT: the user should use this function instead of the Triggers::ReadTriggerFiles(). Triggers::ReadTriggerFiles() is incomplete as it will only load triggers and not the segments and the metadata.
aPattern | new input trigger file pattern |
Reimplemented from ReadTriggerMetaData.
friend class SearchRead [friend] |