CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 38 of file CSCDQM_DCSBase.h.

Constructor & Destructor Documentation

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

Definition at line 40 of file CSCDQM_DCSBase.h.

40 : 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 47 of file CSCDQM_DCSBase.h.

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

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

Friends And Related Function Documentation

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

Definition at line 57 of file CSCDQM_DCSBase.h.

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

Member Data Documentation

DCSBoardType cscdqm::DCSBoardUtility::boardType

Definition at line 39 of file CSCDQM_DCSBase.h.