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

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

Private Attributes

std::vector< MuonLayerHough * > m_transforms
 

Detailed Description

class managing all precision Hough transforms in a sector

Definition at line 36 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 9 of file MuonRegionHough.cxx.

9  {
11 
12  // loop over regions and layers of the detector and build the transforms
13  for (int reg = 0; reg < Muon::MuonStationIndex::DetectorRegionIndexMax; ++reg) {
15  for (int lay = 0; lay < Muon::MuonStationIndex::LayerIndexMax; ++lay) {
17 
18  // skip the few empty slots in the hash
19  RegionDescriptor descriptor = regionDescriptions.getDescriptor(sector, region, layer);
20  if (descriptor.chIndex == Muon::MuonStationIndex::ChUnknown) continue;
21 
23  // std::cout << " creating transform: sector " << sector << " " << Muon::MuonStationIndex::regionName(region)
24  // << " " << Muon::MuonStationIndex::layerName(layer)
25  // << " " << Muon::MuonStationIndex::stName(Muon::MuonStationIndex::toStationIndex(region,layer))
26  // << " " << Muon::MuonStationIndex::chName(descriptor.chIndex)
27  // << " index " << index << " max " << m_transforms.size() << std::endl;
28  // if( index >= m_transforms.size() ) std::cout << " index out of bound creating hough " <<
29  // Muon::MuonStationIndex::regionName(region)
30  // << " " << Muon::MuonStationIndex::layerName(layer) << std::endl;
31  m_transforms[index] = new MuonLayerHough(descriptor);
32  }
33  }
34  }

◆ ~MuonSectorHough()

MuonHough::MuonSectorHough::~MuonSectorHough ( )

destructor

Definition at line 36 of file MuonRegionHough.cxx.

36  {
37  for (auto& transform : m_transforms) delete transform;
38  }

Member Function Documentation

◆ hough()

MuonLayerHough & MuonHough::MuonSectorHough::hough ( Muon::MuonStationIndex::DetectorRegionIndex  region,
Muon::MuonStationIndex::LayerIndex  layer 
)
inline

access the Hough transform for a given region

Definition at line 83 of file MuonRegionHough.h.

84  {
86  return *m_transforms[index];
87  }

◆ reset()

void MuonHough::MuonSectorHough::reset ( )

reset histograms

Definition at line 40 of file MuonRegionHough.cxx.

40  {
41  for (auto& transform : m_transforms) {
42  if (transform) transform->reset();
43  }
44  }

Member Data Documentation

◆ m_transforms

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

Definition at line 51 of file MuonRegionHough.h.


The documentation for this class was generated from the following files:
Muon::MuonStationIndex::LayerIndexMax
@ LayerIndexMax
BEE.
Definition: MuonStationIndex.h:43
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::LayerIndex
LayerIndex
enum to classify the different layers in the muon spectrometer
Definition: MuonStationIndex.h:38
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
Muon::MuonStationIndex::ChUnknown
@ ChUnknown
Definition: MuonStationIndex.h:16
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
DeMoScan.index
string index
Definition: DeMoScan.py:364
MuonHough::MuonSectorHough::m_transforms
std::vector< MuonLayerHough * > m_transforms
Definition: MuonRegionHough.h:51