ATLAS Offline Software
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 Member Functions

MuonPhiLayerHoughphiHough (Muon::MuonStationIndex::DetectorRegionIndex region)
 access phi transform More...
 
MuonLayerHoughhough (int sector, Muon::MuonStationIndex::DetectorRegionIndex region, Muon::MuonStationIndex::LayerIndex 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< MuonSectorHough * > m_sectors
 
std::vector< MuonPhiLayerHough * > m_phiTransforms
 sector transforms More...
 

Detailed Description

class managing all Hough transforms in the detector

Definition at line 56 of file MuonRegionHough.h.

Constructor & Destructor Documentation

◆ MuonDetectorHough() [1/2]

MuonHough::MuonDetectorHough::MuonDetectorHough ( )

constructor using default region definitions

Definition at line 51 of file MuonRegionHough.cxx.

51 { init(); }

◆ MuonDetectorHough() [2/2]

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

constructor using custom region definitions

◆ ~MuonDetectorHough()

MuonHough::MuonDetectorHough::~MuonDetectorHough ( )

destructor

Definition at line 54 of file MuonRegionHough.cxx.

54  {
55  for (auto& sector : m_sectors) delete sector;
56  for (auto& transform : m_phiTransforms) delete transform;
57  }

Member Function Documentation

◆ hough()

MuonLayerHough & MuonHough::MuonDetectorHough::hough ( int  sector,
Muon::MuonStationIndex::DetectorRegionIndex  region,
Muon::MuonStationIndex::LayerIndex  layer 
)
inline

access precision transform

Definition at line 93 of file MuonRegionHough.h.

94  {
95  return m_sectors[sector - 1]->hough(region, layer);
96  }

◆ init()

void MuonHough::MuonDetectorHough::init ( )
private

Definition at line 59 of file MuonRegionHough.cxx.

59  {
60  MuonDetectorDescription detectorDescription; // initialize all the regions
61  for (unsigned int i = 1; i <= 16; ++i) { m_sectors.push_back(new MuonSectorHough(i, detectorDescription)); }
62  for (unsigned int i = 0; i < Muon::MuonStationIndex::DetectorRegionIndexMax; ++i) {
63  m_phiTransforms.push_back(new MuonPhiLayerHough(60, -M_PI, M_PI, static_cast<Muon::MuonStationIndex::DetectorRegionIndex>(i)));
64  }
65  }

◆ phiHough()

MuonPhiLayerHough & MuonHough::MuonDetectorHough::phiHough ( Muon::MuonStationIndex::DetectorRegionIndex  region)
inline

access phi transform

Definition at line 89 of file MuonRegionHough.h.

89  {
90  return *m_phiTransforms[region];
91  }

◆ reset()

void MuonHough::MuonDetectorHough::reset ( )

reset histograms

Definition at line 46 of file MuonRegionHough.cxx.

46  {
47  for (auto& sector : m_sectors) sector->reset();
48  for (auto& transform : m_phiTransforms) transform->reset();
49  }

Member Data Documentation

◆ m_phiTransforms

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

sector transforms

Definition at line 80 of file MuonRegionHough.h.

◆ m_sectors

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

Definition at line 79 of file MuonRegionHough.h.


The documentation for this class was generated from the following files:
M_PI
#define M_PI
Definition: ActiveFraction.h:11
lumiFormat.i
int i
Definition: lumiFormat.py:92
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
Muon::MuonStationIndex::DetectorRegionIndex
DetectorRegionIndex
enum to classify the different layers in the muon spectrometer
Definition: MuonStationIndex.h:47
Muon::MuonStationIndex::DetectorRegionIndexMax
@ DetectorRegionIndexMax
Definition: MuonStationIndex.h:50
MuonHough::MuonDetectorHough::m_sectors
std::vector< MuonSectorHough * > m_sectors
Definition: MuonRegionHough.h:79
MuonHough::MuonDetectorHough::init
void init()
Definition: MuonRegionHough.cxx:59
MuonHough::MuonDetectorHough::m_phiTransforms
std::vector< MuonPhiLayerHough * > m_phiTransforms
sector transforms
Definition: MuonRegionHough.h:80