1 #ifndef PhysicsTools_NanoAOD_TriggerOutputBranches_h 2 #define PhysicsTools_NanoAOD_TriggerOutputBranches_h 18 if (desc->
className() !=
"edm::TriggerResults")
throw cms::Exception(
"Configuration",
"NanoAODOutputModule/TriggerOutputBranches can only write out edm::TriggerResults objects");
37 name(aname), title(atitle), branch(branchptr), buffer(-1) {}
NamedBranchPtr(const std::string &aname, const std::string &atitle, TBranch *branchptr=0)
void fillColumn(NamedBranchPtr &nb, const edm::TriggerResults &triggers)
bool accept() const
Has at least one path accepted the event?
const std::string names[nVars_]
TriggerOutputBranches(const edm::BranchDescription *desc, const edm::EDGetToken &token)
std::string const & className() const
static std::string const triggerResults
edm::TriggerNames triggerNames(const edm::TriggerResults triggerResults)
void fill(const edm::EventForOutput &iEvent, TTree &tree)
void updateTriggerNames(TTree &tree, const edm::TriggerNames &names, const edm::TriggerResults &ta)
std::vector< NamedBranchPtr > m_triggerBranches