14 log <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ \n";
17 if( !
genEvt_ ) log <<
" TtGenEvent not available! \n";
19 log <<
" TtGenEvent says: ";
20 if( !this->
genEvent()->isTtBar() ) log <<
"Not TtBar";
21 else if( this->
genEvent()->isFullHadronic() ) log <<
"Fully Hadronic TtBar";
22 else if( this->
genEvent()->isSemiLeptonic() ) log <<
"Semi-leptonic TtBar";
23 else if( this->
genEvent()->isFullLeptonic() ) log <<
"Fully Leptonic TtBar";
30 log <<
" - JetCombi : ";
45 typedef std::map<HypoClassKey, std::vector<HypoCombPair> >::const_iterator EventHypo;
46 for(EventHypo hyp =
evtHyp_.begin(); hyp !=
evtHyp_.end(); ++hyp) {
49 log <<
"---------------------------------------------------------------------------- \n";
51 case kGeom : log <<
" Geom not (yet) applicable to TtFullHadronicEvent --> skipping" ;
continue;
52 case kWMassMaxSumPt : log <<
" WMassMaxSumPt not (yet) applicable to TtFullHadronicEvent --> skipping" ;
continue;
53 case kMaxSumPtWMass : log <<
" MaxSumPtWMass not (yet) applicable to TtFullHadronicEvent --> skipping" ;
continue;
54 case kGenMatch : log <<
" GenMatch" ;
break;
55 case kMVADisc : log <<
" MVADisc not (yet) applicable to TtFullHadronicEvent --> skipping" ;
continue;
56 case kKinFit : log <<
" KinFit" ;
break;
57 case kKinSolution : log <<
" KinSolution not (yet) applicable to TtFullHadronicEvent --> skipping" ;
continue;
58 case kWMassDeltaTopMass : log <<
" WMassDeltaTopMass not (yet) applicable to TtFullHadronicEvent --> skipping";
continue;
59 case kHitFit : log <<
" HitFit not (yet) applicable to TtFullHadronicEvent --> skipping" ;
continue;
60 default : log <<
" Unknown TtEvent::HypoClassKey provided --> skipping" ;
continue;
62 log <<
"-Hypothesis: \n";
65 log <<
" * Number of available jet combinations: " << nOfHyp <<
" \n";
66 if(verbosity < 10) log <<
" The following was found to be the best one: \n";
71 for(
unsigned cmb=0; cmb<nOfHyp; ++cmb) {
74 log <<
" * Not valid! \n";
78 log <<
" * JetCombi :";
80 for(
unsigned int iJet = 0; iJet < jets.size(); iJet++) {
81 log <<
" " << jets[iJet] <<
" ";
87 <<
" * Sum(DeltaPt): " << this->
genMatchSumPt(cmb) <<
" \n";
break;
89 <<
" * Prob(Chi^2) : " << this->
fitProb(cmb) <<
" \n";
break;
93 if(verbosity%10 >= 2) {
94 log <<
" * Candidates (pt; eta; phi; mass) :\n";
99 if(verbosity%10 >= 3) {
106 if(verbosity%10 >= 3) {
115 log <<
"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++";
HypoClassKey
supported classes of event hypotheses
const reco::GenParticle * lightQBar() const
get light Q bar of the TtGenEvent
const edm::RefProd< TtGenEvent > & genEvent() const
get TtGenEvent
const math::XYZTLorentzVector * topPair() const
get combined 4-vector of top and topBar from the TtGenEvent
const reco::GenParticle * wMinus() const
get Wminus of the TtGenEvent
const reco::GenParticle * topBar() const
get anti-top of the TtGenEvent
unsigned int numberOfAvailableHypos(const std::string &key) const
return number of available hypotheses within a given hypothesis class
const reco::GenParticle * lightQ() const
get light Q of the TtGenEvent
unsigned int numberOfAvailableHypoClasses() const
return number of available hypothesis classes
const reco::GenParticle * wPlus() const
get Wplus of the TtGenEvent
const reco::GenParticle * bBar() const
get anti-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
const reco::GenParticle * top() const
get top of the TtGenEvent
double fitChi2(const unsigned &cmb=0) const
return the chi2 of the kinematic fit of hypothesis 'cmb' if available; -1 else
double genMatchSumDR(const unsigned &cmb=0) const
return the sum dr of the generator match if available; -1 else
const reco::GenParticle * b() const
get b of the TtGenEvent
void print(const int verbosity=1) const
const reco::GenParticle * lightP() const
get light P of the TtGenEvent
tuple idx
DEBUGGING if hasattr(process,"trackMonIterativeTracking2012"): print "trackMonIterativeTracking2012 D...
const reco::GenParticle * lightPBar() const
get light P bar of the TtGenEvent
edm::RefProd< TtGenEvent > genEvt_
reference to TtGenEvent (has to be kept in the event!)
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...
double genMatchSumPt(const unsigned &cmb=0) const
return the sum pt of the generator match if available; -1 else
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