![]() |
ATLAS Offline Software
|
#include <MuonLayerHough.h>
Classes | |
| struct | Maximum |
| struct representing the maximum in the hough space More... | |
Public Types | |
| using | DetRegIdx = Muon::MuonStationIndex::DetectorRegionIndex |
| using | ChIdx = Muon::MuonStationIndex::ChIndex |
Public Member Functions | |
| MuonLayerHough (const RegionDescriptor &descriptor) | |
| constructor | |
| ~MuonLayerHough ()=default | |
| destructor | |
| void | reset () |
| reset the transform | |
| void | setDebug (bool d) |
| enable debug output | |
| int | bin (const Hit &hit) const |
| calculate the position bin the hit will endup in | |
| int | bin (float x, float y) const |
| calculate the bin corresponing to the given x,y position | |
| float | yval (int posBin) const |
| access to y coordinate of a given bin | |
| void | pars (int posBin, int, float &x, float &y) const |
| calculate x,y for the given position bin | |
| float | layerConfirmation (const Hit &hit, float range=1000.) const |
| calculate the highest value of the hough transform within the specified range for the given hit | |
| float | layerConfirmation (float x, float y, float range=1000.) const |
| calculate the highest value of the hough transform within the specified range for the given hit position | |
| std::pair< float, float > | layerConfirmation (unsigned int thetaBin, float x, float y, float range=1000.) const |
| calculate the highest value of the hough transform within the specified range for the given hit position | |
| bool | findMaximum (Maximum &maximum, const MuonLayerHoughSelector &selector) const |
| find the highest maximum that is above maxval | |
| void | associateHitsToMaximum (Maximum &maximum, const HitVec &hits) const |
| associates the list of input hits to the provided maximum | |
| std::pair< int, int > | range (const float x, const float y1, const float y2, const int bintheta) const |
| calculates the first and last bin the hit should be filled in for a given theta bin | |
| std::pair< float, float > | maximum (float x, float y, int &posbin, int &thetabin) const |
| returns a pair with the position and angle corresponing to the input x,y values | |
| void | fill (const Hit &hit) |
| fill the hough space with a single position | |
| void | fill (float x, float y, float weight) |
| fill the hough space with a single position | |
| void | fillLayer (const HitVec &hits, bool substract=false) |
| fill the hough space with a vector of hits using the layer mode | |
| void | fillLayer2 (const HitVec &hits, bool subtract=false) |
| std::vector< TH1 * > | rootHistos (const std::string &prefix, const float *rmin=0, const float *rmax=0) const |
| returns a vector with all the histograms of the hough as TH1* | |
Public Attributes | |
| float | m_binsize {0} |
| float | m_invbinsize {0} |
| binsize | |
| int | m_nbins {-1} |
| inverse binsize | |
| unsigned int | max {0} |
| int | maxhist {-1} |
| int | maxbin {-1} |
| bool | m_debug {false} |
| std::vector< std::unique_ptr< unsigned int[]> > | m_histos |
| RegionDescriptor | m_descriptor |
Definition at line 59 of file MuonLayerHough.h.
Definition at line 62 of file MuonLayerHough.h.
Definition at line 61 of file MuonLayerHough.h.
| MuonHough::MuonLayerHough::MuonLayerHough | ( | const RegionDescriptor & | descriptor | ) |
constructor
Definition at line 35 of file MuonLayerHough.cxx.
|
default |
destructor
| void MuonHough::MuonLayerHough::associateHitsToMaximum | ( | MuonLayerHough::Maximum & | maximum, |
| const HitVec & | hits ) const |
associates the list of input hits to the provided maximum
Definition at line 368 of file MuonLayerHough.cxx.
|
inline |
calculate the position bin the hit will endup in
Definition at line 190 of file MuonLayerHough.h.
|
inline |
calculate the bin corresponing to the given x,y position
Definition at line 192 of file MuonLayerHough.h.
|
inline |
fill the hough space with a single position
Definition at line 208 of file MuonLayerHough.h.
| void MuonHough::MuonLayerHough::fill | ( | float | x, |
| float | y, | ||
| float | weight ) |
fill the hough space with a single position
Definition at line 55 of file MuonLayerHough.cxx.
| void MuonHough::MuonLayerHough::fillLayer | ( | const HitVec & | hits, |
| bool | substract = false ) |
fill the hough space with a vector of hits using the layer mode
Definition at line 100 of file MuonLayerHough.cxx.
| void MuonHough::MuonLayerHough::fillLayer2 | ( | const HitVec & | hits, |
| bool | subtract = false ) |
Definition at line 200 of file MuonLayerHough.cxx.
| bool MuonHough::MuonLayerHough::findMaximum | ( | Maximum & | maximum, |
| const MuonLayerHoughSelector & | selector ) const |
find the highest maximum that is above maxval
Definition at line 290 of file MuonLayerHough.cxx.
|
inline |
calculate the highest value of the hough transform within the specified range for the given hit
Definition at line 206 of file MuonLayerHough.h.
| float MuonHough::MuonLayerHough::layerConfirmation | ( | float | x, |
| float | y, | ||
| float | range = 1000. ) const |
calculate the highest value of the hough transform within the specified range for the given hit position
Definition at line 427 of file MuonLayerHough.cxx.
| std::pair< float, float > MuonHough::MuonLayerHough::layerConfirmation | ( | unsigned int | thetaBin, |
| float | x, | ||
| float | y, | ||
| float | range = 1000. ) const |
calculate the highest value of the hough transform within the specified range for the given hit position
Definition at line 461 of file MuonLayerHough.cxx.
| std::pair< float, float > MuonHough::MuonLayerHough::maximum | ( | float | x, |
| float | y, | ||
| int & | posbin, | ||
| int & | thetabin ) const |
returns a pair with the position and angle corresponing to the input x,y values
Definition at line 391 of file MuonLayerHough.cxx.
|
inline |
calculate x,y for the given position bin
Definition at line 199 of file MuonLayerHough.h.
| std::pair< int, int > MuonHough::MuonLayerHough::range | ( | const float | x, |
| const float | y1, | ||
| const float | y2, | ||
| const int | bintheta ) const |
calculates the first and last bin the hit should be filled in for a given theta bin
The z values shall be some where inside the cavern. Given that the out wheel is at 22m, this is a very rough estimate to crimp the z value and to hopefully avoid spooky FPEs
Definition at line 486 of file MuonLayerHough.cxx.
| void MuonHough::MuonLayerHough::reset | ( | ) |
reset the transform
Definition at line 48 of file MuonLayerHough.cxx.
| std::vector< TH1 * > MuonHough::MuonLayerHough::rootHistos | ( | const std::string & | prefix, |
| const float * | rmin = 0, | ||
| const float * | rmax = 0 ) const |
returns a vector with all the histograms of the hough as TH1*
Definition at line 272 of file MuonLayerHough.cxx.
|
inline |
|
inline |
| float MuonHough::MuonLayerHough::m_binsize {0} |
Definition at line 176 of file MuonLayerHough.h.
| bool MuonHough::MuonLayerHough::m_debug {false} |
Definition at line 185 of file MuonLayerHough.h.
| RegionDescriptor MuonHough::MuonLayerHough::m_descriptor |
Definition at line 187 of file MuonLayerHough.h.
| std::vector<std::unique_ptr<unsigned int[]> > MuonHough::MuonLayerHough::m_histos |
Definition at line 186 of file MuonLayerHough.h.
| float MuonHough::MuonLayerHough::m_invbinsize {0} |
| int MuonHough::MuonLayerHough::m_nbins {-1} |
| unsigned int MuonHough::MuonLayerHough::max {0} |
Definition at line 182 of file MuonLayerHough.h.
| int MuonHough::MuonLayerHough::maxbin {-1} |
Definition at line 184 of file MuonLayerHough.h.
| int MuonHough::MuonLayerHough::maxhist {-1} |
Definition at line 183 of file MuonLayerHough.h.