16 produces<std::vector<reco::GenMET> >();
30 if(src->size()==0)
edm::LogError(
"GenMETExtractor::produce") <<
"input genMET collection is empty" ;
34 std::vector<reco::GenMET> *genMetCol =
new std::vector<reco::GenMET>();
35 genMetCol->push_back( (*genMet) );
37 std::unique_ptr<std::vector<reco::GenMET> > genMETs(genMetCol);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
TLorentzVector genMet(const HepMC::GenEvent *all, double etamin=-9999., double etamax=9999.)