ATLAS Offline Software
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 
12 namespace 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 }
PESA::T2BeamSpot::m_sigmaZ
double m_sigmaZ
Definition: T2BeamSpot.h:57
T2BeamSpot.h
PESA::operator<<
std::ostream & operator<<(std::ostream &os, const T2BeamSpot &beamSpot)
Definition: T2BeamSpot.cxx:15
PESA::T2BeamSpot::m_status
unsigned m_status
Definition: T2BeamSpot.h:51
PESA::T2BeamSpot::m_sigmaX
double m_sigmaX
Definition: T2BeamSpot.h:55
PESA
Local tools.
Definition: T2BeamSpot.cxx:13
PESA::T2BeamSpot
Definition: T2BeamSpot.h:32
PESA::T2BeamSpot::m_sigmaY
double m_sigmaY
Definition: T2BeamSpot.h:56
PESA::T2BeamSpot::m_posZ
double m_posZ
Definition: T2BeamSpot.h:54
PESA::T2BeamSpot::m_posY
double m_posY
Definition: T2BeamSpot.h:53
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
InDet::BeamSpotData::beamPos
const Amg::Vector3D & beamPos() const noexcept
Definition: BeamSpotData.h:68
PESA::T2BeamSpot::T2BeamSpot
T2BeamSpot(const InDet::BeamSpotData *)
Definition: T2BeamSpot.cxx:32
InDet::BeamSpotData
Definition: BeamSpotData.h:21
PESA::T2BeamSpot::m_sigmaXY
double m_sigmaXY
Definition: T2BeamSpot.h:60
PESA::T2BeamSpot::m_tiltY
double m_tiltY
Definition: T2BeamSpot.h:59
python.BuildSignatureFlags.beamSpot
AthConfigFlags beamSpot(AthConfigFlags flags, str instanceName, str recoMode)
Definition: BuildSignatureFlags.py:454
BeamSpotData.h
InDet::BeamSpotData::beamStatus
int beamStatus() const noexcept
Definition: BeamSpotData.h:76
PESA::T2BeamSpot::m_tiltX
double m_tiltX
Definition: T2BeamSpot.h:58
PESA::T2BeamSpot::m_posX
double m_posX
Definition: T2BeamSpot.h:52
InDet::BeamSpotData::beamTilt
float beamTilt(int i) const noexcept
Returns the beam sigma for the i+3-th error matrix element (the 'tilt')
Definition: BeamSpotData.h:74
InDet::BeamSpotData::beamSigma
float beamSigma(int i) const noexcept
Returns the beam sigma for the i-th error matrix element.
Definition: BeamSpotData.h:70