CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Column Class Reference

#include "Column.h"

Detailed Description

Description: Column describes a column in a Table

Usage: Class instances inheriting from the Column class are not intended to be used. Instead, the specific Column type is used as a template argument to a edm::soa::Table<> to describe a column in the table.

A column is defined by a name and a C++ type.

Classes inheriting from Column must declare a 'constexpr const char' array named 'kLabel'.

namespace edm {
namespace soa {
struct Eta : public Column<double,Eta> {
static constexpr const char * const kLabel = "eta";
};
}
}

Alternatively, one can use the macro SOA_DECLARE_COLUMN

namespace edm {
namespace soa {
SOA_DECLARE_COLUMN(Eta,double, "eta");
}
}