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 pair< const char *, LHCInfoPerFill::FillTypes_fillTypeMap []
 
static const pair< const char *, LHCInfoPerFill::ParticleTypes_particleTypeMap []
 

Function Documentation

◆ fillTypeFromString()

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

Definition at line 38 of file LHCInfoPerFillPopConSourceHandler.cc.

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

38  {
39  for (auto const& i : s_fillTypeMap)
40  if (s_fill_type == i.first)
41  return i.second;
43  }
static const pair< const char *, LHCInfoPerFill::FillType > s_fillTypeMap[]

◆ particleTypeFromString()

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

Definition at line 45 of file LHCInfoPerFillPopConSourceHandler.cc.

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

45  {
46  for (auto const& i : s_particleTypeMap)
47  if (s_particle_type == i.first)
48  return i.second;
49  return LHCInfoPerFill::NONE;
50  }
static const pair< const char *, LHCInfoPerFill::ParticleType > s_particleTypeMap[]

Variable Documentation

◆ s_fillTypeMap

const pair<const char*, LHCInfoPerFill::FillType> cond::theLHCInfoPerFillPopConImpl::s_fillTypeMap[]
static
Initial value:

Definition at line 25 of file LHCInfoPerFillPopConSourceHandler.cc.

Referenced by fillTypeFromString().

◆ s_particleTypeMap

const pair<const char*, LHCInfoPerFill::ParticleType> cond::theLHCInfoPerFillPopConImpl::s_particleTypeMap[]
static