7 return baseName.empty() ? leafName : (leafName.empty() ? baseName : baseName +
"_" + leafName);
49 "Trying to save an extension table for " +
m_baseName +
50 " before having saved the corresponding main table\n");
61 for (std::vector<NamedBranchPtr> *branches :
63 for (
auto &pair : *branches) {
67 pair.branch->SetTitle(pair.title.c_str());
95 "Mismatch in number of entries between extension and main table for " + tab.
name());
99 fillColumn<float>(pair, tab);
101 fillColumn<int>(pair, tab);
103 fillColumn<int8_t>(pair, tab);
105 fillColumn<uint8_t>(pair, tab);
107 fillColumn<uint32_t>(pair, tab);
109 fillColumn<double>(pair, tab);
std::vector< NamedBranchPtr > m_uint32Branches
const std::string & columnName(unsigned int col) const
void defineBranchesFromFirstEvent(const nanoaod::FlatTable &tab)
BasicHandle getByToken(EDGetToken token, TypeID const &typeID) const
const std::string & name() const
std::vector< NamedBranchPtr > m_intBranches
const std::string & doc() const
TBranch * m_counterBranch
std::vector< NamedBranchPtr > m_int8Branches
enum TableOutputBranches::@871 m_extension
std::vector< NamedBranchPtr > m_uint8Branches
void fill(const edm::OccurrenceForOutput &iWhatever, TTree &tree, bool extensions)
ColumnType columnType(unsigned int col) const
unsigned int nColumns() const
const std::string & columnDoc(unsigned int col) const
std::vector< NamedBranchPtr > m_floatBranches
unsigned int size() const
std::vector< NamedBranchPtr > m_doubleBranches