REST-for-Physics
v2.3
Rare Event Searches ToolKit for Physics
|
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
Definition at line 31 of file TRestDataQualityRules.h.
#include <TRestDataQualityRules.h>
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, ... | |