31 std::vector<l1ct::Jet>
convertEDMToHW(std::vector<l1t::PFJet> edmJets)
const;
39 produces<std::vector<l1t::EtSum>>();
48 std::copy_if(edmJets.begin(), edmJets.end(), std::back_inserter(edmJetsFiltered), [&](
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;
78 htVector.SetPt(hwSums.
hwSumPt.to_double());
83 mhtVector.SetPt(hwSums.
hwPt.to_double());
90 edmSums.push_back(ht);
91 edmSums.push_back(mht);
l1ct::Sum htmht(std::vector< l1ct::Jet > jets)
std::vector< l1t::EtSum > convertHWToEDM(l1ct::Sum hwSums) const
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
float floatPhi(phi_t phi)
std::vector< l1ct::Jet > convertEDMToHW(std::vector< l1t::PFJet > edmJets) const
math::PtEtaPhiMLorentzVector PolarLorentzVector
Lorentz vector.