34 bool matchBbar =
false;
35 bool matchLeptPos =
false;
36 bool matchLeptNeg =
false;
63 matchLeptNeg = ((((solution.
getWmDecay() ==
"electron") && (
id == 11)) ||
64 ((solution.
getWmDecay() ==
"muon") && (
id == 13))) &&
68 matchLeptPos = ((((solution.
getWpDecay() ==
"electron") && (
id == -11)) ||
69 ((solution.
getWpDecay() ==
"muon") && (
id == -13))) &&
83 matchB1 = ((dr1 < 0.4) || (dr2 < 0.4));
87 matchB = ((dr1 < 0.4));
101 matchBbar = ((dr2 < 0.4));
102 matchB2 = ((dr1 < 0.4) || (dr2 < 0.4));
163 matchB && matchLeptPos,
164 matchBbar && matchLeptNeg,
170 double mass = pp.mass();
177 std::vector<pat::Jet> jet3;
178 for (
int i = 0;
i < (
int)jets->size(); ++
i) {
180 jet3.push_back((*jets)[
i]);
183 double jet1Ratio = 0., jet2Ratio = 0.;
185 jet1Ratio = jet3[0].et() / solution.
getJetB().
et();
pat::Jet getCalJetBbar() const
const reco::GenParticle * getGenLepm() const
double delta(double phi1, double phi2)
const reco::GenParticle * b() const
return b quark if available; 0 else
int pdgId() const final
PDG identifier.
bool isSemiLeptonic(bool excludeTauLeptons=false) const
check if the event can be classified as semi-laptonic
void fillMinMax(double v1, double v2, int obsNbr, std::vector< IntDblPair > &varList, bool match1, bool match2, std::vector< IntBoolPair > &matchList)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const reco::GenParticle * bBar() const
return anti-b quark if available; 0 else
const LorentzVector & p4() const
four-momentum Lorentz vector
std::string getWmDecay() const
std::string getWpDecay() const
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
bool isFullLeptonic(bool excludeTauLeptons=false) const
check if the event can be classified as full leptonic
std::pair< unsigned int, bool > IntBoolPair
void setLRSignalEvtObservables(const std::vector< std::pair< unsigned int, double > > &)
double et() const final
transverse energy
std::pair< unsigned int, double > IntDblPair
reco::Particle getLeptNeg() const
pat::Jet getJetBbar() const
Abs< T >::type abs(const T &t)
edm::EDGetTokenT< TtGenEvent > genEvtToken_
const LorentzVector & p4() const final
four-momentum Lorentz vector
int partonFlavour() const
return the parton-based flavour of the jet
reco::Particle getLeptPos() const
int numberOfBQuarks(bool fromTopQuark=true) const
return number of b quarks in the decay chain
edm::EDGetTokenT< std::vector< pat::Jet > > jetSourceToken_
pat::Jet getCalJetB() const
const reco::GenParticle * getGenLepp() const
std::vector< IntBoolPair > evtselectVarMatch
bool isTtBar() const
check if the event can be classified as ttbar
std::vector< IntDblPair > evtselectVarVal
const reco::GenParticle * singleLepton(bool excludeTauLeptons=false) const
return single lepton if available; 0 else