CMS 3D CMS Logo

Classes | Enumerations | Functions
AlignPCLThresholdPlotHelper Namespace Reference

Classes

class  AlignPCLThresholds_CompareBase
 
class  AlignPCLThresholds_DisplayBase
 

Enumerations

enum  types {
  DELTA = 0, SIG = 1, MAXMOVE = 2, MAXERR = 3,
  FRACTION_CUT = 4, END_OF_TYPES = 5
}
 

Functions

const std::string getStringFromCoordEnum (const AlignPCLThresholds::coordType &coord)
 
const std::string getStringFromTypeEnum (const types &type)
 
std::string replaceAll (const std::string &str, const std::string &from, const std::string &to)
 

Enumeration Type Documentation

◆ types

Function Documentation

◆ getStringFromCoordEnum()

const std::string AlignPCLThresholdPlotHelper::getStringFromCoordEnum ( const AlignPCLThresholds::coordType coord)
inline

◆ getStringFromTypeEnum()

const std::string AlignPCLThresholdPlotHelper::getStringFromTypeEnum ( const types type)
inline

◆ replaceAll()

std::string AlignPCLThresholdPlotHelper::replaceAll ( const std::string &  str,
const std::string &  from,
const std::string &  to 
)
inline

Definition at line 69 of file SiPixelAliPCLThresholdsPayloadInspectorHelper.h.

References MillePedeFileConverter_cfg::out, str, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by AlignPCLThresholdPlotHelper::AlignPCLThresholds_DisplayBase< PayloadType >::fill(), and AlignPCLThresholdPlotHelper::AlignPCLThresholds_CompareBase< PayloadType, nIOVs, ntags >::fill().

69  {
71 
72  if (from.empty())
73  return out;
74  size_t start_pos = 0;
75  while ((start_pos = out.find(from, start_pos)) != std::string::npos) {
76  out.replace(start_pos, from.length(), to);
77  start_pos += to.length(); // In case 'to' contains 'from', like replacing 'x' with 'yx'
78  }
79  return out;
80  }
#define str(s)