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.

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  }

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

Member Function Documentation

◆ roles()

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

Definition at line 52 of file CandCombiner.h.

52 { return roles_; }

References roles_.

◆ set()

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

Definition at line 53 of file CandCombiner.h.

53  {
54  c.setName(name_);
55  c.setRoles(roles_);
56  c.applyRoles();
57  }

References c, name_, and roles_.

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().

reco::modules::RoleNames::name_
std::string name_
Name of this candidate.
Definition: CandCombiner.h:61
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
looper.cfg
cfg
Definition: looper.py:296
c
auto & c
Definition: CAHitNtupletGeneratorKernelsImpl.h:56
reco::modules::RoleNames::roles_
std::vector< std::string > roles_
Definition: CandCombiner.h:63