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 7 of file Mask.h.

Constructor & Destructor Documentation

◆ Mask() [1/2]

l1t::Mask::Mask ( )
inline

Definition at line 9 of file Mask.h.

9 {}

◆ Mask() [2/2]

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

Definition at line 5 of file Mask.cc.

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

5  {
6  id_ = id;
7  port_ = std::stoi(id.substr(id.find_last_not_of("0123456789") + 1));
8  procRole_ = procRole;
9  }
std::string id_
Definition: Mask.h:19
unsigned port_
Definition: Mask.h:15
std::string procRole_
Definition: Mask.h:19

Member Function Documentation

◆ getId()

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

Definition at line 15 of file Mask.h.

15 { return id_; };
std::string id_
Definition: Mask.h:19

◆ getPort()

unsigned l1t::Mask::getPort ( )
inline

Definition at line 14 of file Mask.h.

References port_.

14 { return port_; };
unsigned port_
Definition: Mask.h:15

◆ getProcRole()

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

Definition at line 13 of file Mask.h.

References procRole_.

13 { return procRole_; };
std::string procRole_
Definition: Mask.h:19

◆ setPort()

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

Definition at line 11 of file Mask.cc.

References EcalPhiSymFlatTableProducers_cfi::id, id_, and port_.

11  {
12  id_ = id;
13  port_ = std::stoi(id.substr(id.find_last_not_of("0123456789") + 1));
14  }
std::string id_
Definition: Mask.h:19
unsigned port_
Definition: Mask.h:15

◆ setProcRole()

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

Definition at line 11 of file Mask.h.

References procRole_.

11 { procRole_ = procRole; };
std::string procRole_
Definition: Mask.h:19

Member Data Documentation

◆ id_

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

Definition at line 19 of file Mask.h.

Referenced by Mask(), and setPort().

◆ port_

unsigned l1t::Mask::port_
private

Definition at line 15 of file Mask.h.

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

◆ procRole_

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

Definition at line 19 of file Mask.h.

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