31 std::vector<l1ct::Jet>
convertEDMToHW(std::vector<l1t::PFJet> edmJets)
const;
39 produces<std::vector<l1t::EtSum>>();
48 std::vector<l1ct::Jet> hwJetsFiltered;
49 std::copy_if(hwJets.begin(), hwJets.end(), std::back_inserter(hwJetsFiltered), [&](
auto jet) {
58 std::unique_ptr<std::vector<l1t::EtSum>> mhtCollection(
new std::vector<l1t::EtSum>(0));
59 mhtCollection->push_back(edmSums.at(0));
60 mhtCollection->push_back(edmSums.at(1));
66 std::vector<l1ct::Jet> hwJets;
67 std::for_each(edmJets.begin(), edmJets.end(), [&](
l1t::PFJet jet) {
69 hwJets.push_back(hwJet);
75 std::vector<l1t::EtSum> edmSums;
91 edmSums.push_back(ht);
92 edmSums.push_back(
mht);
glbeta_t makeGlbEta(float eta)
float floatPhi(phi_t phi)
l1ct::Sum htmht(std::vector< l1ct::Jet > jets)
std::vector< l1t::EtSum > convertHWToEDM(l1ct::Sum hwSums) const
pt_t makePtFromFloat(float pt)
std::vector< l1t::PFJet > PFJetCollection
L1MhtPfProducer(const edm::ParameterSet &)
~L1MhtPfProducer() override
edm::EDGetTokenT< std::vector< l1t::PFJet > > jetsToken
Abs< T >::type abs(const T &t)
static Jet unpack(const std::array< uint64_t, 2 > &src)
#define DEFINE_FWK_MODULE(type)
void produce(edm::StreamID, edm::Event &iEvent, const edm::EventSetup &iSetup) const override
std::vector< l1ct::Jet > convertEDMToHW(std::vector< l1t::PFJet > edmJets) const
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.