ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/HbbAnalysis/interface/GenParticle.hh
(Generate patch)

Comparing UserCode/HbbAnalysis/interface/GenParticle.hh (file contents):
Revision 1.3 by amagnan, Fri Feb 18 11:09:53 2011 UTC vs.
Revision 1.4 by amagnan, Thu Sep 1 14:07:31 2011 UTC

# Line 73 | Line 73 | namespace HbbAnalysis {
73  
74      };
75  
76 +    inline TLorentzVector fourMomentum()
77 +    {
78 +      double lpx = part_.pT*cos(part_.phi);
79 +      double lpy = part_.pT*sin(part_.phi);
80 +      //double lp = part_.pT/sin(2*atan(exp(-part_.eta)));
81 +      //double lpz = sqrt(lp*lp - part_.pT*part_.pT);
82 +      double lpz = part_.pT*sinh(part_.eta);
83 +      double lE = part_.E;
84 +      
85 +      return TLorentzVector(lpx,lpy,lpz,lE);
86 +      
87 +    };
88 +
89    private:
90  
91      HbbAnalysis::MCVars part_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines