#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 } |
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 |
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 |
Definition at line 38 of file LumiOutputBranches.h.
|
private |
Enumerator | |
---|---|
IsMain | |
IsExtension | |
DontKnowYetIfMainOrExtension |
Definition at line 36 of file LumiOutputBranches.h.
|
inline |
Definition at line 14 of file LumiOutputBranches.h.
References submitPVResolutionJobs::desc.
void LumiOutputBranches::branch | ( | TTree & | tree | ) |
Definition at line 34 of file LumiOutputBranches.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 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::Int32, m_baseName, m_floatBranches, m_intBranches, m_uint8Branches, nanoaod::FlatTable::name(), nanoaod::FlatTable::nColumns(), AlCaHLTBitMon_QueryRunRegistry::string, nanoaod::FlatTable::UInt8, and trigObjTnPSource_cfi::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, SiStripPI::max, nanoaod::FlatTable::name(), nanoaod::FlatTable::singleton(), nanoaod::FlatTable::size(), findQualityFiles::size, and to_string().
|
inlineprivate |
Definition at line 56 of file LumiOutputBranches.h.
References LumiOutputBranches::NamedBranchPtr::branch, nanoaod::FlatTable::columnData(), nanoaod::FlatTable::columnIndex(), Exception, heavyIonCSV_trainingSettings::idx, m_baseName, and LumiOutputBranches::NamedBranchPtr::name.
|
private |
Definition at line 34 of file LumiOutputBranches.h.
Referenced by branch(), defineBranchesFromFirstEvent(), and fillColumn().
|
private |
Definition at line 53 of file LumiOutputBranches.h.
Referenced by fill().
|
private |
Definition at line 39 of file LumiOutputBranches.h.
|
private |
Definition at line 49 of file LumiOutputBranches.h.
|
private |
Definition at line 37 of file LumiOutputBranches.h.
|
private |
Definition at line 50 of file LumiOutputBranches.h.
Referenced by branch(), defineBranchesFromFirstEvent(), and fill().
|
private |
Definition at line 51 of file LumiOutputBranches.h.
Referenced by branch(), defineBranchesFromFirstEvent(), and fill().
|
private |
Definition at line 35 of file LumiOutputBranches.h.
|
private |
Definition at line 33 of file LumiOutputBranches.h.
Referenced by fill().
|
private |
Definition at line 52 of file LumiOutputBranches.h.
Referenced by branch(), defineBranchesFromFirstEvent(), and fill().