test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
InvariantMass< T1, T2 > Struct Template Reference

#include <InvariantMass.h>

Public Member Functions

double operator() (const T1 &t1, const T2 &t2) const
 

Detailed Description

template<typename T1, typename T2 = T1>
struct InvariantMass< T1, T2 >

Definition at line 6 of file InvariantMass.h.

Member Function Documentation

template<typename T1 , typename T2 = T1>
double InvariantMass< T1, T2 >::operator() ( const T1 &  t1,
const T2 &  t2 
) const
inline

Definition at line 7 of file InvariantMass.h.

7  {
8  return ( t1.momentum() + t2.momentum() ).mass();
9  }