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");
38 name(aname), title(atitle), branch(branchptr), buffer(0) {}
NamedBranchPtr(const std::string &aname, const std::string &atitle, TBranch *branchptr=0)
std::string processName()
void fillColumn(NamedBranchPtr &nb, const edm::TriggerResults &triggers)
bool accept() const
Has at least one path accepted the event?
std::string m_processName
const std::string names[nVars_]
TriggerOutputBranches(const edm::BranchDescription *desc, const edm::EDGetToken &token)
std::string const & className() const
bool verifyBranchUniqueName(TTree &, std::string) 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