ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
DisplacedJetBeamspotInfo Class Reference

#include <DisplacedJetBeamspotInfo.h>

Collaboration diagram for DisplacedJetBeamspotInfo:

Public Member Functions

 DisplacedJetBeamspotInfo (const InDet::BeamSpotData *beamspot=nullptr)
 
float sigmaX ()
 
float sigmaY ()
 
float sigmaXY ()
 

Private Member Functions

bool is_available ()
 

Private Attributes

const InDet::BeamSpotDatam_bs_data
 

Detailed Description

Definition at line 11 of file DisplacedJetBeamspotInfo.h.

Constructor & Destructor Documentation

◆ DisplacedJetBeamspotInfo()

DisplacedJetBeamspotInfo::DisplacedJetBeamspotInfo ( const InDet::BeamSpotData beamspot = nullptr)
inline

Definition at line 14 of file DisplacedJetBeamspotInfo.h.

14 : m_bs_data(beamspot) {}

Member Function Documentation

◆ is_available()

bool DisplacedJetBeamspotInfo::is_available ( )
inlineprivate

Definition at line 44 of file DisplacedJetBeamspotInfo.h.

44  {
45  if(m_bs_data == nullptr){
46  return false;
47  }
48 
49  //check if the beamspot info is valid and should be used
50  //info from https://twiki.cern.ch/twiki/bin/view/Atlas/CoolBeamSpotParameters
51  int beamSpotBitMap = m_bs_data->beamStatus();
52  bool isOnlineBeamspot = ((beamSpotBitMap & 0x4) == 0x4);
53 
54  //offline/mc -> assume to be valid
55  if(!isOnlineBeamspot){
56  return true;
57  }
58 
59  //check if the beamspot has converged
60  if((beamSpotBitMap&0x3) == 0x3){
61  //beamspot has converged
62  return true;
63  }
64 
65  return false;
66  }

◆ sigmaX()

float DisplacedJetBeamspotInfo::sigmaX ( )
inline

Definition at line 17 of file DisplacedJetBeamspotInfo.h.

17  {
18  if(!is_available()){
19  return 0.0;
20  }
21 
22  return m_bs_data->beamSigma(0);
23  }

◆ sigmaXY()

float DisplacedJetBeamspotInfo::sigmaXY ( )
inline

Definition at line 33 of file DisplacedJetBeamspotInfo.h.

33  {
34  if(!is_available()){
35  return 0.0;
36  }
37 
38  return m_bs_data->beamSigmaXY();
39  }

◆ sigmaY()

float DisplacedJetBeamspotInfo::sigmaY ( )
inline

Definition at line 25 of file DisplacedJetBeamspotInfo.h.

25  {
26  if(!is_available()){
27  return 0.0;
28  }
29 
30  return m_bs_data->beamSigma(1);
31  }

Member Data Documentation

◆ m_bs_data

const InDet::BeamSpotData* DisplacedJetBeamspotInfo::m_bs_data
private

Definition at line 42 of file DisplacedJetBeamspotInfo.h.


The documentation for this class was generated from the following file:
DisplacedJetBeamspotInfo::is_available
bool is_available()
Definition: DisplacedJetBeamspotInfo.h:44
InDet::BeamSpotData::beamSigmaXY
float beamSigmaXY() const noexcept
Definition: BeamSpotData.h:72
DisplacedJetBeamspotInfo::m_bs_data
const InDet::BeamSpotData * m_bs_data
Definition: DisplacedJetBeamspotInfo.h:42
InDet::BeamSpotData::beamStatus
int beamStatus() const noexcept
Definition: BeamSpotData.h:76
InDet::BeamSpotData::beamSigma
float beamSigma(int i) const noexcept
Returns the beam sigma for the i-th error matrix element.
Definition: BeamSpotData.h:70