CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
l1t::Mask Class Reference

#include <Mask.h>

Public Member Functions

std::string getId ()
 
unsigned getPort ()
 
std::string getProcRole ()
 
 Mask ()
 
 Mask (std::string id, std::string procRole)
 
void setPort (std::string id)
 
void setProcRole (std::string procRole)
 

Private Attributes

std::string id_
 
unsigned port_
 
std::string procRole_
 

Detailed Description

Definition at line 10 of file Mask.h.

Constructor & Destructor Documentation

◆ Mask() [1/2]

l1t::Mask::Mask ( )
inline

Definition at line 12 of file Mask.h.

12 {};

◆ Mask() [2/2]

l1t::Mask::Mask ( std::string  id,
std::string  procRole 
)

Definition at line 5 of file Mask.cc.

5  {
6  id_ = id;
7  port_ = boost::lexical_cast<int>(id.substr(id.find_last_not_of("0123456789") + 1));
8  procRole_ = procRole;
9  }

References triggerObjects_cff::id, id_, port_, and procRole_.

Member Function Documentation

◆ getId()

std::string l1t::Mask::getId ( )
inline

Definition at line 18 of file Mask.h.

18 { return id_; };

◆ getPort()

unsigned l1t::Mask::getPort ( )
inline

Definition at line 17 of file Mask.h.

17 { return port_; };

References port_.

◆ getProcRole()

std::string l1t::Mask::getProcRole ( )
inline

Definition at line 16 of file Mask.h.

16 { return procRole_; };

References procRole_.

◆ setPort()

void l1t::Mask::setPort ( std::string  id)

Definition at line 11 of file Mask.cc.

11  {
12  id_ = id;
13  port_ = boost::lexical_cast<int>(id.substr(id.find_last_not_of("0123456789") + 1));
14  }

References triggerObjects_cff::id, id_, and port_.

◆ setProcRole()

void l1t::Mask::setProcRole ( std::string  procRole)
inline

Definition at line 14 of file Mask.h.

14 { procRole_ = procRole; };

References procRole_.

Member Data Documentation

◆ id_

std::string l1t::Mask::id_
private

Definition at line 22 of file Mask.h.

Referenced by Mask(), and setPort().

◆ port_

unsigned l1t::Mask::port_
private

Definition at line 18 of file Mask.h.

Referenced by getPort(), Mask(), and setPort().

◆ procRole_

std::string l1t::Mask::procRole_
private

Definition at line 22 of file Mask.h.

Referenced by getProcRole(), Mask(), and setProcRole().

l1t::Mask::port_
unsigned port_
Definition: Mask.h:18
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
l1t::Mask::id_
std::string id_
Definition: Mask.h:22
l1t::Mask::procRole_
std::string procRole_
Definition: Mask.h:22