14 log <<
"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ \n";
17 log <<
" TtGenEvent says: ";
18 if( !this->
genEvent()->isTtBar() ) log <<
"Not TtBar";
19 else if( this->
genEvent()->isFullHadronic() ) log <<
"Fully Hadronic TtBar";
20 else if( this->
genEvent()->isSemiLeptonic() ) log <<
"Semi-leptonic TtBar";
21 else if( this->
genEvent()->isFullLeptonic() ) {
22 log <<
"Fully Leptonic TtBar, ";
27 default : log <<
"Unknown-" ;
break;
33 default : log <<
"Unknown-" ;
break;
43 log <<
" - JetLepComb: ";
53 typedef std::map<HypoClassKey, std::vector<HypoCombPair> >::const_iterator EventHypo;
54 for(EventHypo hyp =
evtHyp_.begin(); hyp !=
evtHyp_.end(); ++hyp) {
57 log <<
"------------------------------------------------------------ \n";
59 case kGeom : log <<
" Geom" ;
break;
62 case kGenMatch : log <<
" GenMatch" ;
break;
63 case kMVADisc : log <<
" MVADisc" ;
break;
64 case kKinFit : log <<
" KinFit" ;
break;
66 default : log <<
" Unknown";
68 log <<
"-Hypothesis: \n";
71 log <<
" * Number of available jet combinations: " << nOfHyp <<
"\n";
73 log <<
" The following was found to be the best one:\n";
78 for(
unsigned cmb=0; cmb<nOfHyp; cmb++) {
81 log <<
" * Not valid! \n";
85 log <<
" * JetLepComb:";
87 for(
unsigned int iJet = 0; iJet < jets.size(); iJet++) {
88 log <<
" " << jets[iJet] <<
" ";
94 <<
" * Sum(DeltaPt): " << this->
genMatchSumPt(cmb) <<
" \n";
break;
96 <<
" * isWrongCharge: " << this->
isWrongCharge() <<
" \n";
break;
100 if(verbosity%10 >= 2) {
101 log <<
" * Candidates (pt; eta; phi; mass):\n";
104 if(verbosity%10 >= 3) {
111 if(verbosity%10 >= 3) {
121 log <<
"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++";
HypoClassKey
supported classes of event hypotheses
const reco::Candidate * bBar(const std::string &key, const unsigned &cmb=0) const
get anti-b of the given hypothesis
const edm::RefProd< TtGenEvent > & genEvent() const
get TtGenEvent
unsigned int numberOfAvailableHypos(const std::string &key) const
return number of available hypotheses within a given hypothesis class
const reco::Candidate * top(const std::string &key, const unsigned &cmb=0) const
get top of the given hypothesis
unsigned int numberOfAvailableHypoClasses() const
return number of available hypothesis classes
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
const reco::Candidate * lepton(const std::string &key, const unsigned &cmb=0) const
get lepton of the given hypothesis
U second(std::pair< T, U > const &p)
double genMatchSumDR(const unsigned &cmb=0) const
return the sum dr of the generator match if available; -1 else
void print(const int verbosity=1) const
const reco::Candidate * neutrino(const std::string &key, const unsigned &cmb=0) const
get neutrino of the given hypothesis
bool isWrongCharge() const
return if the kinematic solution of hypothesis 'cmb' is right or wrong charge if available; -1 else ...
const reco::Candidate * neutrinoBar(const std::string &key, const unsigned &cmb=0) const
get anti-neutrino of the given hypothesis
const reco::Candidate * b(const std::string &key, const unsigned &cmb=0) const
get b of the given hypothesis
Log< T >::type log(const T &t)
const reco::Candidate * topBar(const std::string &key, const unsigned &cmb=0) const
get anti-top of the given hypothesis
double solWeight(const unsigned &cmb=0) const
return the weight of the kinematic solution of hypothesis 'cmb' if available; -1 else ...
const reco::Candidate * wPlus(const std::string &key, const unsigned &cmb=0) const
get Wplus of the given hypothesis
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...
double genMatchSumPt(const unsigned &cmb=0) const
return the sum pt of the generator match if available; -1 else
const reco::Candidate * wMinus(const std::string &key, const unsigned &cmb=0) const
get Wminus of the given hypothesis
std::map< HypoClassKey, std::vector< HypoCombPair > > evtHyp_
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::Candidate * leptonBar(const std::string &key, const unsigned &cmb=0) const
get anti-lepton of the given hypothesis