#include <LumiOutputBranches.h>
Classes | |
struct | NamedBranchPtr |
Public Member Functions | |
void | branch (TTree &tree) |
void | defineBranchesFromFirstEvent (const nanoaod::FlatTable &tab) |
void | fill (const edm::LuminosityBlockForOutput &iLumi, TTree &tree, bool extensions) |
LumiOutputBranches (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 LumiOutputBranches:: { ... } | 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 LumiOutputBranches.h.
|
private |
Enumerator | |
---|---|
IsMain | |
IsExtension | |
DontKnowYetIfMainOrExtension |
Definition at line 31 of file LumiOutputBranches.h.
|
inline |
Definition at line 14 of file LumiOutputBranches.h.
References edm::BranchDescription::className().
void LumiOutputBranches::branch | ( | TTree & | tree | ) |
Definition at line 34 of file LumiOutputBranches.cc.
References 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 LumiOutputBranches::defineBranchesFromFirstEvent | ( | const nanoaod::FlatTable & | tab | ) |
Definition at line 11 of file LumiOutputBranches.cc.
References nanoaod::FlatTable::Bool, nanoaod::FlatTable::columnDoc(), nanoaod::FlatTable::columnName(), nanoaod::FlatTable::columnType(), Exception, nanoaod::FlatTable::Float, mps_fire::i, nanoaod::FlatTable::Int, m_baseName, m_floatBranches, m_intBranches, m_uint8Branches, nanoaod::FlatTable::name(), nanoaod::FlatTable::nColumns(), AlCaHLTBitMon_QueryRunRegistry::string, nanoaod::FlatTable::UInt8, and ALCARECOEcalPhiSym_cff::var.
Referenced by fill().
void LumiOutputBranches::fill | ( | const edm::LuminosityBlockForOutput & | iLumi, |
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 62 of file LumiOutputBranches.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_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 LumiOutputBranches.h.
References LumiOutputBranches::NamedBranchPtr::branch, nanoaod::FlatTable::columnData(), nanoaod::FlatTable::columnIndex(), Exception, m_baseName, and LumiOutputBranches::NamedBranchPtr::name.
|
private |
Definition at line 29 of file LumiOutputBranches.h.
Referenced by branch(), defineBranchesFromFirstEvent(), and fillColumn().
|
private |
Definition at line 47 of file LumiOutputBranches.h.
Referenced by fill().
|
private |
Definition at line 33 of file LumiOutputBranches.h.
|
private |
Definition at line 43 of file LumiOutputBranches.h.
|
private |
Definition at line 32 of file LumiOutputBranches.h.
|
private |
Definition at line 44 of file LumiOutputBranches.h.
Referenced by branch(), defineBranchesFromFirstEvent(), and fill().
|
private |
Definition at line 45 of file LumiOutputBranches.h.
Referenced by branch(), defineBranchesFromFirstEvent(), and fill().
|
private |
Definition at line 30 of file LumiOutputBranches.h.
|
private |
Definition at line 28 of file LumiOutputBranches.h.
Referenced by fill().
|
private |
Definition at line 46 of file LumiOutputBranches.h.
Referenced by branch(), defineBranchesFromFirstEvent(), and fill().