CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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();
}
}