CMS 3D CMS Logo

List of all members | Public Member Functions
ParametersPerRun< param, PayloadType > Class Template Reference

#include <PPSTimingCalibrationPayloadInspectorHelper.h>

Inheritance diagram for ParametersPerRun< param, PayloadType >:
cond::payloadInspector::HistoryPlot< PayloadType, float > cond::payloadInspector::Plot2D< PayloadType, unsigned long long, float, MULTI_IOV, 1 > cond::payloadInspector::PlotImpl< IOV_M, NTAGS > cond::payloadInspector::PlotBase

Public Member Functions

float getFromPayload (PayloadType &payload) override
 
 ParametersPerRun ()
 
- Public Member Functions inherited from cond::payloadInspector::HistoryPlot< PayloadType, float >
bool fill () override
 
 HistoryPlot (const std::string &title, const std::string &yLabel)
 
 ~HistoryPlot () override=default
 
- Public Member Functions inherited from cond::payloadInspector::Plot2D< PayloadType, unsigned long long, float, 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::HistoryPlot< PayloadType, float >
typedef Plot2D< PayloadType, unsigned long long, float, MULTI_IOV, 1 > Base
 
- Public Types inherited from cond::payloadInspector::Plot2D< PayloadType, unsigned long long, float, MULTI_IOV, 1 >
typedef PlotImpl< IOV_M, NTAGS > Base
 
- Protected Attributes inherited from cond::payloadInspector::Plot2D< PayloadType, unsigned long long, float, MULTI_IOV, 1 >
std::vector< std::tuple< unsigned long long, float > > 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<PPSTimingCalibrationPI::parameter param, class PayloadType>
class ParametersPerRun< param, PayloadType >

Definition at line 49 of file PPSTimingCalibrationPayloadInspectorHelper.h.

Constructor & Destructor Documentation

◆ ParametersPerRun()

template<PPSTimingCalibrationPI::parameter param, class PayloadType >
ParametersPerRun< param, PayloadType >::ParametersPerRun ( )
inline

Definition at line 51 of file PPSTimingCalibrationPayloadInspectorHelper.h.

References cond::payloadInspector::PlotBase::addInputParam(), PPSTimingCalibrationPI::ARM, PPSTimingCalibrationPI::CHANNEL, PPSTimingCalibrationPI::PLANE, and PPSTimingCalibrationPI::STATION.

Member Function Documentation

◆ getFromPayload()

template<PPSTimingCalibrationPI::parameter param, class PayloadType >
float ParametersPerRun< param, PayloadType >::getFromPayload ( PayloadType &  payload)
inlineoverridevirtual

Implements cond::payloadInspector::HistoryPlot< PayloadType, float >.

Definition at line 61 of file PPSTimingCalibrationPayloadInspectorHelper.h.

References PPSTimingCalibrationPI::ARM, PPSTimingCalibrationPI::CHANNEL, dqmiodatasetharvest::db, cond::payloadInspector::PlotBase::inputParamValues(), jetsAK4_Puppi_cff::payload, PPSTimingCalibrationPI::PLANE, PPSTimingCalibrationPI::STATION, and relativeConstraints::station.

61  {
63  auto db = paramValues.find(PPSTimingCalibrationPI::ARM)->second;
64  auto station = paramValues.find(PPSTimingCalibrationPI::STATION)->second;
65  auto plane = paramValues.find(PPSTimingCalibrationPI::PLANE)->second;
66  auto channel = paramValues.find(PPSTimingCalibrationPI::CHANNEL)->second;
67 
68  return payload.parameters(std::stoi(db), std::stoi(station), std::stoi(plane), std::stoi(channel))[param];
69  }
const std::map< std::string, std::string > & inputParamValues() const