1 #ifndef PhysicsTools_NanoAOD_TriggerOutputBranches_h 2 #define PhysicsTools_NanoAOD_TriggerOutputBranches_h 17 if (
desc->className() !=
"edm::TriggerResults")
19 "NanoAODOutputModule/TriggerOutputBranches can only write out edm::TriggerResults objects");
bool accept() const
Has at least one path accepted the event?
std::string processName()
void fillColumn(NamedBranchPtr &nb, const edm::TriggerResults &triggers)
bool verifyBranchUniqueName(TTree &, std::string) const
std::string m_processName
const std::string names[nVars_]
TriggerOutputBranches(const edm::BranchDescription *desc, const edm::EDGetToken &token)
static std::string const triggerResults
edm::TriggerNames triggerNames(const edm::TriggerResults triggerResults)
NamedBranchPtr(const std::string &aname, const std::string &atitle, TBranch *branchptr=nullptr)
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