CMS 3D CMS Logo

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

Static Public Member Functions

static ColType convert (ValType x)
 

Detailed Description

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

Definition at line 120 of file GlobalVariablesTableProducer.cc.

Member Function Documentation

◆ convert()

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

Definition at line 122 of file GlobalVariablesTableProducer.cc.

122  {
123  if (x.empty())
124  return 0;
125  auto v = x[0].p4();
126  v -= x[0].p4();
127  for (const auto& i : x)
128  v += i.p4();
129  return v.pt();
130  }

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

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