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 44 of file LHCInfoPerFillPopConAnalyzer.cc.

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

44  {
45  for (auto const& i : s_fillTypeMap)
46  if (s_fill_type == i.first)
47  return i.second;
49  }
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 51 of file LHCInfoPerFillPopConAnalyzer.cc.

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

51  {
52  for (auto const& i : s_particleTypeMap)
53  if (s_particle_type == i.first)
54  return i.second;
55  return LHCInfoPerFill::NONE;
56  }
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 31 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 37 of file LHCInfoPerFillPopConAnalyzer.cc.

Referenced by particleTypeFromString().