1 #ifndef PhysicsTools_NanoAOD_TableOutputBranches_h 2 #define PhysicsTools_NanoAOD_TableOutputBranches_h 17 if (desc->
className() !=
"nanoaod::FlatTable")
throw cms::Exception(
"Configuration",
"NanoAODOutputModule can only write out nanoaod::FlatTable objects");
38 name(aname), title(atitle), rootTypeCode(rootType), branch(branchptr) {}
49 if (idx == -1)
throw cms::Exception(
"LogicError",
"Missing column in input for "+m_baseName+
"_"+pair.
name);
boost::sub_range< const std::vector< T > > columnData(unsigned int column) const
get a column by index (const)
int columnIndex(const std::string &name) const
void defineBranchesFromFirstEvent(const nanoaod::FlatTable &tab)
void fill(const edm::EventForOutput &iEvent, TTree &tree, bool extensions)
NamedBranchPtr(const std::string &aname, const std::string &atitle, const std::string &rootType, TBranch *branchptr=0)
std::vector< NamedBranchPtr > m_intBranches
TBranch * m_counterBranch
std::string const & className() const
std::vector< NamedBranchPtr > m_uint8Branches
TableOutputBranches(const edm::BranchDescription *desc, const edm::EDGetToken &token)
enum TableOutputBranches::@820 m_extension
std::vector< NamedBranchPtr > m_floatBranches
void fillColumn(NamedBranchPtr &pair, const nanoaod::FlatTable &tab)