Go to the documentation of this file. 1 #ifndef PhysicsTools_FWLite_EventSelectors_h
2 #define PhysicsTools_FWLite_EventSelectors_h
10 #if !defined(__CINT__) && !defined(__MAKECINT__)
27 TString::Format(
"Run %d, Lumi range [%d, %d]",
run, firstLumi,
lastLumi)) {
46 for (
int i = 0,
n =
runs.size();
i <
n; ++
i) {
59 template <
typename Collection>
82 const Collection &vals = *
handle;
83 for (
size_t j = 0,
n = vals.size();
j <
n; ++
j) {
104 #endif // PhysicsTools_FWLite_EventSelectors_h
bool accept(const fwlite::EventBase &ev) const override
bool accept(int run, int luminosityBlock) const
ObjectCountSelector & operator=(const fwlite::ObjectCountSelector< Collection > &other)
~EventSelector() override
RunLumiSelector(int run, int firstLumi=0, int lastLumi=9999999)
helper::ScannerBase * scanner
void setMax(int maxNumber)
fwlite::Handle< Collection > HandleT
RunLumiSelector(const char *name="", const char *title="")
std::vector< int > lastLumis
std::vector< int > firstLumis
~ObjectCountSelector() override
bool setCut(const char *cut)
Set the default cut that is applied to the events.
void setIgnoreExceptions(bool ignoreThem=true)
void add(int run, int firstLumi=0, int lastLumi=9999999)
~RunLumiSelector() override
virtual bool accept(const fwlite::EventBase &ev) const =0
static PFTauRenderPlugin instance
void setMin(int minNumber)
bool test(const void *obj, size_t icut=0) const
bool accept(const fwlite::EventBase &ev) const override
void setIgnoreExceptions(bool ignoreThem)
EventSelector(const char *name="", const char *title="")
void setCut(const char *cut)
ObjectCountSelector(const char *label, const char *instance, const char *process, const char *cut, int minNumber=1, int maxNumber=-1)