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>
73 new helper::ScannerBase(helper::Parser::elementType(edm::TypeWithDict(
HandleT::TempWrapT::typeInfo())))) {
82 const Collection &vals = *
handle;
83 for (
size_t j = 0,
n = vals.size();
j <
n; ++
j) {
87 return (nfound >=
min_ && (
max_ == -1 || nfound <=
max_));
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
edm::LuminosityBlockNumber_t luminosityBlock() const
helper::ScannerBase * scanner
RunLumiSelector(const char *name="", const char *title="")
void setMax(int maxNumber)
bool accept(int run, int luminosityBlock) const
fwlite::Handle< Collection > HandleT
bool test(const void *obj, size_t icut=0) const
virtual bool accept(const fwlite::EventBase &ev) const =0
std::vector< int > lastLumis
~ObjectCountSelector() override
void setIgnoreExceptions(bool ignoreThem=true)
void getByLabel(const P &iP, const char *iModuleLabel, const char *iProductInstanceLabel=nullptr, const char *iProcessLabel=nullptr)
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)