#include <TableOutputFields.h>
Public Member Functions | |
void | add (const edm::EDGetToken &table_token, const nanoaod::FlatTable &table) |
void | createFields (const edm::EventForOutput &event, RNTupleModel &eventModel) |
void | fill (const edm::EventForOutput &event) |
const std::string & | getCollectionName () const |
bool | hasMainTable () |
void | print () const |
TableCollection ()=default | |
Private Attributes | |
std::shared_ptr< RNTupleCollectionWriter > | m_collection |
std::string | m_collectionName |
std::vector< TableOutputFields > | m_extensions |
TableOutputFields | m_main |
Definition at line 100 of file TableOutputFields.h.
|
default |
void TableCollection::add | ( | const edm::EDGetToken & | table_token, |
const nanoaod::FlatTable & | table | ||
) |
Definition at line 136 of file TableOutputFields.cc.
References Exception, hasMainTable(), m_collectionName, m_extensions, m_main, and TableParser::table.
Referenced by counter.Counter::register().
void TableCollection::createFields | ( | const edm::EventForOutput & | event, |
RNTupleModel & | eventModel | ||
) |
Definition at line 150 of file TableOutputFields.cc.
References TableOutputFields::createFields(), runGCPTkAlMap::extension, TableOutputFields::getToken(), patZpeak::handle, m_collection, m_collectionName, m_extensions, m_main, eostools::move(), and TableParser::table.
void TableCollection::fill | ( | const edm::EventForOutput & | event | ) |
Definition at line 163 of file TableOutputFields.cc.
References Exception, TableOutputFields::fillEntry(), TableOutputFields::getToken(), patZpeak::handle, mps_fire::i, m_collection, m_collectionName, m_extensions, and m_main.
const std::string & TableCollection::getCollectionName | ( | ) | const |
bool TableCollection::hasMainTable | ( | ) |
Definition at line 193 of file TableOutputFields.cc.
References TableOutputFields::getToken(), edm::EDGetToken::isUninitialized(), and m_main.
Referenced by add().
void TableCollection::print | ( | void | ) | const |
Definition at line 184 of file TableOutputFields.cc.
References gather_cfg::cout, m_collectionName, m_extensions, m_main, and TableOutputFields::print().
|
private |
Definition at line 121 of file TableOutputFields.h.
Referenced by createFields(), and fill().
|
private |
Definition at line 117 of file TableOutputFields.h.
Referenced by add(), createFields(), fill(), getCollectionName(), and print().
|
private |
Definition at line 124 of file TableOutputFields.h.
Referenced by add(), createFields(), fill(), and print().
|
private |
Definition at line 123 of file TableOutputFields.h.
Referenced by add(), createFields(), fill(), hasMainTable(), and print().