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 143 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 145 of file GlobalVariablesTableProducer.cc.

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

145  {
146  if (x.empty())
147  return 0;
148  auto v = x[0].p4();
149  v -= x[0].p4();
150  for (const auto& i : x)
151  v += i.p4();
152  return v.pt();
153  }