CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
BeamSpotPI::BeamSpot_timehistory< my_param, PayloadType > Class Template Reference

#include <BeamSpotPayloadInspectorHelper.h>

Inheritance diagram for BeamSpotPI::BeamSpot_timehistory< my_param, PayloadType >:
cond::payloadInspector::TimeHistoryPlot< PayloadType, std::pair< double, double > > cond::payloadInspector::Plot2D< PayloadType, std::tuple< unsigned long long, std::string >, std::pair< double, double >, MULTI_IOV, 1 > cond::payloadInspector::PlotImpl< IOV_M, NTAGS > cond::payloadInspector::PlotBase

Public Member Functions

 BeamSpot_timehistory ()
 
std::pair< double, double > getFromPayload (PayloadType &payload) override
 
- Public Member Functions inherited from cond::payloadInspector::TimeHistoryPlot< PayloadType, std::pair< double, double > >
bool fill () override
 
 TimeHistoryPlot (const std::string &title, const std::string &yLabel)
 
 ~TimeHistoryPlot () override=default
 
- Public Member Functions inherited from cond::payloadInspector::Plot2D< PayloadType, std::tuple< unsigned long long, 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::TimeHistoryPlot< PayloadType, std::pair< double, double > >
typedef Plot2D< PayloadType,
std::tuple< unsigned long long,
std::string >, std::pair
< double, double >, MULTI_IOV, 1 > 
Base
 
- Public Types inherited from cond::payloadInspector::Plot2D< PayloadType, std::tuple< unsigned long long, 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< unsigned long long, std::string >, std::pair< double, double >, MULTI_IOV, 1 >
std::vector< std::tuple
< std::tuple< unsigned long
long, 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_timehistory< my_param, PayloadType >

Definition at line 166 of file BeamSpotPayloadInspectorHelper.h.

Constructor & Destructor Documentation

template<parameters my_param, class PayloadType >
BeamSpotPI::BeamSpot_timehistory< my_param, PayloadType >::BeamSpot_timehistory ( )
inline

Member Function Documentation

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

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

Definition at line 172 of file BeamSpotPayloadInspectorHelper.h.

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

172  {
173  auto ret = std::make_pair<double, double>(-9999., -9999.);
174 
175  switch (my_param) {
176  case X:
177  return std::make_pair<double, double>(payload.GetX(), payload.GetXError());
178  case Y:
179  return std::make_pair<double, double>(payload.GetY(), payload.GetYError());
180  case Z:
181  return std::make_pair<double, double>(payload.GetZ(), payload.GetZError());
182  case sigmaX:
183  return std::make_pair<double, double>(payload.GetBeamWidthX(), payload.GetBeamWidthXError());
184  case sigmaY:
185  return std::make_pair<double, double>(payload.GetBeamWidthY(), payload.GetBeamWidthYError());
186  case sigmaZ:
187  return std::make_pair<double, double>(payload.GetSigmaZ(), payload.GetSigmaZError());
188  case dxdz:
189  return std::make_pair<double, double>(payload.Getdxdz(), payload.GetdxdzError());
190  case dydz:
191  return std::make_pair<double, double>(payload.Getdydz(), payload.GetdydzError());
192  case END_OF_TYPES:
193  return ret;
194  default:
195  return ret;
196  }
197  }
tuple ret
prodAgent to be discontinued