CMS 3D CMS Logo

List of all members | Public Member Functions
MasslessInvariantMass Struct Reference

#include <MasslessInvariantMass.h>

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

◆ operator()()

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

Definition at line 8 of file MasslessInvariantMass.h.

8  {
9  math::XYZVector p1 = t1.momentum(), p2 = t2.momentum();
10  math::XYZTLorentzVector v1(p1.x(), p1.y(), p1.z(), p1.r()), v2(p2.x(), p2.y(), p2.z(), p2.r());
11  return (v1 + v2).mass();
12  }

References p1, p2, RandomServiceHelper::t1, and RandomServiceHelper::t2.

RandomServiceHelper.t2
t2
Definition: RandomServiceHelper.py:257
RandomServiceHelper.t1
t1
Definition: RandomServiceHelper.py:256
p2
double p2[4]
Definition: TauolaWrapper.h:90
math::XYZVector
XYZVectorD XYZVector
spatial vector with cartesian internal representation
Definition: Vector3D.h:31
p1
double p1[4]
Definition: TauolaWrapper.h:89
math::XYZTLorentzVector
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29