CMS 3D CMS Logo

RowView Class Reference

#include "RowView.h"

Detailed Description

Description: Provides access to all elements of a row in a edm::soa::Table

Usage: Individual column entries of a row are accessed via the 'get' method by specifying the edm::soa::Column type for the column.

auto eta = rv.get<Eta>();

The MutableRowView allows one to modify the values associated with the row.

MutableRowView<Eta,Phi> rv = table.row(3);
rv.get<Eta>() = 4;
rv.set<Eta>(5).set<Phi>(6);

If the necessary fillers (See ColumnFillers.h) have been defined, then one can directly copy values from an object into the row elements

MutableRowView<Eta,Phi> rv = table.row(3);
...
rv.copyValuesFrom( Angles{0.2,3.1415} );