CMS 3D CMS Logo

Classes | Enumerations | Functions
BeamSpotPI Namespace Reference

Classes

class  BeamSpot_history
 
class  BeamSpot_runhistory
 
class  BeamSpot_timehistory
 
class  BSParamsHelper
 
class  DisplayParameters
 
class  DisplayParametersDiff
 
class  xyCorrelation
 

Enumerations

enum  parameters {
  X = 0, Y = 1, Z = 2, sigmaX = 3,
  sigmaY = 4, sigmaZ = 5, dxdz = 6, dydz = 7,
  lastLumi = 8, lastRun = 9, lastFill = 10, nTracks = 11,
  nPVs = 12, nUsedEvents = 13, maxPVs = 14, meanPV = 15,
  meanErrorPV = 16, rmsPV = 17, rmsErrorPV = 18, creationTime = 19,
  startTimeStamp = 20, endTimeStamp = 21, startTime = 22, endTime = 23,
  lumiRange = 24, END_OF_TYPES = 25
}
 

Functions

std::string getStringFromParamEnum (const parameters &parameter, const bool addUnits=false)
 
std::pair< unsigned int, unsigned int > unpack (cond::Time_t since)
 

Enumeration Type Documentation

◆ parameters

Enumerator
sigmaX 
sigmaY 
sigmaZ 
dxdz 
dydz 
lastLumi 
lastRun 
lastFill 
nTracks 
nPVs 
nUsedEvents 
maxPVs 
meanPV 
meanErrorPV 
rmsPV 
rmsErrorPV 
creationTime 
startTimeStamp 
endTimeStamp 
startTime 
endTime 
lumiRange 
END_OF_TYPES 

Definition at line 33 of file BeamSpotPayloadInspectorHelper.h.

33  {
34  X = 0, // 0 regular BS methods
35  Y = 1, // 1
36  Z = 2, // 2
37  sigmaX = 3, // 3
38  sigmaY = 4, // 4
39  sigmaZ = 5, // 5
40  dxdz = 6, // 6
41  dydz = 7, // 7
42  lastLumi = 8, // 8 additional int's
43  lastRun = 9, // 9
44  lastFill = 10, // 10
45  nTracks = 11, // 11
46  nPVs = 12, // 12
47  nUsedEvents = 13, // 13
48  maxPVs = 14, // 14
49  meanPV = 15, // 15 additional float's
50  meanErrorPV = 16, // 16
51  rmsPV = 17, // 17
52  rmsErrorPV = 18, // 18
53  creationTime = 19, // 19 additional cond::Time_t
54  startTimeStamp = 20, // 20
55  endTimeStamp = 21, // 21
56  startTime = 22, // 22 additional std::string
57  endTime = 23, // 23
58  lumiRange = 24, // 24
59  END_OF_TYPES = 25,
60  };
float dydz
float dxdz
#define X(str)
Definition: MuonsGrabber.cc:38
float rmsPV
time_t startTimeStamp
time_t endTimeStamp
float meanPV

Function Documentation

◆ getStringFromParamEnum()

std::string BeamSpotPI::getStringFromParamEnum ( const parameters parameter,
const bool  addUnits = false 
)
inline

Definition at line 63 of file BeamSpotPayloadInspectorHelper.h.

References dxdz, dydz, pfMETsysShiftCorrections_cfi::parameter, sigmaX, sigmaY, sigmaZ, X, Y, and Z.

Referenced by BeamSpotPI::DisplayParametersDiff< PayloadType, nIOVs, ntags >::fill(), and BeamSpotPI::BSParamsHelper< PayloadType >::printDebug().

64  {
65  switch (parameter) {
66  case X:
67  return (addUnits ? "X [cm]" : "X");
68  case Y:
69  return (addUnits ? "Y [cm]" : "Y");
70  case Z:
71  return (addUnits ? "Z [cm]" : "Z");
72  case sigmaX:
73  return (addUnits ? "#sigma_{X} [cm]" : "sigmaX");
74  case sigmaY:
75  return (addUnits ? "#sigma_{Y} [cm]" : "sigmaY");
76  case sigmaZ:
77  return (addUnits ? "#sigma_{Z} [cm]" : "sigmaZ");
78  case dxdz:
79  return (addUnits ? "#frac{dX}{dZ} [rad]" : "dx/dz");
80  case dydz:
81  return (addUnits ? "#frac{dY}{dZ} [rad]" : "dy/dz");
82  default:
83  return "should never be here";
84  }
85  }
float dydz
float dxdz
#define X(str)
Definition: MuonsGrabber.cc:38

◆ unpack()

std::pair<unsigned int, unsigned int> BeamSpotPI::unpack ( cond::Time_t  since)
inline