#include <TableOutputBranches.h>
Classes | |
struct | NamedBranchPtr |
Public Member Functions | |
void | branch (TTree &tree) |
void | defineBranchesFromFirstEvent (const nanoaod::FlatTable &tab) |
void | fill (const edm::OccurrenceForOutput &iWhatever, TTree &tree, bool extensions) |
TableOutputBranches (const edm::BranchDescription *desc, const edm::EDGetToken &token) | |
Private Types | |
enum | { IsMain = 0, IsExtension = 1, DontKnowYetIfMainOrExtension = 2 } |
typedef Int_t | CounterType |
Private Member Functions | |
template<typename T > | |
void | fillColumn (NamedBranchPtr &pair, const nanoaod::FlatTable &tab) |
Private Attributes | |
std::string | m_baseName |
bool | m_branchesBooked |
CounterType | m_counter |
TBranch * | m_counterBranch = nullptr |
std::string | m_doc |
std::vector< NamedBranchPtr > | m_doubleBranches |
enum TableOutputBranches:: { ... } | m_extension |
std::vector< NamedBranchPtr > | m_floatBranches |
std::vector< NamedBranchPtr > | m_int16Branches |
std::vector< NamedBranchPtr > | m_int32Branches |
bool | m_singleton = false |
edm::EDGetToken | m_token |
std::vector< NamedBranchPtr > | m_uint16Branches |
std::vector< NamedBranchPtr > | m_uint32Branches |
std::vector< NamedBranchPtr > | m_uint8Branches |
Definition at line 12 of file TableOutputBranches.h.
|
private |
Definition at line 33 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 submitPVResolutionJobs::desc.
void TableOutputBranches::branch | ( | TTree & | tree | ) |
Definition at line 47 of file TableOutputBranches.cc.
References isotrackApplyRegressor::branches, electrons_cff::branchName, Exception, IsExtension, m_baseName, m_counter, m_counterBranch, m_doc, m_doubleBranches, m_extension, m_floatBranches, m_int16Branches, m_int32Branches, m_singleton, m_uint16Branches, m_uint32Branches, m_uint8Branches, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by python.cmstools.EventTree::__getattr__(), and fill().
void TableOutputBranches::defineBranchesFromFirstEvent | ( | const nanoaod::FlatTable & | tab | ) |
Definition at line 12 of file TableOutputBranches.cc.
References nanoaod::FlatTable::Bool, nanoaod::FlatTable::columnDoc(), nanoaod::FlatTable::columnName(), nanoaod::FlatTable::columnType(), nanoaod::FlatTable::Double, Exception, nanoaod::FlatTable::Float, mps_fire::i, nanoaod::FlatTable::Int16, nanoaod::FlatTable::Int32, m_baseName, m_doubleBranches, m_floatBranches, m_int16Branches, m_int32Branches, m_uint16Branches, m_uint32Branches, m_uint8Branches, nanoaod::FlatTable::name(), nanoaod::FlatTable::nColumns(), AlCaHLTBitMon_QueryRunRegistry::string, nanoaod::FlatTable::UInt16, nanoaod::FlatTable::UInt32, nanoaod::FlatTable::UInt8, and ALCARECOEcalPhiSym_cff::var.
Referenced by fill().
void TableOutputBranches::fill | ( | const edm::OccurrenceForOutput & | iWhatever, |
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 81 of file TableOutputBranches.cc.
References branch(), defineBranchesFromFirstEvent(), nanoaod::FlatTable::doc(), DontKnowYetIfMainOrExtension, Exception, nanoaod::FlatTable::extension(), edm::OccurrenceForOutput::getByToken(), patZpeak::handle, IsExtension, IsMain, m_branchesBooked, m_counter, m_counterBranch, m_doc, m_doubleBranches, m_extension, m_floatBranches, m_int16Branches, m_int32Branches, m_singleton, m_token, m_uint16Branches, m_uint32Branches, m_uint8Branches, WZElectronSkims53X_cff::max, nanoaod::FlatTable::name(), nanoaod::FlatTable::singleton(), nanoaod::FlatTable::size(), findQualityFiles::size, and to_string().
|
inlineprivate |
Definition at line 55 of file TableOutputBranches.h.
References TableOutputBranches::NamedBranchPtr::branch, nanoaod::FlatTable::columnData(), nanoaod::FlatTable::columnIndex(), Exception, heavyIonCSV_trainingSettings::idx, m_baseName, TableOutputBranches::NamedBranchPtr::name, and nanoaod::FlatTable::size().
|
private |
Definition at line 29 of file TableOutputBranches.h.
Referenced by branch(), defineBranchesFromFirstEvent(), and fillColumn().
|
private |
Definition at line 52 of file TableOutputBranches.h.
Referenced by fill().
|
private |
Definition at line 34 of file TableOutputBranches.h.
|
private |
Definition at line 44 of file TableOutputBranches.h.
|
private |
Definition at line 32 of file TableOutputBranches.h.
|
private |
Definition at line 51 of file TableOutputBranches.h.
Referenced by branch(), defineBranchesFromFirstEvent(), and fill().
|
private |
Definition at line 50 of file TableOutputBranches.h.
Referenced by branch(), defineBranchesFromFirstEvent(), and fill().
|
private |
Definition at line 46 of file TableOutputBranches.h.
Referenced by branch(), defineBranchesFromFirstEvent(), and fill().
|
private |
Definition at line 48 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 47 of file TableOutputBranches.h.
Referenced by branch(), defineBranchesFromFirstEvent(), and fill().
|
private |
Definition at line 49 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().