CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
egHLT::ParticlePair< T > Struct Template Reference

#include <EgHLTParticlePair.h>

Public Member Functions

float mass () const
 
 ParticlePair (const T &particle1, const T &particle2)
 
 ~ParticlePair ()
 

Public Attributes

const Tpart1
 
const Tpart2
 

Detailed Description

template<class T>
struct egHLT::ParticlePair< T >

Definition at line 8 of file EgHLTParticlePair.h.

Constructor & Destructor Documentation

template<class T >
egHLT::ParticlePair< T >::ParticlePair ( const T particle1,
const T particle2 
)
inline

Definition at line 12 of file EgHLTParticlePair.h.

12 :part1(particle1),part2(particle2){}
template<class T >
egHLT::ParticlePair< T >::~ParticlePair ( )
inline

Definition at line 13 of file EgHLTParticlePair.h.

13 {}

Member Function Documentation

template<class T >
float egHLT::ParticlePair< T >::mass ( ) const
inline

Definition at line 15 of file EgHLTParticlePair.h.

References mag(), egHLT::ParticlePair< T >::part1, and egHLT::ParticlePair< T >::part2.

15 {return (part1.p4()+part2.p4()).mag();}
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())

Member Data Documentation

template<class T >
const T& egHLT::ParticlePair< T >::part1

Definition at line 9 of file EgHLTParticlePair.h.

Referenced by egHLT::ParticlePair< T >::mass().

template<class T >
const T& egHLT::ParticlePair< T >::part2

Definition at line 10 of file EgHLTParticlePair.h.

Referenced by egHLT::ParticlePair< T >::mass().