ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/src/HbbEvent.cc
(Generate patch)

Comparing UserCode/HbbAnalysis/src/HbbEvent.cc (file contents):
Revision 1.1 by amagnan, Thu Sep 17 19:39:52 2009 UTC vs.
Revision 1.3 by amagnan, Sun Jul 17 10:27:56 2011 UTC

# Line 3 | Line 3
3  
4   namespace HbbAnalysis {
5  
6 + //   void HbbEvent::retrieveLeadJets(const std::vector<HbbAnalysis::Jet> & aVec,
7 + //                                const std::vector<HbbAnalysis::Jet> & abVec,
8 + //                                HbbAnalysis::Jet & aLead,
9 + //                                HbbAnalysis::Jet & aNtoLead)
10 + //   {
11 + //     if (abVec.size() == 0) return;
12 + //     if (aVec.size() == abVec.size()) {
13 + //       aLead = abVec.at(0);
14 + //       if (abVec.size() > 1) aNtoLead = abVec.at(1);
15 + //     }
16 + //     else {
17 + //       if (abVec.at(0).recoVars().pT>aVec.at(0).recoVars().pT){
18 + //      aLead =  abVec.at(0);
19 + //      if (abVec.size() > 1){
20 + //        if (abVec.at(1).recoVars().pT>aVec.at(0).recoVars().pT) aNtoLead = abVec.at(1);
21 + //        else aNtoLead = aVec.at(0);
22 + //      }
23 + //       }
24 + //       else {
25 + //      aLead =  aVec.at(0);
26 + //      if (aVec.size() > 1){
27 + //        if (aVec.at(1).recoVars().pT > abVec.at(0).recoVars().pT) aNtoLead = aVec.at(1);
28 + //        else aNtoLead = abVec.at(0);
29 + //      }
30 + //       }
31 + //     }
32 +    
33 + //   }
34 +
35  
36   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines