7 if (verbosity % 10 <= 0)
12 log <<
"++++++++++++++++++++++++++++++++++++++++++++++++++ \n";
16 log <<
" TtGenEvent not available! \n";
18 log <<
" TtGenEvent says: ";
21 else if (this->
genEvent()->isFullHadronic())
22 log <<
"Fully Hadronic TtBar";
23 else if (this->
genEvent()->isFullLeptonic())
24 log <<
"Fully Leptonic TtBar";
25 else if (this->
genEvent()->isSemiLeptonic()) {
26 log <<
"Semi-leptonic TtBar, ";
27 switch (this->
genEvent()->semiLeptonicChannel()) {
50 log <<
" - JetLepComb: ";
73 typedef std::map<HypoClassKey, std::vector<HypoCombPair> >::const_iterator EventHypo;
74 for (EventHypo hyp =
evtHyp_.begin(); hyp !=
evtHyp_.end(); ++hyp) {
77 log <<
"-------------------------------------------------- \n";
83 log <<
" WMassMaxSumPt";
86 log <<
" MaxSumPtWMass";
98 log <<
" KinSolution not (yet) applicable to TtSemiLeptonicEvent --> skipping";
101 log <<
" WMassDeltaTopMass";
107 log <<
" Unknown TtEvent::HypoClassKey provided --> skipping";
110 log <<
"-Hypothesis: \n";
115 log <<
" * Number of stored jet combinations: " << nOfHyp <<
"\n";
117 log <<
" The following was found to be the best one:\n";
122 for (
unsigned cmb = 0; cmb < nOfHyp; cmb++) {
125 log <<
" * Not valid! \n";
129 log <<
" * JetLepComb:";
131 for (
unsigned int iJet = 0; iJet < jets.size(); iJet++) {
132 log <<
" " << jets[iJet] <<
" ";
138 log <<
" * Sum(DeltaR) : " << this->
genMatchSumDR(cmb) <<
" \n" 142 log <<
" * Method : " << this->
mvaMethod() <<
" \n" 143 <<
" * Discrim.: " << this->
mvaDisc(cmb) <<
" \n";
146 log <<
" * Chi^2 : " << this->
fitChi2(cmb) <<
" \n" 147 <<
" * Prob(Chi^2): " << this->
fitProb(cmb) <<
" \n";
150 log <<
" * Chi^2 : " << this->
hitFitChi2(cmb) <<
" \n" 151 <<
" * Prob(Chi^2): " << this->
hitFitProb(cmb) <<
" \n" 158 if (verbosity % 10 >= 2) {
159 log <<
" * Candidates (pt; eta; phi; mass):\n";
160 if (verbosity % 10 >= 3)
164 if (verbosity % 10 >= 3) {
171 if (verbosity % 10 >= 3) {
181 log <<
"++++++++++++++++++++++++++++++++++++++++++++++++++";
const reco::GenParticle * leptonicDecayTop() const
get leptonic top of the TtGenEvent
HypoClassKey
supported classes of event hypotheses
const edm::RefProd< TtGenEvent > & genEvent() const
get TtGenEvent
const math::XYZTLorentzVector * topPair() const
get combined 4-vector of top and topBar from the TtGenEvent
unsigned int numberOfAvailableHypos(const std::string &key) const
return number of available hypotheses within a given hypothesis class
const reco::GenParticle * leptonicDecayB() const
get leptonic b of the TtGenEvent
unsigned int numberOfAvailableHypoClasses() const
return number of available hypothesis classes
const reco::GenParticle * hadronicDecayB() const
get hadronic b of the TtGenEvent
void printParticle(edm::LogInfo &log, const char *name, const reco::Candidate *cand) const
print pt, eta, phi, mass of a given candidate into an existing LogInfo
double fitChi2(const unsigned &cmb=0) const
return the chi2 of the kinematic fit of hypothesis 'cmb' if available; -1 else
const reco::GenParticle * singleLepton() const
get lepton top of the TtGenEvent
double genMatchSumDR(const unsigned &cmb=0) const
return the sum dr of the generator match if available; -1 else
int numberOfConsideredJets(const std::string &key) const
return number of jets that were considered when building a given hypothesis
double hitFitMT(const unsigned &cmb=0) const
return the hitfit top mass of hypothesis 'cmb' if available; -1 else
const reco::GenParticle * leptonicDecayW() const
get leptonic W of the TtGenEvent
const reco::GenParticle * hadronicDecayW() const
get hadronic W of the TtGenEvent
void print(const int verbosity=1) const
double mvaDisc(const unsigned &cmb=0) const
return the mva discriminant value of hypothesis 'cmb' if available; -1 else
const reco::GenParticle * hadronicDecayQuarkBar() const
get hadronic light quark of the TtGenEvent
edm::RefProd< TtGenEvent > genEvt_
reference to TtGenEvent (has to be kept in the event!)
double hitFitChi2(const unsigned &cmb=0) const
return the hitfit chi2 of hypothesis 'cmb' if available; -1 else
double fitProb(const unsigned &cmb=0) const
return the fit probability of hypothesis 'cmb' if available; -1 else
bool isHypoValid(const std::string &key, const unsigned &cmb=0) const
check if hypothesis 'cmb' within the hypothesis class was valid; if not it lead to an empty Composite...
const reco::GenParticle * hadronicDecayTop() const
get hadronic top of the TtGenEvent
double genMatchSumPt(const unsigned &cmb=0) const
return the sum pt of the generator match if available; -1 else
double hitFitProb(const unsigned &cmb=0) const
return the hitfit probability of hypothesis 'cmb' if available; -1 else
std::string mvaMethod() const
return the label of the mva method in use for the jet parton association (if kMVADisc is not availabl...
const reco::GenParticle * hadronicDecayQuark() const
get hadronic light quark of the TtGenEvent
std::map< HypoClassKey, std::vector< HypoCombPair > > evtHyp_
const int numberOfRealNeutrinoSolutions(const HypoClassKey &key) const
get number of real neutrino solutions for a given hypo class
std::vector< int > jetLeptonCombination(const std::string &key, const unsigned &cmb=0) const
return the vector of jet lepton combinatorics for a given hypothesis and class
const reco::GenParticle * singleNeutrino() const
get neutrino of the TtGenEvent
double hitFitSigMT(const unsigned &cmb=0) const
return the hitfit top mass uncertainty of hypothesis 'cmb' if available; -1 else