ATLAS Offline Software
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
MuonHough::Hit Class Reference

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

#include <Hit.h>

Collaboration diagram for MuonHough::Hit:

Public Member Functions

 Hit (int layer_, float x_, float ymin_, float ymax_, float w_, HitDebugInfo *d_=nullptr, const Trk::PrepRawData *prd_=nullptr, const Muon::TgcClusterObj3D *tgc_=nullptr)
 constructor, takes ownership of the HitDebugInfo pointer More...
 
 ~Hit ()
 destructor More...
 
 Hit (const Hit &h_)
 copy constructor More...
 
 Hit (Hit &&h_) noexcept=default
 
Hitoperator= (const Hit &h_)
 =operator More...
 
const HitDebugInfodebugInfo () const
 weight of the hit More...
 
HitDebugInfodebugInfo ()
 

Public Attributes

int layer {UNINITIALIZED}
 
float x {UNINITIALIZED}
 layer identifier (packed word containing technology/sublayer) More...
 
float ymin {UNINITIALIZED}
 global hit position (x=r in barrel, x=z in endcap) More...
 
float ymax {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}
 

Private Member Functions

void copy (const Hit &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 58 of file MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h.

Constructor & Destructor Documentation

◆ Hit() [1/3]

Hit::Hit ( int  layer_,
float  x_,
float  ymin_,
float  ymax_,
float  w_,
HitDebugInfo d_ = nullptr,
const Trk::PrepRawData prd_ = nullptr,
const Muon::TgcClusterObj3D tgc_ = nullptr 
)

constructor, takes ownership of the HitDebugInfo pointer

Definition at line 14 of file Hit.cxx.

15  :
16  layer(layer_), x(x_), ymin(ymin_), ymax(ymax_), w(w_), prd(prd_), tgc(tgc_), m_debug(d_) {}

◆ ~Hit()

Hit::~Hit ( )
default

destructor

◆ Hit() [2/3]

Hit::Hit ( const Hit h_)

copy constructor

Definition at line 20 of file Hit.cxx.

20 { copy(h_); }

◆ Hit() [3/3]

MuonHough::Hit::Hit ( Hit &&  h_)
defaultnoexcept

Member Function Documentation

◆ copy()

void Hit::copy ( const Hit hit)
private

pointer to debug information

copy function for internal use

Definition at line 29 of file Hit.cxx.

29  {
30  layer = hit.layer;
31  x = hit.x;
32  ymin = hit.ymin;
33  ymax = hit.ymax;
34  w = hit.w;
35  if (hit.m_debug)
36  m_debug = std::make_unique< HitDebugInfo>(*hit.m_debug);
37  else
38  m_debug.reset();
39  prd = hit.prd;
40  tgc = hit.tgc;
41  }

◆ debugInfo() [1/2]

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

◆ debugInfo() [2/2]

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

weight of the hit

access to debug information

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

81 { return m_debug.get(); }

◆ operator=()

Hit & Hit::operator= ( const Hit h_)

=operator

Definition at line 22 of file Hit.cxx.

22  {
23  if (&h_ != this) {
24  copy(h_);
25  }
26  return *this;
27  }

Member Data Documentation

◆ layer

int MuonHough::Hit::layer {UNINITIALIZED}

◆ m_debug

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

◆ prd

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

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

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

◆ tgc

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

◆ w

float MuonHough::Hit::w {UNINITIALIZED}

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

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

◆ x

float MuonHough::Hit::x {UNINITIALIZED}

layer identifier (packed word containing technology/sublayer)

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

◆ ymax

float MuonHough::Hit::ymax {UNINITIALIZED}

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

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

◆ ymin

float MuonHough::Hit::ymin {UNINITIALIZED}

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

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


The documentation for this class was generated from the following files:
Hit::x
CUDA_HOSTDEV float & x()
Definition: Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloGpu/ISF_FastCaloGpu/Hit.h:73
MuonHough::Hit::ymin
float ymin
global hit position (x=r in barrel, x=z in endcap)
Definition: MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h:76
MuonHough::Hit::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:78
MuonHough::Hit::layer
int layer
Definition: MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h:74
MuonHough::Hit::x
float x
layer identifier (packed word containing technology/sublayer)
Definition: MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h:75
MuonHough::Hit::m_debug
std::unique_ptr< HitDebugInfo > m_debug
Definition: MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h:89
MuonHough::Hit::tgc
const Muon::TgcClusterObj3D * tgc
Definition: MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h:86
MuonHough::Hit::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:85
MuonHough::Hit::ymax
float ymax
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:77
MuonHough::Hit::copy
void copy(const Hit &hit)
pointer to debug information
Definition: Hit.cxx:29