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 More... | |
~MuonLayerHough ()=default | |
destructor More... | |
void | reset () |
reset the transform More... | |
void | setDebug (bool d) |
enable debug output More... | |
int | bin (const Hit &hit) const |
calculate the position bin the hit will endup in More... | |
int | bin (float x, float y) const |
calculate the bin corresponing to the given x,y position More... | |
float | yval (int posBin) const |
access to y coordinate of a given bin More... | |
void | pars (int posBin, int, float &x, float &y) const |
calculate x,y for the given position bin More... | |
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 More... | |
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 More... | |
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 More... | |
bool | findMaximum (Maximum &maximum, const MuonLayerHoughSelector &selector) const |
find the highest maximum that is above maxval More... | |
void | associateHitsToMaximum (Maximum &maximum, const HitVec &hits) const |
associates the list of input hits to the provided maximum More... | |
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 More... | |
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 More... | |
void | fill (const Hit &hit) |
fill the hough space with a single position More... | |
void | fill (float x, float y, float weight) |
fill the hough space with a single position More... | |
void | fillLayer (const HitVec &hits, bool substract=false) |
fill the hough space with a vector of hits using the layer mode More... | |
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* More... | |
Public Attributes | |
float | m_binsize {0} |
float | m_invbinsize {0} |
binsize More... | |
int | m_nbins {-1} |
inverse binsize More... | |
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.
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.
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.
fill the hough space with a vector of hits using the layer mode
Definition at line 100 of file MuonLayerHough.cxx.
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 |
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 | ( | ) |
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} |
binsize
Definition at line 177 of file MuonLayerHough.h.
int MuonHough::MuonLayerHough::m_nbins {-1} |
inverse binsize
Definition at line 180 of file MuonLayerHough.h.
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.