31 myKinFitter =
new StKinFitter(jetParam_, lepParam_, metParam_, maxNrIter_, maxDeltaS_, maxF_, constraints_);
34 produces<std::vector<StEvtSolution> >();
48 bool leptonFound =
false;
58 if (!electrons->empty())
63 bool metFound =
false;
70 bool jetsFound =
false;
73 unsigned int maxJets = 2;
74 if (jets->size() >= 2)
77 std::vector<StEvtSolution>* evtsols =
new std::vector<StEvtSolution>();
78 if (leptonFound && metFound && jetsFound) {
79 std::cout <<
"constructing solutions" << std::endl;
80 for (
unsigned int b = 0;
b < maxJets;
b++) {
81 for (
unsigned int l = 0;
l < maxJets;
l++) {
104 evtsols->push_back(asol);
130 std::unique_ptr<std::vector<StEvtSolution> > pOut(evtsols);
133 std::cout <<
"@@@ No calibrated solutions built, because: " << std::endl;
135 if (jets->size() < maxJets)
136 std::cout <<
"@ nr jets = " << jets->size() <<
" < " << maxJets << std::endl;
138 std::cout <<
"@ no good muon candidate" << std::endl;
140 std::cout <<
"@ no good electron candidate" << std::endl;
142 std::cout <<
"@ no MET reconstruction" << std::endl;
145 evtsols->push_back(asol);
146 std::unique_ptr<std::vector<StEvtSolution> > pOut(evtsols);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
void setMuon(const edm::Handle< std::vector< pat::Muon > > &muon, int i)
StKinFitter * myKinFitter
void setLight(const edm::Handle< std::vector< pat::Jet > > &jet, int i)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
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_
~StEvtSolutionMaker() override
void produce(edm::Event &, const edm::EventSetup &) override
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)
StEvtSolution addKinFitInfo(StEvtSolution *asol)
void setElectron(const edm::Handle< std::vector< pat::Electron > > &elec, int i)