TIMBER  beta
Tree Interface for Making Binned Events with RDataFrame
Public Member Functions | List of all members
LumiFilter Class Reference

C++ class. Tool to filter luminosity block/run based on golden JSONs. Golden JSONs are provided in TIMBER but a custom one can be provided. More...

Public Member Functions

 LumiFilter (std::string filename)
 Construct a new Lumi Filter object with a custom json file name. More...
 
 LumiFilter (int year)
 Construct a new Lumi Filter object for a given year. Supports formatting as 2017 or 17. 2016 not needed currently. More...
 
bool eval (unsigned int run, unsigned int lumi)
 Evaluate whether the given run and lumi pass the luminosity JSON filter. More...
 

Detailed Description

C++ class. Tool to filter luminosity block/run based on golden JSONs. Golden JSONs are provided in TIMBER but a custom one can be provided.

Constructor & Destructor Documentation

◆ LumiFilter() [1/2]

LumiFilter ( std::string  filename)

Construct a new Lumi Filter object with a custom json file name.

Parameters
filename

◆ LumiFilter() [2/2]

LumiFilter ( int  year)

Construct a new Lumi Filter object for a given year. Supports formatting as 2017 or 17. 2016 not needed currently.

Parameters
year

Member Function Documentation

◆ eval()

bool eval ( unsigned int  run,
unsigned int  lumi 
)

Evaluate whether the given run and lumi pass the luminosity JSON filter.

Parameters
run
lumi
Returns
bool

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