23#ifndef RestCore_TRestCut
24#define RestCore_TRestCut
27#include "TRestMetadata.h"
40 std::vector<std::pair<std::string, std::string> >
fParamCut;
47 void AddCut(
const TCut& cut);
48 TCut GetCut(std::string name);
52 inline auto GetCutStrings()
const {
return fCutStrings; }
53 inline auto GetParamCut()
const {
return fParamCut; }
54 inline auto GetCuts()
const {
return fCuts; }
60 Int_t
Write(
const char* name, Int_t option, Int_t bufsize)
override;
A class to help on cuts definitions. To be used with TRestAnalysisTree.
void PrintMetadata() override
Implemented it in the derived metadata class to print out specific metadata information.
Int_t Write(const char *name, Int_t option, Int_t bufsize) override
overwriting the write() method with fStore considered
void Initialize() override
Making default settings.
void InitFromConfigFile() override
To make settings from rml file. This method must be implemented in the derived class.
std::vector< TCut > fCuts
Vector of TCuts.
std::vector< std::pair< std::string, std::string > > fParamCut
Vector of parameter cuts, first item is parameter and second is the condition.
std::vector< std::string > fCutStrings
Vector of cut strings e.g. when you use a complex cut.