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)
 
std::string data () const
 
cond::persistency::Session dbSession ()
 
bool exec_process (const std::string &connectionString, const std::vector< std::tuple< std::string, cond::Time_t, cond::Time_t >> &tagsWithTimeBoundaries)
 
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 ()
 
boost::python::list inputParams () const
 
const std::map< std::string, std::string > & inputParamValues () const
 
bool isSingleIov () const
 
bool isTwoTags () const
 
unsigned int ntags () const
 
std::string payloadType () const
 
 PlotBase ()
 
bool process (const std::string &connectionString, const boost::python::list &tagsWithTimeBoundaries)
 
void setInputParamValues (const boost::python::dict &values)
 
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 114 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 117 of file BeamSpotPayloadInspectorHelper.h.

117  :
119  : cond::payloadInspector::RunHistoryPlot<PayloadType, std::pair<double, double> >(

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 121 of file BeamSpotPayloadInspectorHelper.h.

122  {
123  auto ret = std::make_pair<double, double>(-9999., -9999.);
124 
125  switch (my_param) {
126  case X:
127  return std::make_pair<double, double>(payload.GetX(), payload.GetXError());
128  case Y:
129  return std::make_pair<double, double>(payload.GetY(), payload.GetYError());
130  case Z:
131  return std::make_pair<double, double>(payload.GetZ(), payload.GetZError());
132  case sigmaX:
133  return std::make_pair<double, double>(payload.GetBeamWidthX(), payload.GetBeamWidthXError());
134  case sigmaY:
135  return std::make_pair<double, double>(payload.GetBeamWidthY(), payload.GetBeamWidthYError());
136  case sigmaZ:
137  return std::make_pair<double, double>(payload.GetSigmaZ(), payload.GetSigmaZError());
138  case dxdz:
139  return std::make_pair<double, double>(payload.Getdxdz(), payload.GetdxdzError());
140  case dydz:
141  return std::make_pair<double, double>(payload.Getdydz(), payload.GetdydzError());
142  case END_OF_TYPES:
143  return ret;
144  default:
145  return ret;
146  }

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

runTheMatrix.ret
ret
prodAgent to be discontinued
Definition: runTheMatrix.py:542
BeamSpotPI::sigmaX
Definition: BeamSpotPayloadInspectorHelper.h:34
BeamSpotPI::X
Definition: BeamSpotPayloadInspectorHelper.h:31
BeamSpotPI::sigmaZ
Definition: BeamSpotPayloadInspectorHelper.h:36
cond::payloadInspector::RunHistoryPlot< PayloadType, std::pair< double, double > >::RunHistoryPlot
RunHistoryPlot(const std::string &title, const std::string &yLabel)
Definition: PayloadInspector.h:557
BeamSpotPI::BeamSpot_runhistory::BeamSpot_runhistory
BeamSpot_runhistory()
Definition: BeamSpotPayloadInspectorHelper.h:117
BeamSpotPI::dxdz
Definition: BeamSpotPayloadInspectorHelper.h:37
jets_cff.payload
payload
Definition: jets_cff.py:32
BeamSpotPI::sigmaY
Definition: BeamSpotPayloadInspectorHelper.h:35
cond
Definition: plugin.cc:23
BeamSpotPI::END_OF_TYPES
Definition: BeamSpotPayloadInspectorHelper.h:45
BeamSpotPI::dydz
Definition: BeamSpotPayloadInspectorHelper.h:38
std
Definition: JetResolutionObject.h:76
BeamSpotPI::Y
Definition: BeamSpotPayloadInspectorHelper.h:32
BeamSpotPI::Z
Definition: BeamSpotPayloadInspectorHelper.h:33