ATLAS Offline Software
Loading...
Searching...
No Matches
T2BeamSpot.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5//
6// $Id: T2BeamSpot.cxx 744847 2016-05-04 15:12:00Z smh $
7//
8
9#include "T2BeamSpot.h"
11
12namespace PESA
13{
14
15 std::ostream& operator<<( std::ostream& os, const T2BeamSpot& beamSpot )
16 {
17 os
18 << " status = " << beamSpot.status()
19 << ", x0 = " << beamSpot.posX()
20 << ", y0 = " << beamSpot.posY()
21 << ", z0 = " << beamSpot.posZ()
22 << ", sigmaX = " << beamSpot.sigmaX()
23 << ", sigmaY = " << beamSpot.sigmaY()
24 << ", sigmaZ = " << beamSpot.sigmaZ()
25 << ", tiltX = " << beamSpot.tiltX()
26 << ", tiltY = " << beamSpot.tiltY()
27 << ", sigmaXY = " << beamSpot.sigmaXY()
28 ;
29 return os;
30 }
31
33 : m_status ( 0 )
34 , m_posX ( 0. )
35 , m_posY ( 0. )
36 , m_posZ ( 0. )
37 , m_sigmaX ( 0. )
38 , m_sigmaY ( 0. )
39 , m_sigmaZ ( 0. )
40 , m_tiltX ( 0. )
41 , m_tiltY ( 0. )
42 , m_sigmaXY( 0. ){
43 if(beamspotdata == nullptr) return;
44 m_status = beamspotdata->beamStatus();
45 m_posX = beamspotdata->beamPos().x();
46 m_posY = beamspotdata->beamPos().y();
47 m_posZ = beamspotdata->beamPos().z();
48 m_sigmaX = beamspotdata->beamSigma(0);
49 m_sigmaY = beamspotdata->beamSigma(1);
50 m_sigmaZ = beamspotdata->beamSigma(2);
51 m_tiltX = beamspotdata->beamTilt(0);
52 m_tiltY = beamspotdata->beamTilt(1);
53 m_sigmaXY = 0.; // FIXME: fill this in
54 }
55
56}
#define y
#define x
#define z
float beamTilt(int i) const noexcept
Returns the beam sigma for the i+3-th error matrix element (the 'tilt')
float beamSigma(int i) const noexcept
Returns the beam sigma for the i-th error matrix element.
int beamStatus() const noexcept
const Amg::Vector3D & beamPos() const noexcept
T2BeamSpot(const InDet::BeamSpotData *)
unsigned m_status
Definition T2BeamSpot.h:51
Local tools.
Definition idx.h:9
std::ostream & operator<<(std::ostream &os, const T2BeamSpot &beamSpot)