CMS 3D CMS Logo

Functions | Variables
cond::theLHCInfoPerFillPopConImpl Namespace Reference

Functions

LHCInfoPerFill::FillType fillTypeFromString (const std::string &s_fill_type)
 
LHCInfoPerFill::ParticleType particleTypeFromString (const std::string &s_particle_type)
 

Variables

static const std::pair< const char *, LHCInfoPerFill::FillTypes_fillTypeMap []
 
static const std::pair< const char *, LHCInfoPerFill::ParticleTypes_particleTypeMap []
 

Function Documentation

◆ fillTypeFromString()

LHCInfoPerFill::FillType cond::theLHCInfoPerFillPopConImpl::fillTypeFromString ( const std::string &  s_fill_type)

Definition at line 50 of file LHCInfoPerFillPopConAnalyzer.cc.

References mps_fire::i, s_fillTypeMap, and LHCInfoPerFill::UNKNOWN.

50  {
51  for (auto const& i : s_fillTypeMap)
52  if (s_fill_type == i.first)
53  return i.second;
55  }
static const std::pair< const char *, LHCInfoPerFill::FillType > s_fillTypeMap[]

◆ particleTypeFromString()

LHCInfoPerFill::ParticleType cond::theLHCInfoPerFillPopConImpl::particleTypeFromString ( const std::string &  s_particle_type)

Definition at line 57 of file LHCInfoPerFillPopConAnalyzer.cc.

References mps_fire::i, LHCInfoPerFill::NONE, and s_particleTypeMap.

57  {
58  for (auto const& i : s_particleTypeMap)
59  if (s_particle_type == i.first)
60  return i.second;
61  return LHCInfoPerFill::NONE;
62  }
static const std::pair< const char *, LHCInfoPerFill::ParticleType > s_particleTypeMap[]

Variable Documentation

◆ s_fillTypeMap

const std::pair<const char*, LHCInfoPerFill::FillType> cond::theLHCInfoPerFillPopConImpl::s_fillTypeMap[]
static
Initial value:
= {
std::make_pair("PROTONS", LHCInfoPerFill::PROTONS),
std::make_pair("IONS", LHCInfoPerFill::IONS),
std::make_pair("COSMICS", LHCInfoPerFill::COSMICS),
std::make_pair("GAP", LHCInfoPerFill::GAP)}

Definition at line 37 of file LHCInfoPerFillPopConAnalyzer.cc.

Referenced by fillTypeFromString().

◆ s_particleTypeMap

const std::pair<const char*, LHCInfoPerFill::ParticleType> cond::theLHCInfoPerFillPopConImpl::s_particleTypeMap[]
static
Initial value:
= {
std::make_pair("PROTON", LHCInfoPerFill::PROTON),
std::make_pair("PB82", LHCInfoPerFill::PB82),
std::make_pair("AR18", LHCInfoPerFill::AR18),
std::make_pair("D", LHCInfoPerFill::D),
std::make_pair("XE54", LHCInfoPerFill::XE54)}

Definition at line 43 of file LHCInfoPerFillPopConAnalyzer.cc.

Referenced by particleTypeFromString().