CMS 3D CMS Logo

ColumnFillers Class Reference

#include "ColumnFillers.h"

Detailed Description

Description: Controls how edm::soa::Table columns can be filled from C++ objects

Usage: An edm::soa::Table<> can be filled from a container of objects if the appropriate overloaded functions are defined.

The overloaded function must be called value_for_column. The function takes two arguments. The first argument is a const reference to the class in question, or its base class. The second argument is a pointer to the edm::soa::Column<> type. E.g.

namespace reco {
double value_for_column(Candidate const& iCand, edm::soa::Energy*) {
return iCand.energy();
}
}
configurableAnalysis::Candidate
char Candidate[]
Definition: modules.cc:20
EcalCondDBWriter_cfi.Energy
Energy
Definition: EcalCondDBWriter_cfi.py:152
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
edm::soa::value_for_column
col::Eta ::type value_for_column(Object const &x, col::Eta *)
Definition: KinematicColumns.h:24