Static Public Member Functions | List of all members
novadaq::cnv::SubDetInfo Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N21-03-05/NovaDAQConventions/cxx/include/DAQConventions.h"

Static Public Member Functions

static std::string GetName (int id)
 
static int GetId (std::string name)
 

Detailed Description

Definition at line 126 of file DAQConventions.h.

Member Function Documentation

static int novadaq::cnv::SubDetInfo::GetId ( std::string  name)
inlinestatic

Definition at line 145 of file DAQConventions.h.

References novadaq::cnv::k2Block_1x1, novadaq::cnv::k2Block_2x2, novadaq::cnv::k3Block_1x1, novadaq::cnv::k3Block_2x2, and novadaq::cnv::kUNKNOWN_SUBDET.

145  {
146  if (name == "_2Block_2x2") return k2Block_2x2;
147  if (name == "_3Block_2x2") return k3Block_2x2;
148  if (name == "_2Block_1x1") return k2Block_1x1;
149  if (name == "_3Block_1x1") return k3Block_1x1;
150  return kUNKNOWN_SUBDET;
151  }
const XML_Char * name
Definition: expat.h:151
static std::string novadaq::cnv::SubDetInfo::GetName ( int  id)
inlinestatic

Definition at line 128 of file DAQConventions.h.

References novadaq::cnv::k2Block_1x1, novadaq::cnv::k2Block_2x2, novadaq::cnv::k3Block_1x1, novadaq::cnv::k3Block_2x2, novadaq::cnv::kUNKNOWN_SUBDET, and string.

128  {
129  switch (id) {
130  case k2Block_2x2:
131  return std::string("_2Block_2x2");
132  case k3Block_2x2:
133  return std::string("_3Block_2x2");
134  case k2Block_1x1:
135  return std::string("_2Block_1x1");
136  case k3Block_1x1:
137  return std::string("_3Block_1x1");
138  case kUNKNOWN_SUBDET:
139  default:
140  break;
141  }
142  return std::string("Unknown");
143  }
enum BeamMode string

The documentation for this class was generated from the following file: