|
|
Go to the documentation of this file.
34 produces<std::vector<StEvtSolution> >();
48 bool leptonFound =
false;
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);
edm::EDGetTokenT< std::vector< pat::MET > > metSrcToken_
edm::EDGetTokenT< StGenEvent > genEvtSrcToken_
edm::EDGetTokenT< std::vector< pat::Electron > > electronSrcToken_
void setJetCorrectionScheme(int scheme)
std::string leptonFlavour_
edm::EDGetTokenT< std::vector< pat::Muon > > muonSrcToken_
void setLight(const edm::Handle< std::vector< pat::Jet > > &jet, int i)
StKinFitter * myKinFitter
void setMuon(const edm::Handle< std::vector< pat::Muon > > &muon, int i)
std::vector< int > constraints_
void setElectron(const edm::Handle< std::vector< pat::Electron > > &elec, int i)
edm::EDGetTokenT< std::vector< pat::Jet > > jetSrcToken_
void setNeutrino(const edm::Handle< std::vector< pat::MET > > &met, int i)
StEvtSolution addKinFitInfo(StEvtSolution *asol)
void setBottom(const edm::Handle< std::vector< pat::Jet > > &jet, int i)
T getParameter(std::string const &) const
void produce(edm::Event &, const edm::EventSetup &) override
~StEvtSolutionMaker() override
StEvtSolutionMaker(const edm::ParameterSet &)