CMS 3D CMS Logo

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

Constructor & Destructor Documentation

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

Definition at line 46 of file CSCDQM_DCSBase.h.

46 : 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 53 of file CSCDQM_DCSBase.h.

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

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

Friends And Related Function Documentation

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

Definition at line 60 of file CSCDQM_DCSBase.h.

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

Member Data Documentation

DCSBoardType cscdqm::DCSBoardUtility::boardType

Definition at line 45 of file CSCDQM_DCSBase.h.