ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/UHHAnalysis/SFrameTools/src/Utils.cxx
(Generate patch)

Comparing UserCode/UHHAnalysis/SFrameTools/src/Utils.cxx (file contents):
Revision 1.2 by peiffer, Thu May 31 08:56:47 2012 UTC vs.
Revision 1.3 by peiffer, Wed Jun 13 14:37:59 2012 UTC

# Line 47 | Line 47 | bool TopTag(TopJet topjet,  double &mjet
47    return true;
48   }
49  
50 double HTlep(const BaseCycleContainer *bcc){
51
52  double htlep=0;
53
54  if(bcc->electrons){
55    for(unsigned int i=0; i<bcc->electrons->size(); ++i){
56      htlep += bcc->electrons->at(i).pt();
57    }
58  }
59  if(bcc->muons){
60    for(unsigned int i=0; i<bcc->muons->size(); ++i){
61      htlep += bcc->muons->at(i).pt();
62    }
63  }
64  if(bcc->met) htlep += bcc->met->pt();
65
66  return htlep;
67
68 }
69
50   Jet* nextJet(const Particle *p, std::vector<Jet> *jets){
51  
52    double deltarmin = double_infinity();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines