REST-for-Physics  v2.3
Rare Event Searches ToolKit for Physics
Public Member Functions | Private Member Functions | Private Attributes
TRestDataQualityRules Class Reference

Detailed Description

A class to define the properties of a rule inside TRestDataQualityRules.


RESTsoft - Software for Rare Event Searches with TPCs

History of developments:

2020-May: First implementation and concept Javier Galan

Author
Javier Galan

Definition at line 31 of file TRestDataQualityRules.h.

#include <TRestDataQualityRules.h>

Inheritance diagram for TRestDataQualityRules:

Public Member Functions

void AddRule (TString type, TString value, TVector2 range, Int_t bit)
 
void ClearRules ()
 
Int_t GetBit (unsigned int n)
 
std::vector< Int_t > GetBits ()
 
Int_t GetNumberOfRules () const
 
TVector2 GetRange (unsigned int n)
 
std::vector< TVector2 > GetRanges ()
 
TString GetType (unsigned int n)
 
std::vector< TString > GetTypes ()
 
TString GetValue (unsigned int n)
 
std::vector< TString > GetValues ()
 
 TRestDataQualityRules ()
 Default constructor.
 
 ~TRestDataQualityRules ()
 Default destructor.
 

Private Member Functions

Bool_t EvaluateMetadataRule (TString value, TVector2 range)
 

Private Attributes

std::vector< Int_t > fBits
 The bit position for the corresponding rule.
 
std::vector< TVector2 > fRanges
 The range where it should be found the value of the rule to enable the corresponding bit.
 
std::vector< TString > fTypes
 The rule type. I.e. obsAverage, metadata, ...
 
std::vector< TString > fValues
 The value of the rule. I.e. observable name, metadata member, ...
 

The documentation for this class was generated from the following files: