CMS 3D CMS Logo

TtEvent.cc

Go to the documentation of this file.
00001 #include "AnalysisDataFormats/TopObjects/interface/TtEvent.h"
00002 
00003 // find corresponding hypotheses based on JetLepComb
00004 int
00005 TtEvent::correspondingHypo(const HypoClassKey& key1, const unsigned& hyp1, const HypoClassKey& key2) const
00006 {
00007   for(unsigned hyp2 = 0; hyp2 < this->numberOfAvailableHypos(key2); ++hyp2) {
00008     if( this->jetLepComb(key1, hyp1) == this->jetLepComb(key2, hyp2) )
00009       return hyp2;
00010   }
00011   return -1; // if no corresponding hypothesis was found
00012 }

Generated on Tue Jun 9 17:25:09 2009 for CMSSW by  doxygen 1.5.4