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

Constructor & Destructor Documentation

◆ DCSBoardUtility()

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

Definition at line 40 of file CSCDQM_DCSBase.h.

40 : boardType(boardType_) {}

Member Function Documentation

◆ getDCSBoard()

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.

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  }

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

Friends And Related Function Documentation

◆ operator<<

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  }

Member Data Documentation

◆ boardType

DCSBoardType cscdqm::DCSBoardUtility::boardType

Definition at line 39 of file CSCDQM_DCSBase.h.

b
double b
Definition: hdecay.h:118
cscdqm::ALCT
Definition: CSCDQM_DCSBase.h:35
cscdqm::DCSBoardUtility::boardType
DCSBoardType boardType
Definition: CSCDQM_DCSBase.h:39
cscdqm::ANY
Definition: CSCDQM_DCSBase.h:35
cscdqm::CFEB
Definition: CSCDQM_DCSBase.h:35
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
cscdqm::DMB
Definition: CSCDQM_DCSBase.h:35