ReadTriggers Class Reference

Read trigger files. More...

#include <ReadTriggers.h>

Inheritance diagram for ReadTriggers:
Inheritance graph
[legend]
Collaboration diagram for ReadTriggers:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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.

Author:
Florent Robinet

Constructor & Destructor Documentation

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.

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

Parameters:
aPattern input file pattern
aInSeg Segments selection
aVerbose verbosity level
ReadTriggers::~ReadTriggers ( void   )  [virtual]

Destructor of the ReadTriggers class.


Member Function Documentation

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.

Parameters:
aPattern new input trigger file pattern

Reimplemented from ReadTriggerMetaData.


Friends And Related Function Documentation

friend class SearchRead [friend]

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