CMS 3D CMS Logo

List of all members | Public Member Functions | Private Types | Private Attributes
simBeamSpotHLLHCPI::SimBSHLLHCParamsHelper< PayloadType > Class Template Reference

#include <BeamSpotPayloadInspectorHelper.h>

Public Member Functions

const bshelpdata centralValues () const
 
const bshelpdata diffCentralValues (const SimBSHLLHCParamsHelper &bs2, const bool isPull=false) const
 
void printDebug (std::stringstream &ss)
 
 SimBSHLLHCParamsHelper (const std::shared_ptr< PayloadType > &bs)
 

Private Types

typedef std::array< double, parameters::END_OF_TYPESbshelpdata
 

Private Attributes

bshelpdata m_values
 

Detailed Description

template<class PayloadType>
class simBeamSpotHLLHCPI::SimBSHLLHCParamsHelper< PayloadType >

Helper class for operations on the Sim Beam Spot HL-LHC Parameters It's a simplified representation of the beamspot data used as the underlying type for data transfers and comparisons

Definition at line 1141 of file BeamSpotPayloadInspectorHelper.h.

Member Typedef Documentation

◆ bshelpdata

template<class PayloadType >
typedef std::array<double, parameters::END_OF_TYPES> simBeamSpotHLLHCPI::SimBSHLLHCParamsHelper< PayloadType >::bshelpdata
private

Definition at line 1142 of file BeamSpotPayloadInspectorHelper.h.

Constructor & Destructor Documentation

◆ SimBSHLLHCParamsHelper()

template<class PayloadType >
simBeamSpotHLLHCPI::SimBSHLLHCParamsHelper< PayloadType >::SimBSHLLHCParamsHelper ( const std::shared_ptr< PayloadType > &  bs)
inline

Definition at line 1145 of file BeamSpotPayloadInspectorHelper.h.

References simBeamSpotHLLHCPI::betaCrossingPlane, simBeamSpotHLLHCPI::betaSeparationPlane, cms::cuda::bs, simBeamSpotHLLHCPI::bunchLenght, simBeamSpotHLLHCPI::crabbingAngleCrossing, simBeamSpotHLLHCPI::crabbingAngleSeparation, simBeamSpotHLLHCPI::crabFrequency, simBeamSpotHLLHCPI::crossingAngle, simBeamSpotHLLHCPI::eProton, simBeamSpotHLLHCPI::horizontalEmittance, simBeamSpotHLLHCPI::SimBSHLLHCParamsHelper< PayloadType >::m_values, simBeamSpotHLLHCPI::meanX, simBeamSpotHLLHCPI::meanY, simBeamSpotHLLHCPI::meanZ, simBeamSpotHLLHCPI::rf800, simBeamSpotHLLHCPI::timeOffset, and simBeamSpotHLLHCPI::verticalEmittance.

1145  {
1146  // fill in the values
1147  m_values[parameters::meanX] = bs->meanX();
1148  m_values[parameters::meanY] = bs->meanY();
1149  m_values[parameters::meanZ] = bs->meanZ();
1150  m_values[parameters::eProton] = bs->eProton();
1151  m_values[parameters::crabFrequency] = bs->crabFrequency();
1152  m_values[parameters::rf800] = bs->rf800();
1153  m_values[parameters::crossingAngle] = bs->crossingAngle();
1154  m_values[parameters::crabbingAngleCrossing] = bs->crabbingAngleCrossing();
1155  m_values[parameters::crabbingAngleSeparation] = bs->crabbingAngleSeparation();
1156  m_values[parameters::betaCrossingPlane] = bs->betaCrossingPlane();
1157  m_values[parameters::betaSeparationPlane] = bs->betaSeparationPlane();
1158  m_values[parameters::horizontalEmittance] = bs->horizontalEmittance();
1159  m_values[parameters::verticalEmittance] = bs->verticalEmittance();
1160  m_values[parameters::bunchLenght] = bs->bunchLenght();
1161  m_values[parameters::timeOffset] = bs->timeOffset();
1162  }

Member Function Documentation

◆ centralValues()

template<class PayloadType >
const bshelpdata simBeamSpotHLLHCPI::SimBSHLLHCParamsHelper< PayloadType >::centralValues ( ) const
inline

◆ diffCentralValues()

template<class PayloadType >
const bshelpdata simBeamSpotHLLHCPI::SimBSHLLHCParamsHelper< PayloadType >::diffCentralValues ( const SimBSHLLHCParamsHelper< PayloadType > &  bs2,
const bool  isPull = false 
) const
inline

◆ printDebug()

template<class PayloadType >
void simBeamSpotHLLHCPI::SimBSHLLHCParamsHelper< PayloadType >::printDebug ( std::stringstream &  ss)
inline

Member Data Documentation

◆ m_values

template<class PayloadType >
bshelpdata simBeamSpotHLLHCPI::SimBSHLLHCParamsHelper< PayloadType >::m_values
private