CMS 3D CMS Logo

MasslessInvariantMass Struct Reference

#include <PhysicsTools/Utilities/interface/MasslessInvariantMass.h>

List of all members.

Public Member Functions

template<typename T1, typename T2>
double operator() (const T1 &t1, const T2 &t2) const


Detailed Description

Definition at line 6 of file MasslessInvariantMass.h.


Member Function Documentation

template<typename T1, typename T2>
double MasslessInvariantMass::operator() ( const T1 &  t1,
const T2 &  t2 
) const [inline]

Definition at line 8 of file MasslessInvariantMass.h.

References p1, p2, v1, and v2.

00008                                                           {
00009     math::XYZVector p1 = t1.momentum(), p2 = t2.momentum();
00010     math::XYZTLorentzVector v1( p1.x(), p1.y(), p1.z(), p1.r() ), v2( p2.x(), p2.y(), p2.z(), p2.r() );
00011     return ( v1 + v2 ).mass();
00012   }


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:27:58 2009 for CMSSW by  doxygen 1.5.4