CMS 3D CMS Logo

List of all members | Static Public Member Functions
GlobalVariablesTableProducer::MassSum< ColType, ValType > Class Template Reference

Static Public Member Functions

static ColType convert (ValType x)
 

Detailed Description

template<typename ColType, typename ValType>
class GlobalVariablesTableProducer::MassSum< ColType, ValType >

Definition at line 109 of file GlobalVariablesTableProducer.cc.

Member Function Documentation

◆ convert()

template<typename ColType , typename ValType >
static ColType GlobalVariablesTableProducer::MassSum< ColType, ValType >::convert ( ValType  x)
inlinestatic

Definition at line 111 of file GlobalVariablesTableProducer.cc.

111  {
112  if (x.empty())
113  return 0;
114  auto v = x[0].p4();
115  for (const auto& i : x)
116  v += i.p4();
117  return v.mass();
118  }

References mps_fire::i, findQualityFiles::v, and x.

mps_fire.i
i
Definition: mps_fire.py:355
DDAxes::x
findQualityFiles.v
v
Definition: findQualityFiles.py:179