ATLAS Offline Software
Loading...
Searching...
No Matches
T2BeamSpot.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 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#include <iostream>
12
13namespace PESA
14{
15
16 std::ostream& operator<<( std::ostream& os, const T2BeamSpot& beamSpot )
17 {
18 os
19 << " status = " << beamSpot.status()
20 << ", x0 = " << beamSpot.posX()
21 << ", y0 = " << beamSpot.posY()
22 << ", z0 = " << beamSpot.posZ()
23 << ", sigmaX = " << beamSpot.sigmaX()
24 << ", sigmaY = " << beamSpot.sigmaY()
25 << ", sigmaZ = " << beamSpot.sigmaZ()
26 << ", tiltX = " << beamSpot.tiltX()
27 << ", tiltY = " << beamSpot.tiltY()
28 << ", sigmaXY = " << beamSpot.sigmaXY()
29 ;
30 return os;
31 }
32
34 {
35 if(beamspotdata == nullptr) return;
36 m_status = beamspotdata->beamStatus();
37 m_posX = beamspotdata->beamPos().x();
38 m_posY = beamspotdata->beamPos().y();
39 m_posZ = beamspotdata->beamPos().z();
40 m_sigmaX = beamspotdata->beamSigma(0);
41 m_sigmaY = beamspotdata->beamSigma(1);
42 m_sigmaZ = beamspotdata->beamSigma(2);
43 m_tiltX = beamspotdata->beamTilt(0);
44 m_tiltY = beamspotdata->beamTilt(1);
45 m_sigmaXY = 0.; // FIXME: fill this in
46 }
47
48}
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)