37 const std::vector<pat::Jet>
jets = *jet_handle;
38 unsigned int nJets = 0;
39 std::vector<pat::Jet> seljets;
40 for (std::vector<pat::Jet>::const_iterator
it =
jets.begin();
it !=
jets.end();
it++) {
43 if (
it->pt() > 30. && fabs(
it->eta()) < 2.4) {
44 seljets.push_back(*
it);
55 std::vector<pat::Muon> selMuons;
59 if (
it->pt() > 30 && fabs(
it->eta()) < 2.1 && (
it->pt() / (
it->pt() +
it->trackIso() +
it->caloIso())) > 0.95 &&
63 if ((gltr->chi2() / gltr->ndof()) < 10 && trtr->numberOfValidHits() > 11) {
65 for (std::vector<pat::Jet>::const_iterator ajet = seljets.begin(); ajet != seljets.end(); ajet++) {
74 selMuons.push_back(*
it);
87 if (
it->pt() > 30 && fabs(
it->eta()) < 2.4 && (
it->pt() / (
it->pt() +
it->trackIso() +
it->caloIso())) > 0.95 &&
88 it->isElectronIDAvailable(
"eidTight")) {
89 if (
it->electronID(
"eidTight") == 1)
96 if (
nmuons != 1 || nJets < 4 || nelectrons > 0)
edm::EDPutTokenT< double > putToken_
static bool test(uint32_t val, uint32_t mask)
edm::EDGetTokenT< edm::View< pat::Electron > > electronsToken_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
static constexpr int nJets
muons
the two sets of parameters below are mutually exclusive, depending if RECO or ALCARECO is used the us...
PhysicsTools::MVAComputerCache mvaComputer
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
edm::EDGetTokenT< edm::View< pat::Muon > > muonsToken_
double evaluateTtSemiLepSignalSel(PhysicsTools::MVAComputerCache &mvaComputer, const TtSemiLepSignalSel &sigsel, float weight=1., const bool isSignal=false)
double DeltaR(const math::XYZTLorentzVector &v1, const math::XYZTLorentzVector &v2)
bool isNull() const
Checks for null.
edm::EDGetTokenT< edm::View< pat::MET > > METsToken_
OrphanHandle< PROD > emplace(EDPutTokenT< PROD > token, Args &&... args)
puts a new product
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
edm::EDGetTokenT< std::vector< pat::Jet > > jetsToken_
edm::ESGetToken< PhysicsTools::Calibration::MVAComputerContainer, TtSemiLepSignalSelMVARcd > mvaToken_