29 : vccToken_{consumes<reco::VertexCompositeCandidateCollection>(
31 minNumCandidates_{iConfig.getParameter<
unsigned int>(
"minCandidates")},
32 massMin_{iConfig.getParameter<
double>(
"massMin")},
33 massMax_{iConfig.getParameter<
double>(
"massMax")} {
34 produces<reco::VertexCompositeCandidateCollection>();
40 auto filteredVCC = std::make_unique<reco::VertexCompositeCandidateCollection>();
48 for (
const auto& vcc : *vccHandle) {
50 filteredVCC->push_back(vcc);
63 desc.add<
unsigned int>(
"minCandidates", 1)->setComment(
"Minimum number of candidates required");
64 desc.add<
double>(
"massMin", 0.0)->setComment(
"Minimum mass in GeV");
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
T getParameter(std::string const &) const
~V0EventSelector() override=default
bool filter(edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
V0EventSelector(const edm::ParameterSet &)
const edm::EDGetTokenT< reco::VertexCompositeCandidateCollection > vccToken_
const unsigned int minNumCandidates_