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
RunLumiSelector(int run, int firstLumi=0, int lastLumi=9999999)
std::vector< int > firstLumis
bool accept(const fwlite::EventBase &ev) const override
ObjectCountSelector & operator=(const fwlite::ObjectCountSelector< Collection > &other)
void add(int run, int firstLumi=0, int lastLumi=9999999)
static PFTauRenderPlugin instance
~RunLumiSelector() override
void setIgnoreExceptions(bool ignoreThem)
~EventSelector() override
helper::ScannerBase * scanner
RunLumiSelector(const char *name="", const char *title="")
bool test(const void *obj, size_t icut=0) const
void setMax(int maxNumber)
fwlite::Handle< Collection > HandleT
virtual bool accept(const fwlite::EventBase &ev) const =0
std::vector< int > lastLumis
~ObjectCountSelector() override
bool accept(int run, int luminosityBlock) const
void setIgnoreExceptions(bool ignoreThem=true)
bool setCut(const char *cut)
Set the default cut that is applied to the events.
void setMin(int minNumber)
bool accept(const fwlite::EventBase &ev) const override
void setCut(const char *cut)
EventSelector(const char *name="", const char *title="")
ObjectCountSelector(const char *label, const char *instance, const char *process, const char *cut, int minNumber=1, int maxNumber=-1)