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

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

Static Public Member Functions

static std::string GetName (int id)
 
static int GetId (std::string name)
 
static bool DetIdOk (int id)
 
static bool DetNameOk (std::string name)
 

Detailed Description

Definition at line 84 of file DAQConventions.h.

Member Function Documentation

static bool novadaq::cnv::DetInfo::DetIdOk ( int  id)
inlinestatic

Definition at line 117 of file DAQConventions.h.

References GetName().

Referenced by dbutils::RunHistory::RunHistory(), and nova::dbi::RunHistory::SetDetector().

117  {
118  return (DetInfo::GetName(id) != "Unknown");
119  }
static std::string GetName(int id)
static bool novadaq::cnv::DetInfo::DetNameOk ( std::string  name)
inlinestatic
static int novadaq::cnv::DetInfo::GetId ( std::string  name)
inlinestatic

Definition at line 107 of file DAQConventions.h.

References novadaq::cnv::kFARDET, novadaq::cnv::kFCCDAQ, novadaq::cnv::kNDOS, novadaq::cnv::kNDSBTEST, novadaq::cnv::kNEARDET, novadaq::cnv::kTESTBEAM, and novadaq::cnv::kUNKNOWN_DET.

Referenced by DetNameOk(), chaninfo::FindSwappedChannels::filter(), nova::dbi::RunHistory::GetConfiguration(), nova::database::Table::GetConnectionInfo(), nova::database::Table::GetDetector(), nova::dbi::Table::GetDetector(), nova::dbi::RunHistory::IsDiBlockFullyInstrumented(), nova::dbi::RunHistory::LoadAPDSettings(), nova::dbi::RunHistory::LoadDAQRunHistory(), nova::dbi::RunHistory::LoadFEBMasks(), nova::dbi::RunHistory::LoadGoodDiBlockMask(), nova::dbi::RunHistory::LoadHardwareInfo(), nova::dbi::RunHistory::LoadPedestals(), nova::dbi::RunHistory::LoadPixelMasks(), nova::dbi::RunHistoryService::preBeginRun(), nova::dbi::RunHistoryService::preBeginSubrun(), nova::database::Table::SetDetector(), nova::dbi::Table::SetDetector(), and nova::dbi::RunHistory::SetDetector().

107  {
108  if (name == "NearDet") return kNEARDET;
109  if (name == "FarDet") return kFARDET;
110  if (name == "NDOS") return kNDOS;
111  if (name == "NDSBTest") return kNDSBTEST;
112  if (name == "TestBeam") return kTESTBEAM;
113  if (name == "FCCDAQ") return kFCCDAQ;
114  return kUNKNOWN_DET;
115  }
const XML_Char * name
Definition: expat.h:151
Far Detector at Ash River, MN.
Prototype Near Detector on the surface at FNAL.
Near Detector in the NuMI cavern.
static std::string novadaq::cnv::DetInfo::GetName ( int  id)
inlinestatic

Definition at line 86 of file DAQConventions.h.

References novadaq::cnv::kFARDET, novadaq::cnv::kFCCDAQ, novadaq::cnv::kNDOS, novadaq::cnv::kNDSBTEST, novadaq::cnv::kNEARDET, novadaq::cnv::kTESTBEAM, novadaq::cnv::kUNKNOWN_DET, and string.

Referenced by runh::BadDataFilter::beginRun(), DetIdOk(), comi::CosmicMetrics::endJob(), comi::DataCheck::endJob(), mcdatadaq::Configuration::init(), calib::TimingCache::LoadFromDatabase(), calib::AttenCache::LoadFromDatabase(), calib::AttenCache::LoadFromDatabaseUncalibratedMask(), calib::AbsCache::LoadFromVldDatabase(), calib::operator<<(), dbutils::hw::Util::PositionTable(), daqchannelmap::DAQChannelMapOLD::print(), daqchannelmap::DAQChannelMapOLD::printOffline(), novaddt::OnlineUnpack::ProcessRawEvent_(), daq2raw::OnlineUnpack::ProcessRawEvent_(), dbutils::RunHistory::RunHistory(), nova::database::Table::SetDetector(), nova::dbi::Table::SetDetector(), and nova::dbi::RunHistory::SetDetector().

86  {
87  switch (id) {
88  case kNEARDET:
89  return std::string("NearDet");
90  case kFARDET:
91  return std::string("FarDet");
92  case kNDOS:
93  return std::string("NDOS");
94  case kNDSBTEST:
95  return std::string("NDSBTest");
96  case kTESTBEAM:
97  return std::string("TestBeam");
98  case kFCCDAQ:
99  return std::string("FCCDAQ");
100  case kUNKNOWN_DET:
101  default:
102  break;
103  }
104  return std::string("Unknown");
105  }
Far Detector at Ash River, MN.
Prototype Near Detector on the surface at FNAL.
Near Detector in the NuMI cavern.
enum BeamMode string

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