CMS 3D CMS Logo

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");
}
}
edm
HLT enums.
Definition: AlignableModifier.h:19
Column
SOA_DECLARE_COLUMN
#define SOA_DECLARE_COLUMN(_ClassName_, _Type_, _String_)
Definition: Column.h:85