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

Member Function Documentation

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

Definition at line 109 of file GlobalVariablesTableProducer.cc.

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

109  {
110  if(x.empty()) return 0;
111  auto v=x[0].p4();
112  v-=x[0].p4();
113  for(const auto & i : x) v+=i.p4();
114  return v.pt();
115  }