CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
FWBeamSpot Class Reference

#include <FWBeamSpot.h>

Public Member Functions

void checkBeamSpot (const edm::EventBase *event)
 
 FWBeamSpot ()
 
const reco::BeamSpotgetBeamSpot () const
 
double x0 () const
 
double x0Error () const
 
double y0 () const
 
double y0Error () const
 
double z0 () const
 
double z0Error () const
 
 ~FWBeamSpot ()
 

Private Attributes

const reco::BeamSpotm_beamspot
 

Detailed Description

Definition at line 14 of file FWBeamSpot.h.

Constructor & Destructor Documentation

FWBeamSpot::FWBeamSpot ( )
inline

Definition at line 17 of file FWBeamSpot.h.

17 : m_beamspot (0) {}
const reco::BeamSpot * m_beamspot
Definition: FWBeamSpot.h:32
FWBeamSpot::~FWBeamSpot ( )
inline

Definition at line 18 of file FWBeamSpot.h.

18 {}

Member Function Documentation

void FWBeamSpot::checkBeamSpot ( const edm::EventBase event)

Definition at line 5 of file FWBeamSpot.cc.

References edm::HandleBase::isValid(), m_beamspot, edm::Handle< T >::product(), and GlobalPosition_Frontier_DevDB_cff::tag.

Referenced by CmsShowMainBase::draw().

6 {
7  edm::InputTag tag("offlineBeamSpot");
9 
10  event->getByLabel(tag, spot);
11  if (spot.isValid())
12  {
13  m_beamspot = spot.product();
14  }
15  else
16  {
17  m_beamspot = 0;
18  }
19 }
const reco::BeamSpot * m_beamspot
Definition: FWBeamSpot.h:32
bool isValid() const
Definition: HandleBase.h:76
T const * product() const
Definition: Handle.h:74
const reco::BeamSpot* FWBeamSpot::getBeamSpot ( ) const
inline

Definition at line 29 of file FWBeamSpot.h.

References m_beamspot.

29 { return m_beamspot; }
const reco::BeamSpot * m_beamspot
Definition: FWBeamSpot.h:32
double FWBeamSpot::x0 ( ) const

Definition at line 21 of file FWBeamSpot.cc.

References m_beamspot, and reco::BeamSpot::x0().

Referenced by FWRPZView::eventBegin().

22 {
23  return m_beamspot ? m_beamspot->x0() : 0.0;
24 }
const reco::BeamSpot * m_beamspot
Definition: FWBeamSpot.h:32
double x0() const
x coordinate
Definition: BeamSpot.h:65
double FWBeamSpot::x0Error ( ) const

Definition at line 36 of file FWBeamSpot.cc.

References m_beamspot, and reco::BeamSpot::x0Error().

37 {
38  return m_beamspot ? m_beamspot->x0Error() : 0.0;
39 }
const reco::BeamSpot * m_beamspot
Definition: FWBeamSpot.h:32
double x0Error() const
error on x
Definition: BeamSpot.h:81
double FWBeamSpot::y0 ( ) const

Definition at line 26 of file FWBeamSpot.cc.

References m_beamspot, and reco::BeamSpot::y0().

Referenced by FWRPZView::eventBegin().

27 {
28  return m_beamspot ? m_beamspot->y0() : 0.0;
29 }
const reco::BeamSpot * m_beamspot
Definition: FWBeamSpot.h:32
double y0() const
y coordinate
Definition: BeamSpot.h:67
double FWBeamSpot::y0Error ( ) const

Definition at line 41 of file FWBeamSpot.cc.

References m_beamspot, and reco::BeamSpot::y0Error().

42 {
43  return m_beamspot ? m_beamspot->y0Error() : 0.0;
44 }
const reco::BeamSpot * m_beamspot
Definition: FWBeamSpot.h:32
double y0Error() const
error on y
Definition: BeamSpot.h:83
double FWBeamSpot::z0 ( ) const

Definition at line 31 of file FWBeamSpot.cc.

References m_beamspot, and reco::BeamSpot::z0().

Referenced by FWRPZView::eventBegin().

32 {
33  return m_beamspot ? m_beamspot->z0() : 0.0;
34 }
double z0() const
z coordinate
Definition: BeamSpot.h:69
const reco::BeamSpot * m_beamspot
Definition: FWBeamSpot.h:32
double FWBeamSpot::z0Error ( ) const

Definition at line 46 of file FWBeamSpot.cc.

References m_beamspot, and reco::BeamSpot::z0Error().

47 {
48  return m_beamspot ? m_beamspot->z0Error() : 0.0;
49 }
const reco::BeamSpot * m_beamspot
Definition: FWBeamSpot.h:32
double z0Error() const
error on z
Definition: BeamSpot.h:85

Member Data Documentation

const reco::BeamSpot* FWBeamSpot::m_beamspot
private

Definition at line 32 of file FWBeamSpot.h.

Referenced by checkBeamSpot(), getBeamSpot(), x0(), x0Error(), y0(), y0Error(), z0(), and z0Error().