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. More...
 
 ~TRestDataQualityRules ()
 Default destructor. More...
 

Private Member Functions

Bool_t EvaluateMetadataRule (TString value, TVector2 range)
 

Private Attributes

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

Constructor & Destructor Documentation

◆ TRestDataQualityRules()

TRestDataQualityRules::TRestDataQualityRules ( )

Default constructor.

Definition at line 49 of file TRestDataQualityRules.cxx.

◆ ~TRestDataQualityRules()

TRestDataQualityRules::~TRestDataQualityRules ( )

Default destructor.

Definition at line 54 of file TRestDataQualityRules.cxx.

Member Function Documentation

◆ AddRule()

void TRestDataQualityRules::AddRule ( TString  type,
TString  value,
TVector2  range,
Int_t  bit 
)
inline

Definition at line 48 of file TRestDataQualityRules.h.

◆ ClearRules()

void TRestDataQualityRules::ClearRules ( )
inline

Definition at line 55 of file TRestDataQualityRules.h.

◆ EvaluateMetadataRule()

Bool_t TRestDataQualityRules::EvaluateMetadataRule ( TString  value,
TVector2  range 
)
private

Definition at line 56 of file TRestDataQualityRules.cxx.

◆ GetBit()

Int_t TRestDataQualityRules::GetBit ( unsigned int  n)
inline

Definition at line 88 of file TRestDataQualityRules.h.

◆ GetBits()

std::vector< Int_t > TRestDataQualityRules::GetBits ( )
inline

Definition at line 70 of file TRestDataQualityRules.h.

◆ GetNumberOfRules()

Int_t TRestDataQualityRules::GetNumberOfRules ( ) const
inline

Definition at line 62 of file TRestDataQualityRules.h.

◆ GetRange()

TVector2 TRestDataQualityRules::GetRange ( unsigned int  n)
inline

Definition at line 86 of file TRestDataQualityRules.h.

◆ GetRanges()

std::vector< TVector2 > TRestDataQualityRules::GetRanges ( )
inline

Definition at line 68 of file TRestDataQualityRules.h.

◆ GetType()

TString TRestDataQualityRules::GetType ( unsigned int  n)
inline

Definition at line 72 of file TRestDataQualityRules.h.

◆ GetTypes()

std::vector< TString > TRestDataQualityRules::GetTypes ( )
inline

Definition at line 64 of file TRestDataQualityRules.h.

◆ GetValue()

TString TRestDataQualityRules::GetValue ( unsigned int  n)
inline

Definition at line 79 of file TRestDataQualityRules.h.

◆ GetValues()

std::vector< TString > TRestDataQualityRules::GetValues ( )
inline

Definition at line 66 of file TRestDataQualityRules.h.

Field Documentation

◆ fBits

std::vector<Int_t> TRestDataQualityRules::fBits
private

The bit position for the corresponding rule.

Definition at line 43 of file TRestDataQualityRules.h.

◆ fRanges

std::vector<TVector2> TRestDataQualityRules::fRanges
private

The range where it should be found the value of the rule to enable the corresponding bit.

Definition at line 40 of file TRestDataQualityRules.h.

◆ fTypes

std::vector<TString> TRestDataQualityRules::fTypes
private

The rule type. I.e. obsAverage, metadata, ...

Definition at line 34 of file TRestDataQualityRules.h.

◆ fValues

std::vector<TString> TRestDataQualityRules::fValues
private

The value of the rule. I.e. observable name, metadata member, ...

Definition at line 37 of file TRestDataQualityRules.h.


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