CMS 3D CMS Logo

Public Member Functions | Private Attributes

reco::modules::RoleNames Struct Reference

#include <CandCombiner.h>

List of all members.

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_

Detailed Description

Definition at line 40 of file CandCombiner.h.


Constructor & Destructor Documentation

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>();
      }

Member Function Documentation

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

Definition at line 52 of file CandCombiner.h.

References roles_.

{ return roles_; }
void reco::modules::RoleNames::set ( reco::CompositeCandidate c) const [inline]

Definition at line 53 of file CandCombiner.h.

References trackerHits::c, name_, and roles_.


Member Data Documentation

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