21 #include "Math/Vector4D.h" 22 #include "Math/Vector4Dfwd.h" 59 ptMin_(iConfig.getParameter<double>(
"ptMin")),
60 ptMax_(iConfig.getParameter<double>(
"ptMax")) {
76 std::vector<lhef::HEPEUP::FiveVector> lheParticles = EvtHandle->
hepeup().
PUP;
77 std::vector<ROOT::Math::PxPyPzEVector>
cands;
79 for (
unsigned int i = 0;
i < lheParticles.size(); ++
i) {
86 ROOT::Math::PxPyPzEVector(lheParticles[
i][0], lheParticles[i][1], lheParticles[i][2], lheParticles[i][3]));
91 ROOT::Math::PxPyPzEVector tot = cands.at(0);
92 for (
unsigned icand = 1; icand < cands.size(); ++icand) {
93 tot += cands.at(icand);
T getParameter(std::string const &) const
const lhef::HEPEUP & hepeup() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
LHEPtFilter(const edm::ParameterSet &)
#define DEFINE_FWK_MODULE(type)
std::vector< FiveVector > PUP
edm::EDGetTokenT< LHEEventProduct > src_
bool filter(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
std::vector< int > pdgIdVec_