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

Public Attributes

int layer {UNINITIALIZED}
float r {UNINITIALIZED}
 layer identifier (packed word containing technology/sublayer)
float phimin {UNINITIALIZED}
 global hit position (x=r in barrel, x=z in endcap)
float phimax {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 PhiHit &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 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_) {}
float phimax
minimum value of the hit in the precision coordinate (y=z in barrel, y=r in endcap)
float w
maximum 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 r
layer identifier (packed word containing technology/sublayer)

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

◆ 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

◆ 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.

126{nullptr};

◆ 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

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: