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

class managing all Hough transforms in the detector More...

#include <MuonRegionHough.h>

Collaboration diagram for MuonHough::MuonDetectorHough:

Public Types

using DetRegIdx = Muon::MuonStationIndex::DetectorRegionIndex
 
using LayIdx = Muon::MuonStationIndex::LayerIndex
 

Public Member Functions

MuonPhiLayerHoughphiHough (DetRegIdx region)
 access phi transform More...
 
MuonLayerHoughhough (int sector, DetRegIdx region, LayIdx layer)
 access precision transform More...
 
void reset ()
 reset histograms More...
 
 MuonDetectorHough ()
 constructor using default region definitions More...
 
 MuonDetectorHough (const RegionDescriptionVec &regionDescriptors)
 constructor using custom region definitions More...
 
 ~MuonDetectorHough ()
 destructor More...
 

Private Member Functions

void init ()
 

Private Attributes

std::vector< std::unique_ptr< MuonSectorHough > > m_sectors
 
std::vector< std::unique_ptr< MuonPhiLayerHough > > m_phiTransforms
 sector transforms More...
 

Detailed Description

class managing all Hough transforms in the detector

Definition at line 64 of file MuonRegionHough.h.

Member Typedef Documentation

◆ DetRegIdx

Definition at line 66 of file MuonRegionHough.h.

◆ LayIdx

Definition at line 67 of file MuonRegionHough.h.

Constructor & Destructor Documentation

◆ MuonDetectorHough() [1/2]

MuonHough::MuonDetectorHough::MuonDetectorHough ( )

constructor using default region definitions

Definition at line 44 of file MuonRegionHough.cxx.

44 { init(); }

◆ MuonDetectorHough() [2/2]

MuonHough::MuonDetectorHough::MuonDetectorHough ( const RegionDescriptionVec regionDescriptors)

constructor using custom region definitions

◆ ~MuonDetectorHough()

MuonHough::MuonDetectorHough::~MuonDetectorHough ( )
default

destructor

Member Function Documentation

◆ hough()

MuonLayerHough& MuonHough::MuonDetectorHough::hough ( int  sector,
DetRegIdx  region,
LayIdx  layer 
)
inline

access precision transform

Definition at line 74 of file MuonRegionHough.h.

74  {
75  return m_sectors[sector - 1]->hough(region, layer);
76  }

◆ init()

void MuonHough::MuonDetectorHough::init ( )
private

Definition at line 49 of file MuonRegionHough.cxx.

49  {
50  MuonDetectorDescription detectorDescription; // initialize all the regions
51  for (unsigned int i = 1; i <= 16; ++i) { m_sectors.push_back(std::make_unique<MuonSectorHough>(i, detectorDescription)); }
52  for (int i = 0; i < static_cast<int>(DetRegIdx::DetectorRegionIndexMax); ++i) {
53  m_phiTransforms.push_back(std::make_unique<MuonPhiLayerHough>(60, -M_PI, M_PI, static_cast<DetRegIdx>(i)));
54  }
55  }

◆ phiHough()

MuonPhiLayerHough& MuonHough::MuonDetectorHough::phiHough ( DetRegIdx  region)
inline

access phi transform

Definition at line 69 of file MuonRegionHough.h.

69  {
70  return *m_phiTransforms[static_cast<int>(region)];
71  }

◆ reset()

void MuonHough::MuonDetectorHough::reset ( )

reset histograms

Definition at line 39 of file MuonRegionHough.cxx.

39  {
40  for (auto& sector : m_sectors) sector->reset();
41  for (auto& transform : m_phiTransforms) transform->reset();
42  }

Member Data Documentation

◆ m_phiTransforms

std::vector<std::unique_ptr<MuonPhiLayerHough> > MuonHough::MuonDetectorHough::m_phiTransforms
private

sector transforms

Definition at line 94 of file MuonRegionHough.h.

◆ m_sectors

std::vector<std::unique_ptr<MuonSectorHough> > MuonHough::MuonDetectorHough::m_sectors
private

Definition at line 93 of file MuonRegionHough.h.


The documentation for this class was generated from the following files:
MuonHough::MuonDetectorHough::m_sectors
std::vector< std::unique_ptr< MuonSectorHough > > m_sectors
Definition: MuonRegionHough.h:93
M_PI
#define M_PI
Definition: ActiveFraction.h:11
lumiFormat.i
int i
Definition: lumiFormat.py:85
MuonHough::MuonDetectorHough::m_phiTransforms
std::vector< std::unique_ptr< MuonPhiLayerHough > > m_phiTransforms
sector transforms
Definition: MuonRegionHough.h:94
TRT::Hit::layer
@ layer
Definition: HitInfo.h:79
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
MuonHough::MuonDetectorHough::DetRegIdx
Muon::MuonStationIndex::DetectorRegionIndex DetRegIdx
Definition: MuonRegionHough.h:66
MuonHough::MuonDetectorHough::init
void init()
Definition: MuonRegionHough.cxx:49