CMS 3D CMS Logo

List of all members | Public Types | Static Public Member Functions
CTPPSRPAlignment Class Reference

#include <CTPPSRPAlignmentCorrectionsDataHelper.h>

Public Types

enum  RP { RP3 = 3, RP23 = 23, RP103 = 103, RP123 = 123 }
 
enum  Shift { x = 1, y = 2 }
 

Static Public Member Functions

static std::string getStringFromRPEnum (const RP &rp)
 
static std::string getStringFromShiftEnum (const Shift &sh, bool unc)
 

Detailed Description

Definition at line 22 of file CTPPSRPAlignmentCorrectionsDataHelper.h.

Member Enumeration Documentation

◆ RP

◆ Shift

Member Function Documentation

◆ getStringFromRPEnum()

static std::string CTPPSRPAlignment::getStringFromRPEnum ( const RP rp)
inlinestatic

Definition at line 28 of file CTPPSRPAlignmentCorrectionsDataHelper.h.

28  {
29  switch (rp) {
30  case 3:
31  return "RP 3";
32  case 23:
33  return "RP 23";
34  case 103:
35  return "RP 103";
36  case 123:
37  return "RP 123";
38 
39  default:
40  return "not here";
41  }
42  }

◆ getStringFromShiftEnum()

static std::string CTPPSRPAlignment::getStringFromShiftEnum ( const Shift sh,
bool  unc 
)
inlinestatic

Definition at line 44 of file CTPPSRPAlignmentCorrectionsDataHelper.h.

44  {
45  switch (sh) {
46  case 1:
47  if (unc)
48  return "x shift uncertainty";
49  else
50  return "x shift";
51  case 2:
52  if (unc)
53  return "y shift uncertainty";
54  else
55  return "y shift";
56 
57  default:
58  return "not here";
59  }
60  }