#include <TableOutputBranches.h>
Classes | |
struct | NamedBranchPtr |
Public Member Functions | |
void | branch (TTree &tree) |
void | defineBranchesFromFirstEvent (const nanoaod::FlatTable &tab) |
void | fill (const edm::EventForOutput &iEvent, TTree &tree, bool extensions) |
TableOutputBranches (const edm::BranchDescription *desc, const edm::EDGetToken &token) | |
Private Types | |
enum | { IsMain = 0, IsExtension = 1, DontKnowYetIfMainOrExtension = 2 } |
Private Member Functions | |
template<typename T > | |
void | fillColumn (NamedBranchPtr &pair, const nanoaod::FlatTable &tab) |
Private Attributes | |
std::string | m_baseName |
bool | m_branchesBooked |
UInt_t | m_counter |
TBranch * | m_counterBranch |
std::string | m_doc |
enum TableOutputBranches:: { ... } | m_extension |
std::vector< NamedBranchPtr > | m_floatBranches |
std::vector< NamedBranchPtr > | m_intBranches |
bool | m_singleton |
edm::EDGetToken | m_token |
std::vector< NamedBranchPtr > | m_uint8Branches |
Definition at line 12 of file TableOutputBranches.h.
|
private |
Enumerator | |
---|---|
IsMain | |
IsExtension | |
DontKnowYetIfMainOrExtension |
Definition at line 31 of file TableOutputBranches.h.
|
inline |
Definition at line 14 of file TableOutputBranches.h.
References edm::BranchDescription::className().
void TableOutputBranches::branch | ( | TTree & | tree | ) |
Definition at line 32 of file TableOutputBranches.cc.
References electrons_cff::branchName, Exception, IsExtension, m_baseName, m_counter, m_counterBranch, m_doc, m_extension, m_floatBranches, m_intBranches, m_singleton, m_uint8Branches, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by python.cmstools.EventTree::__getattr__(), and fill().
void TableOutputBranches::defineBranchesFromFirstEvent | ( | const nanoaod::FlatTable & | tab | ) |
Definition at line 11 of file TableOutputBranches.cc.
References nanoaod::FlatTable::BoolColumn, nanoaod::FlatTable::columnDoc(), nanoaod::FlatTable::columnName(), nanoaod::FlatTable::columnType(), nanoaod::FlatTable::FloatColumn, mps_fire::i, nanoaod::FlatTable::IntColumn, m_baseName, m_floatBranches, m_intBranches, m_uint8Branches, nanoaod::FlatTable::name(), nanoaod::FlatTable::nColumns(), AlCaHLTBitMon_QueryRunRegistry::string, nanoaod::FlatTable::UInt8Column, and trigObjTnPSource_cfi::var.
Referenced by fill().
void TableOutputBranches::fill | ( | const edm::EventForOutput & | iEvent, |
TTree & | tree, | ||
bool | extensions | ||
) |
Fill the current table, if extensions == table.extension(). This parameter is used so that the fill is called first for non-extensions and then for extensions
Definition at line 60 of file TableOutputBranches.cc.
References branch(), defineBranchesFromFirstEvent(), nanoaod::FlatTable::doc(), DontKnowYetIfMainOrExtension, Exception, nanoaod::FlatTable::extension(), patZpeak::handle, iEvent, IsExtension, IsMain, m_branchesBooked, m_counter, m_counterBranch, m_doc, m_extension, m_floatBranches, m_intBranches, m_singleton, m_token, m_uint8Branches, nanoaod::FlatTable::name(), nanoaod::FlatTable::singleton(), and nanoaod::FlatTable::size().
|
inlineprivate |
Definition at line 50 of file TableOutputBranches.h.
References TableOutputBranches::NamedBranchPtr::branch, nanoaod::FlatTable::columnData(), nanoaod::FlatTable::columnIndex(), Exception, training_settings::idx, m_baseName, and TableOutputBranches::NamedBranchPtr::name.
|
private |
Definition at line 29 of file TableOutputBranches.h.
Referenced by branch(), defineBranchesFromFirstEvent(), and fillColumn().
|
private |
Definition at line 47 of file TableOutputBranches.h.
Referenced by fill().
|
private |
Definition at line 33 of file TableOutputBranches.h.
|
private |
Definition at line 43 of file TableOutputBranches.h.
|
private |
Definition at line 32 of file TableOutputBranches.h.
|
private |
Definition at line 44 of file TableOutputBranches.h.
Referenced by branch(), defineBranchesFromFirstEvent(), and fill().
|
private |
Definition at line 45 of file TableOutputBranches.h.
Referenced by branch(), defineBranchesFromFirstEvent(), and fill().
|
private |
Definition at line 30 of file TableOutputBranches.h.
|
private |
Definition at line 28 of file TableOutputBranches.h.
Referenced by fill().
|
private |
Definition at line 46 of file TableOutputBranches.h.
Referenced by branch(), defineBranchesFromFirstEvent(), and fill().