CMS 3D CMS Logo

Public Member Functions | Public Attributes

egHLT::ParticlePair< T > Struct Template Reference

#include <EgHLTParticlePair.h>

List of all members.

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.

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

Definition at line 13 of file EgHLTParticlePair.h.

{}

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.

{return (part1.p4()+part2.p4()).mag();}

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().