CMS 3D CMS Logo

Classes | Enumerations | Functions
simBeamSpotPI Namespace Reference

Classes

class  DisplayParameters
 
class  DisplayParametersDiff
 
class  SimBSParamsHelper
 

Enumerations

enum  parameters {
  X = 0, Y = 1, Z = 2, meanX = 3,
  meanY = 4, meanZ = 5, sigmaX = 6, sigmaY = 7,
  sigmaZ = 8, betaStar = 9, emittance = 10, phi = 11,
  alpha = 12, timeOffset = 13, END_OF_TYPES = 14
}
 

Functions

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

Enumeration Type Documentation

◆ parameters

Enumerator
meanX 
meanY 
meanZ 
sigmaX 
sigmaY 
sigmaZ 
betaStar 
emittance 
phi 
alpha 
timeOffset 
END_OF_TYPES 

Definition at line 717 of file BeamSpotPayloadInspectorHelper.h.

Function Documentation

◆ getStringFromParamEnum()

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

Definition at line 736 of file BeamSpotPayloadInspectorHelper.h.

References alpha, betaStar, emittance, meanX, meanY, meanZ, phi, sigmaX, sigmaY, sigmaZ, timeOffset, X, Y, and Z.

Referenced by simBeamSpotPI::DisplayParameters< PayloadType >::fill(), simBeamSpotPI::DisplayParametersDiff< PayloadType, nIOVs, ntags >::fill(), and simBeamSpotPI::SimBSParamsHelper< PayloadType >::printDebug().

736  {
737  switch (parameter) {
738  case X:
739  return (addUnits ? "X [cm]" : "X");
740  case Y:
741  return (addUnits ? "Y [cm]" : "Y");
742  case Z:
743  return (addUnits ? "Z [cm]" : "Z");
744  case meanX:
745  return (addUnits ? "MeanX [cm]" : "meanX");
746  case meanY:
747  return (addUnits ? "MeanY [cm]" : "meanY");
748  case meanZ:
749  return (addUnits ? "MeanZ [cm]" : "meanZ");
750  case sigmaX:
751  return (addUnits ? "#sigma_{X} [#mum]" : "sigmaX");
752  case sigmaY:
753  return (addUnits ? "#sigma_{Y} [#mum]" : "sigmaY");
754  case sigmaZ:
755  return (addUnits ? "#sigma_{Z} [cm]" : "sigmaZ");
756  case betaStar:
757  return (addUnits ? "#beta* [cm]" : "BetaStar");
758  case emittance:
759  return (addUnits ? "Emittance [cm]" : "Emittance");
760  case phi:
761  return (addUnits ? "Phi [rad]" : "Phi");
762  case alpha:
763  return (addUnits ? "Alpha [rad]" : "Alpha");
764  case timeOffset:
765  return (addUnits ? "TimeOffset [ns]" : "TimeOffset");
766  default:
767  return "should never be here";
768  }
769  }
#define X(str)
Definition: MuonsGrabber.cc:38