ATLAS Offline Software
Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
MuonHough::PhiHit Struct Reference

struct containing all hit information needed for the Hough transform More...

#include <Hit.h>

Collaboration diagram for MuonHough::PhiHit:

Public Member Functions

 PhiHit (int layer_, float r_, float phimin_, float phimax_, float w_, HitDebugInfo *d_=0, const Trk::PrepRawData *prd_=0, const Muon::TgcClusterObj3D *tgc_=0)
 constructor, takes ownership of the HitDebugInfo pointer More...
 
 ~PhiHit ()
 destructor More...
 
 PhiHit (const PhiHit &h_)
 copy constructor More...
 
 PhiHit (PhiHit &&h_) noexcept=default
 
PhiHitoperator= (const PhiHit &h_)
 =operator More...
 
const HitDebugInfodebugInfo () const
 weight of the hit More...
 
HitDebugInfodebugInfo ()
 

Public Attributes

int layer {UNINITIALIZED}
 
float r {UNINITIALIZED}
 layer identifier (packed word containing technology/sublayer) More...
 
float phimin {UNINITIALIZED}
 global hit position (x=r in barrel, x=z in endcap) More...
 
float phimax {UNINITIALIZED}
 minimum value of the hit in the precision coordinate (y=z in barrel, y=r in endcap) More...
 
float w {UNINITIALIZED}
 maximum value of the hit in the precision coordinate (y=z in barrel, y=r in endcap) More...
 
const Trk::PrepRawDataprd {nullptr}
 access to assiciated hit, either the prd or the tgc pointer is set in athena More...
 
const Muon::TgcClusterObj3Dtgc {nullptr}
 

Static Public Attributes

static constexpr int UNINITIALIZED = HitDebugInfo::UNINITIALIZED
 

Private Member Functions

void copy (const PhiHit &hit)
 pointer to debug information More...
 

Private Attributes

std::unique_ptr< HitDebugInfom_debug {nullptr}
 

Detailed Description

struct containing all hit information needed for the Hough transform

Definition at line 99 of file MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h.

Constructor & Destructor Documentation

◆ PhiHit() [1/3]

MuonHough::PhiHit::PhiHit ( int  layer_,
float  r_,
float  phimin_,
float  phimax_,
float  w_,
HitDebugInfo d_ = 0,
const Trk::PrepRawData prd_ = 0,
const Muon::TgcClusterObj3D tgc_ = 0 
)

constructor, takes ownership of the HitDebugInfo pointer

Definition at line 43 of file Hit.cxx.

44  :
45  layer(layer_), r(r_), phimin(phimin_), phimax(phimax_), w(w_), prd(prd_), tgc(tgc_), m_debug(d_) {}

◆ ~PhiHit()

MuonHough::PhiHit::~PhiHit ( )
default

destructor

◆ PhiHit() [2/3]

MuonHough::PhiHit::PhiHit ( const PhiHit h_)

copy constructor

Definition at line 49 of file Hit.cxx.

49 { copy(h_); }

◆ PhiHit() [3/3]

MuonHough::PhiHit::PhiHit ( PhiHit &&  h_)
defaultnoexcept

Member Function Documentation

◆ copy()

void MuonHough::PhiHit::copy ( const PhiHit hit)
private

pointer to debug information

copy function for internal use

Definition at line 58 of file Hit.cxx.

58  {
59  layer = hit.layer;
60  r = hit.r;
61  phimin = hit.phimin;
62  phimax = hit.phimax;
63  w = hit.w;
64  if (hit.m_debug)
65  m_debug = std::make_unique< HitDebugInfo>(*hit.m_debug);
66  else
67  m_debug.reset();
68  prd = hit.prd;
69  tgc = hit.tgc;
70  }

◆ debugInfo() [1/2]

HitDebugInfo* MuonHough::PhiHit::debugInfo ( )
inline

◆ debugInfo() [2/2]

const HitDebugInfo* MuonHough::PhiHit::debugInfo ( ) const
inline

weight of the hit

access to debug information

Definition at line 122 of file MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h.

122 { return m_debug.get(); }

◆ operator=()

PhiHit & MuonHough::PhiHit::operator= ( const PhiHit h_)

=operator

Definition at line 51 of file Hit.cxx.

51  {
52  if (&h_ != this) {
53  copy(h_);
54  }
55  return *this;
56  }

Member Data Documentation

◆ layer

int MuonHough::PhiHit::layer {UNINITIALIZED}

◆ m_debug

std::unique_ptr<HitDebugInfo> MuonHough::PhiHit::m_debug {nullptr}
private

◆ phimax

float MuonHough::PhiHit::phimax {UNINITIALIZED}

minimum value of the hit in the precision coordinate (y=z in barrel, y=r in endcap)

Definition at line 118 of file MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h.

◆ phimin

float MuonHough::PhiHit::phimin {UNINITIALIZED}

global hit position (x=r in barrel, x=z in endcap)

Definition at line 117 of file MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h.

◆ prd

const Trk::PrepRawData* MuonHough::PhiHit::prd {nullptr}

access to assiciated hit, either the prd or the tgc pointer is set in athena

Definition at line 126 of file MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h.

◆ r

float MuonHough::PhiHit::r {UNINITIALIZED}

layer identifier (packed word containing technology/sublayer)

Definition at line 116 of file MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h.

◆ tgc

const Muon::TgcClusterObj3D* MuonHough::PhiHit::tgc {nullptr}

◆ UNINITIALIZED

constexpr int MuonHough::PhiHit::UNINITIALIZED = HitDebugInfo::UNINITIALIZED
staticconstexpr

◆ w

float MuonHough::PhiHit::w {UNINITIALIZED}

maximum value of the hit in the precision coordinate (y=z in barrel, y=r in endcap)

Definition at line 119 of file MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h.


The documentation for this struct was generated from the following files:
MuonHough::PhiHit::m_debug
std::unique_ptr< HitDebugInfo > m_debug
Definition: MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h:130
MuonHough::PhiHit::r
float r
layer identifier (packed word containing technology/sublayer)
Definition: MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h:116
MuonHough::PhiHit::w
float w
maximum value of the hit in the precision coordinate (y=z in barrel, y=r in endcap)
Definition: MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h:119
MuonHough::PhiHit::phimax
float phimax
minimum value of the hit in the precision coordinate (y=z in barrel, y=r in endcap)
Definition: MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h:118
MuonHough::PhiHit::tgc
const Muon::TgcClusterObj3D * tgc
Definition: MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h:127
MuonHough::PhiHit::prd
const Trk::PrepRawData * prd
access to assiciated hit, either the prd or the tgc pointer is set in athena
Definition: MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h:126
MuonHough::PhiHit::layer
int layer
Definition: MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h:115
MuonHough::PhiHit::phimin
float phimin
global hit position (x=r in barrel, x=z in endcap)
Definition: MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h:117
MuonHough::PhiHit::copy
void copy(const PhiHit &hit)
pointer to debug information
Definition: Hit.cxx:58