CMS 3D CMS Logo

List of all members | Static Public Member Functions
converter::helper::PolymorphicCreator Struct Reference

#include <CandidateProducer.h>

Static Public Member Functions

template<typename CColl , typename Comp , typename Conv >
static void create (size_t idx, CColl &cands, const Comp &components, Conv &converter)
 

Detailed Description

Definition at line 41 of file CandidateProducer.h.

Member Function Documentation

template<typename CColl , typename Comp , typename Conv >
static void converter::helper::PolymorphicCreator::create ( size_t  idx,
CColl &  cands,
const Comp &  components,
Conv converter 
)
inlinestatic

Definition at line 43 of file CandidateProducer.h.

References EnergyCorrector::c, configurableAnalysis::Candidate, and training_settings::idx.

Referenced by o2olib.O2OTool::execute().

43  {
44  typename Conv::Candidate * c = new typename Conv::Candidate;
46  ref_type ref = components.template getConcreteRef<ref_type>(idx);
47  converter.convert(ref, * c);
48  cands.push_back(c);
49  }