ATLAS Offline Software
Loading...
Searching...
No Matches
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) {}
const InDet::BeamSpotData * m_bs_data

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: