|
Crombie Tools
|
Created using CrombieTools.SkimmingTools.GoodLumiFilter.MakeFilter(). More...
#include <GoodLumiFilter.h>
Public Member Functions | |
| GoodLumiFilter () | |
| virtual | ~GoodLumiFilter () |
| void | AddLumi (UInt_t run, UInt_t lumi) |
| Add a good run and lumi number. More... | |
| Bool_t | IsGood (UInt_t run, UInt_t lumi) |
| Returns if event with a given run and lumi number is good. More... | |
Private Attributes | |
| Bool_t | fCurrGood = false |
| Holds current IsGood() result to improve performance. More... | |
| UInt_t | fCurrLumi = 0 |
| Holds current lumi to improve performance. More... | |
| UInt_t | fCurrRun = 0 |
| Holds current run to improve performance. More... | |
| std::map< UInt_t, std::set< UInt_t > > | fGoodLumis |
| Map of good lumis. More... | |
Created using CrombieTools.SkimmingTools.GoodLumiFilter.MakeFilter().
Holds good events from JSON file and can return whether a given event is good or not.
Definition at line 22 of file GoodLumiFilter.h.
| GoodLumiFilter::GoodLumiFilter | ( | ) |
|
virtual |
Definition at line 16 of file GoodLumiFilter.cc.
|
inline |
Add a good run and lumi number.
Definition at line 32 of file GoodLumiFilter.h.
References fGoodLumis.
| Bool_t GoodLumiFilter::IsGood | ( | UInt_t | run, |
| UInt_t | lumi | ||
| ) |
Returns if event with a given run and lumi number is good.
Definition at line 21 of file GoodLumiFilter.cc.
References fCurrGood, fCurrLumi, fCurrRun, and fGoodLumis.
Referenced by FlatSkimmer::Skim().
|
private |
Holds current IsGood() result to improve performance.
Definition at line 39 of file GoodLumiFilter.h.
Referenced by IsGood().
|
private |
Holds current lumi to improve performance.
Definition at line 38 of file GoodLumiFilter.h.
Referenced by IsGood().
|
private |
Holds current run to improve performance.
Definition at line 37 of file GoodLumiFilter.h.
Referenced by IsGood().
|
private |
Map of good lumis.
Definition at line 35 of file GoodLumiFilter.h.