CMS 3D CMS Logo

List of all members | Public Member Functions
beamSpotPI::BeamSpot_runhistory< my_param, PayloadType > Class Template Reference

#include <BeamSpotPayloadInspectorHelper.h>

Inheritance diagram for beamSpotPI::BeamSpot_runhistory< my_param, PayloadType >:
cond::payloadInspector::RunHistoryPlot< PayloadType, std::pair< double, double > > cond::payloadInspector::Plot2D< PayloadType, std::tuple< float, std::string >, std::pair< double, double >, MULTI_IOV, 1 > cond::payloadInspector::PlotImpl< IOV_M, NTAGS > cond::payloadInspector::PlotBase

Public Member Functions

 BeamSpot_runhistory ()
 
std::pair< double, double > getFromPayload (PayloadType &payload) override
 
- Public Member Functions inherited from cond::payloadInspector::RunHistoryPlot< PayloadType, std::pair< double, double > >
bool fill () override
 
 RunHistoryPlot (const std::string &title, const std::string &yLabel)
 
 ~RunHistoryPlot () override=default
 
- Public Member Functions inherited from cond::payloadInspector::Plot2D< PayloadType, std::tuple< float, std::string >, std::pair< double, double >, MULTI_IOV, 1 >
std::shared_ptr< PayloadType > fetchPayload (const cond::Hash &payloadHash)
 
 Plot2D (const std::string &type, const std::string &title, const std::string xLabel, const std::string &yLabel)
 
std::string serializeData () override
 
 ~Plot2D () override=default
 
- Public Member Functions inherited from cond::payloadInspector::PlotImpl< IOV_M, NTAGS >
 PlotImpl (const std::string &type, const std::string &title)
 
std::string processData () override
 
 ~PlotImpl () override=default
 
- Public Member Functions inherited from cond::payloadInspector::PlotBase
void addInputParam (const std::string &paramName)
 
cond::persistency::Session dbSession ()
 
template<typename PayloadType >
std::shared_ptr< PayloadType > fetchPayload (const cond::Hash &payloadHash)
 
template<int index>
TagReference getTag ()
 
cond::Tag_t getTagInfo (const std::string &tag)
 
virtual void init ()
 
const std::map< std::string, std::string > & inputParamValues () const
 
bool isSingleIov () const
 
bool isTwoTags () const
 
unsigned int ntags () const
 
std::string payloadType () const
 
 PlotBase ()
 
std::string title () const
 
std::string type () const
 
virtual ~PlotBase ()=default
 

Additional Inherited Members

- Public Types inherited from cond::payloadInspector::RunHistoryPlot< PayloadType, std::pair< double, double > >
typedef Plot2D< PayloadType, std::tuple< float, std::string >, std::pair< double, double >, MULTI_IOV, 1 > Base
 
- Public Types inherited from cond::payloadInspector::Plot2D< PayloadType, std::tuple< float, std::string >, std::pair< double, double >, MULTI_IOV, 1 >
typedef PlotImpl< IOV_M, NTAGS > Base
 
- Protected Attributes inherited from cond::payloadInspector::Plot2D< PayloadType, std::tuple< float, std::string >, std::pair< double, double >, MULTI_IOV, 1 >
std::vector< std::tuple< std::tuple< float, std::string >, std::pair< double, double > > > m_plotData
 
- Protected Attributes inherited from cond::payloadInspector::PlotBase
std::set< std::string > m_inputParams
 
std::map< std::string, std::string > m_inputParamValues
 
PlotAnnotations m_plotAnnotations
 
std::vector< std::pair< cond::Time_t, cond::Time_t > > m_tagBoundaries
 
std::vector< std::vector< std::tuple< cond::Time_t, cond::Hash > > > m_tagIovs
 
std::vector< std::string > m_tagNames
 

Detailed Description

template<parameters my_param, class PayloadType>
class beamSpotPI::BeamSpot_runhistory< my_param, PayloadType >

Definition at line 218 of file BeamSpotPayloadInspectorHelper.h.

Constructor & Destructor Documentation

◆ BeamSpot_runhistory()

template<parameters my_param, class PayloadType >
beamSpotPI::BeamSpot_runhistory< my_param, PayloadType >::BeamSpot_runhistory ( )
inline

Definition at line 220 of file BeamSpotPayloadInspectorHelper.h.

222  getStringFromParamEnum(my_param) + " vs run number", getStringFromParamEnum(my_param)) {}
std::string getStringFromParamEnum(const parameters &parameter, const bool addUnits=false)

Member Function Documentation

◆ getFromPayload()

template<parameters my_param, class PayloadType >
std::pair<double, double> beamSpotPI::BeamSpot_runhistory< my_param, PayloadType >::getFromPayload ( PayloadType &  payload)
inlineoverridevirtual

Implements cond::payloadInspector::RunHistoryPlot< PayloadType, std::pair< double, double > >.

Definition at line 224 of file BeamSpotPayloadInspectorHelper.h.

References beamSpotPI::dxdz, beamSpotPI::dydz, beamSpotPI::END_OF_TYPES, jetsAK4_Puppi_cff::payload, runTheMatrix::ret, beamSpotPI::sigmaX, beamSpotPI::sigmaY, beamSpotPI::sigmaZ, beamSpotPI::X, beamSpotPI::Y, and beamSpotPI::Z.

224  {
225  auto ret = std::make_pair<double, double>(-9999., -9999.);
226 
227  switch (my_param) {
228  case X:
229  return std::make_pair<double, double>(payload.x(), payload.xError());
230  case Y:
231  return std::make_pair<double, double>(payload.y(), payload.yError());
232  case Z:
233  return std::make_pair<double, double>(payload.z(), payload.zError());
234  case sigmaX:
235  return std::make_pair<double, double>(payload.beamWidthX(), payload.beamWidthXError());
236  case sigmaY:
237  return std::make_pair<double, double>(payload.beamWidthY(), payload.beamWidthYError());
238  case sigmaZ:
239  return std::make_pair<double, double>(payload.sigmaZ(), payload.sigmaZError());
240  case dxdz:
241  return std::make_pair<double, double>(payload.dxdz(), payload.dxdzError());
242  case dydz:
243  return std::make_pair<double, double>(payload.dydz(), payload.dydzError());
244  case END_OF_TYPES:
245  return ret;
246  default:
247  return ret;
248  }
249  }
ret
prodAgent to be discontinued