ATLAS Offline Software
Loading...
Searching...
No Matches
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
 ~Hit ()
 destructor
 Hit (const Hit &h_)
 copy constructor
 Hit (Hit &&h_) noexcept=default
Hitoperator= (const Hit &h_)
 =operator
const HitDebugInfodebugInfo () const
 weight of the hit
HitDebugInfodebugInfo ()

Public Attributes

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

Static Public Attributes

static constexpr int UNINITIALIZED = HitDebugInfo::UNINITIALIZED

Private Member Functions

void copy (const Hit &hit)
 pointer to debug information

Private Attributes

std::unique_ptr< HitDebugInfom_debug {nullptr}

Detailed Description

struct containing all hit information needed for the Hough transform

Definition at line 60 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_) {}
float x
layer identifier (packed word containing technology/sublayer)
float ymax
minimum value of the hit in the precision coordinate (y=z in barrel, y=r in endcap)
const Trk::PrepRawData * prd
access to assiciated hit, either the prd or the tgc pointer is set in athena
float w
maximum value of the hit in the precision coordinate (y=z in barrel, y=r in endcap)

◆ ~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_); }
void copy(const Hit &hit)
pointer to debug information
Definition Hit.cxx:29

◆ 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 84 of file MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h.

84{ 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

◆ 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 88 of file MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h.

88{nullptr};

◆ tgc

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

◆ UNINITIALIZED

int MuonHough::Hit::UNINITIALIZED = HitDebugInfo::UNINITIALIZED
staticconstexpr

◆ 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 81 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 78 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 80 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 79 of file MuonSpectrometer/MuonReconstruction/MuonRecUtils/MuonLayerHough/MuonLayerHough/Hit.h.


The documentation for this class was generated from the following files: