31 globalThreshold_(iConfig.getParameter<double>(
"globalThreshold")),
32 onlyFiducial_(iConfig.getParameter<bool>(
"onlyFiducialParticles")),
33 applyFiducialThresholdForFractions_(iConfig.getParameter<bool>(
"applyFiducialThresholdForFractions")),
34 usePt_(iConfig.getParameter<bool>(
"usePt")) {
36 produces<reco::GenMETCollection>().setBranchAlias(alias);
47 auto genmetcoll = std::make_unique<reco::GenMETCollection>();
48 genmetcoll->push_back(gen.
addInfo(
edm::EDGetTokenT< edm::View< reco::Candidate > > inputToken_
reco::GenMET addInfo(edm::Handle< edm::View< reco::Candidate > > particles, CommonMETData *met, double globalThreshold=0, bool onlyFiducial=false, bool applyFiducialThresholdForFractions=false, bool usePt=false)
#define DEFINE_FWK_MODULE(type)
GenMETProducer(const edm::ParameterSet &)
bool exists(std::string const ¶meterName) const
checks if a parameter exists
static std::string const input
bool applyFiducialThresholdForFractions_
Structure containing data common to all types of MET.
T getParameter(std::string const &) const
void produce(edm::Event &, const edm::EventSetup &) override