#include <CandCombiner.h>
Public Member Functions | |
RoleNames (const edm::ParameterSet &cfg) | |
const std::vector< std::string > | roles () const |
void | set (reco::CompositeCandidate &c) const |
Private Attributes | |
std::string | name_ |
Name of this candidate. | |
std::vector< std::string > | roles_ |
Definition at line 40 of file CandCombiner.h.
reco::modules::RoleNames::RoleNames | ( | const edm::ParameterSet & | cfg | ) | [inline, explicit] |
Definition at line 41 of file CandCombiner.h.
References edm::ParameterSet::exists(), edm::ParameterSet::getParameter(), name_, and roles_.
{ if ( cfg.exists("name") ) name_ = cfg.getParameter<std::string>("name"); else name_ = ""; if ( cfg.exists("roles") ) roles_ = cfg.getParameter<std::vector<std::string> >("roles"); else roles_ = std::vector<std::string>(); }
const std::vector<std::string> reco::modules::RoleNames::roles | ( | ) | const [inline] |
void reco::modules::RoleNames::set | ( | reco::CompositeCandidate & | c | ) | const [inline] |
Definition at line 53 of file CandCombiner.h.
References trackerHits::c, name_, and roles_.
{ c.setName(name_); c.setRoles(roles_); c.applyRoles(); }
std::string reco::modules::RoleNames::name_ [private] |
Name of this candidate.
Definition at line 60 of file CandCombiner.h.
Referenced by RoleNames(), and set().
std::vector<std::string> reco::modules::RoleNames::roles_ [private] |
Definition at line 62 of file CandCombiner.h.
Referenced by RoleNames(), roles(), and set().