34 bool matchBbar =
false;
35 bool matchLeptPos =
false;
36 bool matchLeptNeg =
false;
59 int id =
genEvent->singleLepton()->pdgId();
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,
177 std::vector<pat::Jet> jet3;
180 jet3.push_back((*
jets)[
i]);
183 double jet1Ratio = 0., jet2Ratio = 0.;
185 jet1Ratio = jet3[0].et() / solution.
getJetB().
et();
201 std::vector<IntDblPair> &varList,
204 std::vector<IntBoolPair> &matchList) {
207 varList.push_back(
IntDblPair(obsNbr + 1, v2));
209 matchList.push_back(
IntBoolPair(obsNbr + 1, match2));
213 varList.push_back(
IntDblPair(obsNbr + 1, v1));
215 matchList.push_back(
IntBoolPair(obsNbr + 1, match1));
double delta(double phi1, double phi2)
pat::Jet getCalJetBbar() const
void fillMinMax(double v1, double v2, int obsNbr, std::vector< IntDblPair > &varList, bool match1, bool match2, std::vector< IntBoolPair > &matchList)
std::vector< IntBoolPair > operator()(TtDilepEvtSolution &, const edm::Event &iEvent, bool matchOnly=false)
const LorentzVector & p4() const final
four-momentum Lorentz vector
const LorentzVector & p4() const
four-momentum Lorentz vector
reco::Particle getLeptNeg() const
int pdgId() const final
PDG identifier.
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
pat::Jet getJetBbar() const
std::pair< unsigned int, bool > IntBoolPair
Class derived from the TopGenEvent for ttbar events.
void setLRSignalEvtObservables(const std::vector< std::pair< unsigned int, double > > &)
int partonFlavour() const
return the parton-based flavour of the jet
std::pair< unsigned int, double > IntDblPair
Abs< T >::type abs(const T &t)
edm::EDGetTokenT< TtGenEvent > genEvtToken_
TtDilepLRSignalSelObservables(edm::ConsumesCollector &&iC, const edm::EDGetTokenT< std::vector< pat::Jet > > &jetSourceToken)
edm::EDGetTokenT< std::vector< pat::Jet > > jetSourceToken_
double et() const final
transverse energy
std::string getWpDecay() const
std::string getWmDecay() const
reco::Particle getLeptPos() const
~TtDilepLRSignalSelObservables()
pat::Jet getCalJetB() const
const reco::GenParticle * getGenLepm() const
std::vector< IntBoolPair > evtselectVarMatch
const reco::GenParticle * getGenLepp() const
std::vector< IntDblPair > evtselectVarVal