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

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

Static Public Member Functions

static std::string GetType (int rt)
 
static int GetRunId (std::string rid)
 
static bool RunIdOk (std::string rid)
 
static bool RunTypeOk (int rt)
 

Detailed Description

Definition at line 48 of file DAQConventions.h.

Member Function Documentation

static int novadaq::cnv::RunInfo::GetRunId ( std::string  rid)
inlinestatic

Definition at line 66 of file DAQConventions.h.

References novadaq::cnv::kCommissioningRun, novadaq::cnv::kPedestalRun, novadaq::cnv::kProductionRun, and novadaq::cnv::kTestRun.

Referenced by RunIdOk().

66  {
67  if (rid == "Test") return kTestRun;
68  if (rid == "Commissioning") return kCommissioningRun;
69  if (rid == "Pedestal") return kPedestalRun;
70  if (rid == "Production") return kProductionRun;
71  return -1;
72  }
static std::string novadaq::cnv::RunInfo::GetType ( int  rt)
inlinestatic

Definition at line 50 of file DAQConventions.h.

References novadaq::cnv::kCommissioningRun, novadaq::cnv::kPedestalRun, novadaq::cnv::kProductionRun, novadaq::cnv::kTestRun, and string.

Referenced by RunTypeOk().

50  {
51  switch (rt) {
52  case kTestRun:
53  return std::string("Test");
54  case kCommissioningRun:
55  return std::string("Commissioning");
56  case kPedestalRun:
57  return std::string("Pedestal");
58  case kProductionRun:
59  return std::string("Production");
60  default:
61  break;
62  }
63  return std::string("");
64  }
enum BeamMode string
static bool novadaq::cnv::RunInfo::RunIdOk ( std::string  rid)
inlinestatic

Definition at line 74 of file DAQConventions.h.

References GetRunId().

74  {
75  return (RunInfo::GetRunId(rid) >= 0);
76  }
static int GetRunId(std::string rid)
static bool novadaq::cnv::RunInfo::RunTypeOk ( int  rt)
inlinestatic

Definition at line 78 of file DAQConventions.h.

References GetType().

78  {
79  return (RunInfo::GetType(rt) != "");
80  }
static std::string GetType(int rt)

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