CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::modules::RoleNames Struct Reference

#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. More...
 
std::vector< std::string > roles_
 

Detailed Description

Definition at line 41 of file CandCombiner.h.

Constructor & Destructor Documentation

◆ RoleNames()

reco::modules::RoleNames::RoleNames ( const edm::ParameterSet cfg)
inlineexplicit

Definition at line 42 of file CandCombiner.h.

References looper::cfg, name_, roles_, and AlCaHLTBitMon_QueryRunRegistry::string.

42  {
43  if (cfg.exists("name"))
44  name_ = cfg.getParameter<std::string>("name");
45  else
46  name_ = "";
47  if (cfg.exists("roles"))
48  roles_ = cfg.getParameter<std::vector<std::string> >("roles");
49  else
50  roles_ = std::vector<std::string>();
51  }
std::vector< std::string > roles_
Definition: CandCombiner.h:63
std::string name_
Name of this candidate.
Definition: CandCombiner.h:61

Member Function Documentation

◆ roles()

const std::vector<std::string> reco::modules::RoleNames::roles ( ) const
inline

Definition at line 52 of file CandCombiner.h.

References roles_.

52 { return roles_; }
std::vector< std::string > roles_
Definition: CandCombiner.h:63

◆ set()

void reco::modules::RoleNames::set ( reco::CompositeCandidate c) const
inline

Definition at line 53 of file CandCombiner.h.

References c, name_, and roles_.

53  {
54  c.setName(name_);
55  c.setRoles(roles_);
56  c.applyRoles();
57  }
std::vector< std::string > roles_
Definition: CandCombiner.h:63
std::string name_
Name of this candidate.
Definition: CandCombiner.h:61

Member Data Documentation

◆ name_

std::string reco::modules::RoleNames::name_
private

Name of this candidate.

Definition at line 61 of file CandCombiner.h.

Referenced by RoleNames(), and set().

◆ roles_

std::vector<std::string> reco::modules::RoleNames::roles_
private

Definition at line 63 of file CandCombiner.h.

Referenced by RoleNames(), roles(), and set().