CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
alcabeammonitor::pvPosAndErr Struct Reference

#include <AlcaBeamMonitor.h>

Public Member Functions

 pvPosAndErr (const reco::Vertex &vertex)
 
std::pair< double, double > xWithError () const
 
std::pair< double, double > yWithError () const
 
std::pair< double, double > zWithError () const
 

Public Attributes

std::array< std::pair< double, double >, 3 > data
 

Detailed Description

Definition at line 35 of file AlcaBeamMonitor.h.

Constructor & Destructor Documentation

◆ pvPosAndErr()

alcabeammonitor::pvPosAndErr::pvPosAndErr ( const reco::Vertex vertex)
inline

Definition at line 40 of file AlcaBeamMonitor.h.

References bphysicsOniaDQM_cfi::vertex.

41  : data{{{vertex.x(), vertex.xError()}, {vertex.y(), vertex.yError()}, {vertex.z(), vertex.zError()}}} {}
std::array< std::pair< double, double >, 3 > data

Member Function Documentation

◆ xWithError()

std::pair<double, double> alcabeammonitor::pvPosAndErr::xWithError ( ) const
inline

Definition at line 44 of file AlcaBeamMonitor.h.

References data.

44 { return data[0]; }
std::array< std::pair< double, double >, 3 > data

◆ yWithError()

std::pair<double, double> alcabeammonitor::pvPosAndErr::yWithError ( ) const
inline

Definition at line 45 of file AlcaBeamMonitor.h.

References data.

45 { return data[1]; }
std::array< std::pair< double, double >, 3 > data

◆ zWithError()

std::pair<double, double> alcabeammonitor::pvPosAndErr::zWithError ( ) const
inline

Definition at line 46 of file AlcaBeamMonitor.h.

References data.

46 { return data[2]; }
std::array< std::pair< double, double >, 3 > data

Member Data Documentation

◆ data

std::array<std::pair<double, double>, 3> alcabeammonitor::pvPosAndErr::data