ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/VHbb/interface/VHbbNameSpace.h
(Generate patch)

Comparing UserCode/VHbb/interface/VHbbNameSpace.h (file contents):
Revision 1.2 by bortigno, Thu Dec 20 10:16:44 2012 UTC vs.
Revision 1.3 by bortigno, Thu Jan 10 14:21:00 2013 UTC

# Line 16 | Line 16 | namespace VHbb {
16      {
17        double deta = eta1 - eta2;
18        double dphi = deltaPhi(phi1, phi2);
19 <      return std::sqrt(deta*deta + dphi*dphi);
19 >      return TMath::Sqrt(deta*deta + dphi*dphi);
20      }
21  
22  
# Line 43 | Line 43 | namespace VHbb {
43      H1.SetMag( (  - n2.Py() * V.Px() + n2.Px() * V.Py() )  / (sin(n1.Theta()) *det ) );
44      H2.SetMag( ( + n1.Py() * V.Px() - n1.Px() * V.Py() )  / (sin(n2.Theta())  *det ) );
45      
46 <    float mass=std::sqrt( TMath::Power( (H1.Mag()+H2.Mag()),2 ) - TMath::Power(( ( H1+H2 ).Mag()),2) );
46 >    float mass=TMath::Sqrt( TMath::Power( (H1.Mag()+H2.Mag()),2 ) - TMath::Power(( ( H1+H2 ).Mag()),2) );
47      
48      return mass;
49      

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines