CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | Friends
cscdqm::DCSBoardUtility Struct Reference

#include <CSCDQM_DCSBase.h>

Public Member Functions

 DCSBoardUtility (const DCSBoardType boardType_)
 

Static Public Member Functions

static DCSBoardType getDCSBoard (const std::string board)
 Get DCSBoardType from string. More...
 

Public Attributes

DCSBoardType boardType
 

Friends

std::ostream & operator<< (std::ostream &out, const DCSBoardUtility &b)
 

Detailed Description

DCSBoardType utility object type

Definition at line 41 of file CSCDQM_DCSBase.h.

Constructor & Destructor Documentation

cscdqm::DCSBoardUtility::DCSBoardUtility ( const DCSBoardType  boardType_)
inline

Definition at line 44 of file CSCDQM_DCSBase.h.

44 : boardType(boardType_) { }

Member Function Documentation

static DCSBoardType cscdqm::DCSBoardUtility::getDCSBoard ( const std::string  board)
inlinestatic

Get DCSBoardType from string.

Parameters
boardBoard name in string format
Returns
DCSBoardType for the string given

Definition at line 51 of file CSCDQM_DCSBase.h.

References cscdqm::ALCT, cscdqm::ANY, cscdqm::CFEB, and cscdqm::DMB.

51  {
52  if (board.compare("ALCT")) return ALCT;
53  if (board.compare("CFEB")) return CFEB;
54  if (board.compare("DMB")) return DMB;
55  return ANY;
56  }

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const DCSBoardUtility b 
)
friend

Definition at line 58 of file CSCDQM_DCSBase.h.

58  {
59  switch (b.boardType) {
60  case ANY:
61  return out << "ANY";
62  case ALCT:
63  return out << "ALCT";
64  case CFEB:
65  return out << "CFEB";
66  case DMB:
67  return out << "DMB";
68  }
69  return out << "?";
70  }
tuple out
Definition: dbtoconf.py:99
double b
Definition: hdecay.h:120

Member Data Documentation

DCSBoardType cscdqm::DCSBoardUtility::boardType

Definition at line 43 of file CSCDQM_DCSBase.h.