CMS 3D CMS Logo

List of all members | Public Member Functions
RPShift_History< rp, sh, unc, PayloadType > Class Template Reference

#include <CTPPSRPAlignmentCorrectionsDataHelper.h>

Inheritance diagram for RPShift_History< rp, sh, unc, 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

uint decodeRP (uint r)
 
float getFromPayload (PayloadType &payload) override
 
 RPShift_History ()
 
- 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<CTPPSRPAlignment::RP rp, CTPPSRPAlignment::Shift sh, bool unc, class PayloadType>
class RPShift_History< rp, sh, unc, PayloadType >

Definition at line 67 of file CTPPSRPAlignmentCorrectionsDataHelper.h.

Constructor & Destructor Documentation

◆ RPShift_History()

template<CTPPSRPAlignment::RP rp, CTPPSRPAlignment::Shift sh, bool unc, class PayloadType >
RPShift_History< rp, sh, unc, PayloadType >::RPShift_History ( )
inline

Member Function Documentation

◆ decodeRP()

template<CTPPSRPAlignment::RP rp, CTPPSRPAlignment::Shift sh, bool unc, class PayloadType >
uint RPShift_History< rp, sh, unc, PayloadType >::decodeRP ( uint  r)
inline

◆ getFromPayload()

template<CTPPSRPAlignment::RP rp, CTPPSRPAlignment::Shift sh, bool unc, class PayloadType >
float RPShift_History< rp, sh, unc, PayloadType >::getFromPayload ( PayloadType &  payload)
inlineoverridevirtual

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

Definition at line 90 of file CTPPSRPAlignmentCorrectionsDataHelper.h.

References JetHT_cfg::configuration, RPShift_History< rp, sh, unc, PayloadType >::decodeRP(), and jetsAK4_Puppi_cff::payload.

90  {
91  for (auto& configuration : payload.getRPMap()) {
92  if (decodeRP(configuration.first) == rp) {
93  if (unc) {
94  if (sh == 1)
95  return configuration.second.getShXUnc();
96  if (sh == 2)
97  return configuration.second.getShYUnc();
98  } else {
99  if (sh == 1)
100  return configuration.second.getShX();
101  if (sh == 2)
102  return configuration.second.getShY();
103  }
104  }
105  }
106  if (unc)
107  return -1;
108  return 0;
109  }
dictionary configuration
Definition: JetHT_cfg.py:38