71 produces<std::vector<StEvtSolution>>();
80 bool leptonFound =
false;
95 bool metFound =
false;
102 bool jetsFound =
false;
105 unsigned int maxJets = 2;
106 if (
jets->size() >= 2)
109 auto evtsols = std::make_unique<std::vector<StEvtSolution>>();
110 if (leptonFound && metFound && jetsFound) {
111 std::cout <<
"constructing solutions" << std::endl;
112 for (
unsigned int b = 0;
b < maxJets;
b++) {
113 for (
unsigned int l = 0;
l < maxJets;
l++) {
136 evtsols->push_back(asol);
164 std::cout <<
"@@@ No calibrated solutions built, because: " << std::endl;
166 if (
jets->size() < maxJets)
167 std::cout <<
"@ nr jets = " <<
jets->size() <<
" < " << maxJets << std::endl;
169 std::cout <<
"@ no good muon candidate" << std::endl;
171 std::cout <<
"@ no good electron candidate" << std::endl;
173 std::cout <<
"@ no MET reconstruction" << std::endl;
176 evtsols->push_back(asol);
T getParameter(std::string const &) const
void setMuon(const edm::Handle< std::vector< pat::Muon > > &muon, int i)
void setLight(const edm::Handle< std::vector< pat::Jet > > &jet, int i)
void setNeutrino(const edm::Handle< std::vector< pat::MET > > &met, int i)
std::string leptonFlavour_
edm::EDGetTokenT< std::vector< pat::Jet > > jetSrcToken_
std::vector< int > constraints_
edm::EDGetTokenT< std::vector< pat::Muon > > muonSrcToken_
std::unique_ptr< StKinFitter > myKinFitter
void produce(edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< StGenEvent > genEvtSrcToken_
StEvtSolutionMaker(const edm::ParameterSet &)
edm::EDGetTokenT< std::vector< pat::Electron > > electronSrcToken_
edm::EDGetTokenT< std::vector< pat::MET > > metSrcToken_
void setJetCorrectionScheme(int scheme)
void setBottom(const edm::Handle< std::vector< pat::Jet > > &jet, int i)
void setElectron(const edm::Handle< std::vector< pat::Electron > > &elec, int i)