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

Comparing UserCode/HbbAnalysis/src/Objects.cc (file contents):
Revision 1.5 by amagnan, Wed Sep 22 12:21:44 2010 UTC vs.
Revision 1.6 by amagnan, Fri Jun 24 14:49:11 2011 UTC

# Line 6 | Line 6 | namespace HbbAnalysis {
6    {
7      
8      double dPhi = phi1 - phi2;
9    if (dPhi<0) dPhi += 2*TMath::Pi();
10
11    return dPhi;
12  }
13
14  double DeltaR(const BaseVars & v1, const BaseVars & v2)
15  {
16    
17    double dEta = v1.eta - v2.eta;
18    double dPhi = v1.phi - v2.phi;
19    if (dPhi<0) dPhi += 2*TMath::Pi();
20
21    return sqrt(dEta*dEta+dPhi*dPhi);
22  }
23
24  double DeltaR(const BaseVars & v1, const GenVars & v2)
25  {
9      
10 <    double dEta = v1.eta - v2.eta;
28 <    double dPhi = v1.phi - v2.phi;
29 <    if (dPhi<0) dPhi += 2*TMath::Pi();
30 <
31 <    return sqrt(dEta*dEta+dPhi*dPhi);
10 >    return dPhi;
11    }
12  
13    double SameSign(const BaseVars & v1, const BaseVars & v2)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines