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

class managing all precision Hough transforms in a sector More...

#include <MuonRegionHough.h>

Collaboration diagram for MuonHough::MuonSectorHough:

Public Types

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

Public Member Functions

 MuonSectorHough (int sector, const MuonDetectorDescription &regionDescriptions)
 constructor for a given sector using the default geometry More...
 
 ~MuonSectorHough ()
 destructor More...
 
MuonLayerHoughhough (DetRegIdx region, LayIdx layer)
 access the Hough transform for a given region More...
 
void reset ()
 reset histograms More...
 

Private Attributes

std::vector< std::unique_ptr< MuonLayerHough > > m_transforms
 

Detailed Description

class managing all precision Hough transforms in a sector

Definition at line 39 of file MuonRegionHough.h.

Member Typedef Documentation

◆ DetRegIdx

Definition at line 47 of file MuonRegionHough.h.

◆ LayIdx

Definition at line 48 of file MuonRegionHough.h.

Constructor & Destructor Documentation

◆ MuonSectorHough()

MuonHough::MuonSectorHough::MuonSectorHough ( int  sector,
const MuonDetectorDescription regionDescriptions 
)

constructor for a given sector using the default geometry

Definition at line 10 of file MuonRegionHough.cxx.

10  {
12 
13  // loop over regions and layers of the detector and build the transforms
14  constexpr int detRegMax = static_cast<int>(DetRegIdx::DetectorRegionIndexMax);
15  constexpr int layIdxMax = static_cast<int>(LayIdx::LayerIndexMax);
16  for (int reg = 0; reg < detRegMax; ++reg) {
17  const auto region = static_cast<DetRegIdx>(reg);
18  for (int lay = 0; lay < layIdxMax; ++lay) {
19  const auto layer = static_cast<LayIdx>(lay);
20 
21  // skip the few empty slots in the hash
22  RegionDescriptor descriptor = regionDescriptions.getDescriptor(sector, region, layer);
23  if (descriptor.chIndex == ChIdx::ChUnknown) continue;
24 
26  m_transforms[index] = std::make_unique<MuonLayerHough>(descriptor);
27  }
28  }
29  }

◆ ~MuonSectorHough()

MuonHough::MuonSectorHough::~MuonSectorHough ( )
default

destructor

Member Function Documentation

◆ hough()

MuonLayerHough& MuonHough::MuonSectorHough::hough ( DetRegIdx  region,
LayIdx  layer 
)
inline

access the Hough transform for a given region

Definition at line 50 of file MuonRegionHough.h.

50  {
52  return *m_transforms[index];
53  }

◆ reset()

void MuonHough::MuonSectorHough::reset ( )

reset histograms

Definition at line 33 of file MuonRegionHough.cxx.

33  {
34  for (auto& transform : m_transforms) {
35  if (transform) transform->reset();
36  }
37  }

Member Data Documentation

◆ m_transforms

std::vector<std::unique_ptr<MuonLayerHough> > MuonHough::MuonSectorHough::m_transforms
private

Definition at line 59 of file MuonRegionHough.h.


The documentation for this class was generated from the following files:
index
Definition: index.py:1
Muon::MuonStationIndex::sectorLayerHashMax
static unsigned int sectorLayerHashMax()
maximum create a hash out of region and layer
Definition: MuonStationIndex.cxx:231
Muon::MuonStationIndex::sectorLayerHash
static unsigned int sectorLayerHash(DetectorRegionIndex detectorRegionIndex, LayerIndex layerIndex)
create a hash out of region and layer
Definition: MuonStationIndex.cxx:226
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::MuonSectorHough::DetRegIdx
Muon::MuonStationIndex::DetectorRegionIndex DetRegIdx
Definition: MuonRegionHough.h:47
MuonHough::MuonSectorHough::LayIdx
Muon::MuonStationIndex::LayerIndex LayIdx
Definition: MuonRegionHough.h:48
MuonHough::MuonSectorHough::m_transforms
std::vector< std::unique_ptr< MuonLayerHough > > m_transforms
Definition: MuonRegionHough.h:59
DeMoScan.index
string index
Definition: DeMoScan.py:364