ATLAS Offline Software
|
Abstract base class, Strategy pattern. More...
#include <MuonHoughTransformer.h>
Classes | |
class | maximaCompare |
Public Member Functions | |
virtual | ~MuonHoughTransformer () |
destructor More... | |
virtual float | weightHoughTransform (double r0) const =0 |
weight houghtransform, give more importance to houghtransforms close to origin More... | |
virtual void | fill (const MuonHoughHitContainer &event, bool subtract=false) |
fill histograms with hitcontainer More... | |
virtual void | fillHit (const std::shared_ptr< MuonHoughHit > &hit, double weight=1.)=0 |
fill histograms with hit More... | |
virtual int | fillHisto (double coord1, double coord2, double weight=1., int sector=0)=0 |
fill histogram with certain coordinate More... | |
std::unique_ptr< MuonHoughPattern > | associateHitsToMaximum (const MuonHoughHitContainer &event, double residu_mm, double residu_grad, int maximum_number) const |
associate hits to certain maximum number of histograms More... | |
std::unique_ptr< MuonHoughPattern > | associateHitsToCoords (const MuonHoughHitContainer &event, std::pair< double, double > coords, double residu_mm, double residu_angle, int sector=0) const |
associate hits to certain coordinates and sector More... | |
std::unique_ptr< MuonHoughPattern > | associateHitsToBinnumber (const MuonHoughHitContainer &event, int binnumber, double maximum_residu_mm, double maximum_residu_angle, int sector=0) const |
associate hits to certain binnumber and sector More... | |
void | resetHisto () |
reset histograms More... | |
void | useNegativeWeights (bool use_negative_weights) |
use negative weights More... | |
std::vector< std::pair< int, int > > | getMaxima (int max_patterns) const |
return the first certain number of maxima of histograms More... | |
void | setIP (bool ip_setting) |
set m_ip_setting (e.g. More... | |
const MuonHoughHisto2DContainer & | histos () const |
access to histograms More... | |
bool | msgLvl (const MSG::Level lvl) const |
Test the output level. More... | |
MsgStream & | msg () const |
The standard message stream. More... | |
MsgStream & | msg (const MSG::Level lvl) const |
The standard message stream. More... | |
void | setLevel (MSG::Level lvl) |
Change the current logging level. More... | |
Protected Member Functions | |
MuonHoughTransformer (const std::string &tr_name, int nbins, int nbins_angle, double detectorsize, double detectorsize_angle, double threshold_histo, int number_of_sectors=1) | |
constructor, input values are those of histograms More... | |
virtual std::unique_ptr< MuonHoughPattern > | hookAssociateHitsToMaximum (const MuonHoughHitContainer &event, std::pair< double, double > coordsmaximum, double residu_mm, double residu_angle, int sector) const =0 |
pure virtual method for derived class implementation of associateHitsToMaximum method More... | |
std::pair< double, double > | getEndPointsFillLoop (double radius, double stepsize, int sector) const |
returns begin and end value of the filling loop More... | |
virtual int | sector (const std::shared_ptr< MuonHoughHit > &hit) const =0 |
returns sector for coords More... | |
Protected Attributes | |
MuonHoughHisto2DContainer | m_histos |
histogram container More... | |
double | m_threshold_histo |
threshold of histograms More... | |
unsigned int | m_eventsize |
size of event to be filled (can be used for weighting) More... | |
double | m_eventsize_weightfactor |
weightfactor based on eventsize (used in curved hough transform) More... | |
bool | m_add_weight_angle |
use weight of patterns in angle coordinate More... | |
double | m_weight_constant_angle |
weight constant of patterns in angle coordinate More... | |
bool | m_add_weight_radius |
use weight of patterns in radius coordinate More... | |
double | m_weight_constant_radius |
weight constant of patterns in radius coordinate More... | |
bool | m_use_negative_weights |
use of negative weights More... | |
MuonHoughMathUtils | m_muonhoughmathutils |
object for use of mathematical formulas for trackmodels More... | |
const int | m_nbins |
number of bins in histograms in radius coordinate More... | |
const int | m_nbins_plus3 |
number of bins in histograms in radius coordinate More... | |
const int | m_nbins_angle |
number of bins in histograms in angle coordinate More... | |
const double | m_detectorsize |
range of radius coordinate More... | |
const double | m_detectorsize_angle |
range of angle coordinate More... | |
double | m_binwidthx |
x-binwidth of histogram More... | |
double | m_binwidthy |
y-binwidth of histogram More... | |
double | m_stepsize |
stepsize of transform for radius coordinate More... | |
double | m_stepsize_per_angle |
stepsize of transform for angle coordinate More... | |
bool | m_ip_setting |
use settings for patterns originating from origin More... | |
const int | m_number_of_sectors |
number of histograms (1 for cosmics 16 for rz) More... | |
Private Member Functions | |
void | initMessaging () const |
Initialize our message level and MessageSvc. More... | |
Private Attributes | |
std::string | m_nm |
Message source name. More... | |
boost::thread_specific_ptr< MsgStream > | m_msg_tls |
MsgStream instance (a std::cout like with print-out levels) More... | |
std::atomic< IMessageSvc * > | m_imsg { nullptr } |
MessageSvc pointer. More... | |
std::atomic< MSG::Level > | m_lvl { MSG::NIL } |
Current logging level. More... | |
std::atomic_flag m_initialized | ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
Messaging initialized (initMessaging) More... | |
Abstract base class, Strategy pattern.
from this class, algorithms inherit and do the houghtransformation and searches for a houghpattern
Definition at line 21 of file MuonHoughTransformer.h.
|
virtualdefault |
destructor
|
protected |
constructor, input values are those of histograms
Definition at line 11 of file MuonHoughTransformer.cxx.
std::unique_ptr< MuonHoughPattern > MuonHoughTransformer::associateHitsToBinnumber | ( | const MuonHoughHitContainer & | event, |
int | binnumber, | ||
double | maximum_residu_mm, | ||
double | maximum_residu_angle, | ||
int | sector = 0 |
||
) | const |
associate hits to certain binnumber and sector
Definition at line 96 of file MuonHoughTransformer.cxx.
std::unique_ptr< MuonHoughPattern > MuonHoughTransformer::associateHitsToCoords | ( | const MuonHoughHitContainer & | event, |
std::pair< double, double > | coords, | ||
double | residu_mm, | ||
double | residu_angle, | ||
int | sector = 0 |
||
) | const |
associate hits to certain coordinates and sector
Definition at line 91 of file MuonHoughTransformer.cxx.
std::unique_ptr< MuonHoughPattern > MuonHoughTransformer::associateHitsToMaximum | ( | const MuonHoughHitContainer & | event, |
double | residu_mm, | ||
double | residu_grad, | ||
int | maximum_number | ||
) | const |
associate hits to certain maximum number of histograms
Definition at line 63 of file MuonHoughTransformer.cxx.
|
virtual |
fill histograms with hitcontainer
Definition at line 47 of file MuonHoughTransformer.cxx.
|
pure virtual |
fill histogram with certain coordinate
Implemented in MuonHoughTransformer_CurvedAtACylinder, MuonHoughTransformer_rz, MuonHoughTransformer_rzcosmics, and MuonHoughTransformer_xyz.
|
pure virtual |
fill histograms with hit
Implemented in MuonHoughTransformer_rz, MuonHoughTransformer_xyz, MuonHoughTransformer_CurvedAtACylinder, and MuonHoughTransformer_rzcosmics.
|
protected |
returns begin and end value of the filling loop
Definition at line 108 of file MuonHoughTransformer.cxx.
std::vector< std::pair< int, int > > MuonHoughTransformer::getMaxima | ( | int | max_patterns | ) | const |
return the first certain number of maxima of histograms
Definition at line 122 of file MuonHoughTransformer.cxx.
|
inline |
|
protectedpure virtual |
pure virtual method for derived class implementation of associateHitsToMaximum method
Implemented in MuonHoughTransformer_rz, MuonHoughTransformer_CurvedAtACylinder, MuonHoughTransformer_rzcosmics, and MuonHoughTransformer_xyz.
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
|
inlineinherited |
Test the output level.
lvl | The message level to test against |
true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
void MuonHoughTransformer::resetHisto | ( | ) |
|
protectedpure virtual |
returns sector for coords
Implemented in MuonHoughTransformer_xyz, MuonHoughTransformer_CurvedAtACylinder, MuonHoughTransformer_rz, and MuonHoughTransformer_rzcosmics.
|
inline |
set m_ip_setting (e.g.
to not split patterns)
Definition at line 140 of file MuonHoughTransformer.h.
|
inherited |
Change the current logging level.
Use this rather than msg().setLevel() for proper operation with MT.
Definition at line 28 of file AthMessaging.cxx.
|
inline |
|
pure virtual |
weight houghtransform, give more importance to houghtransforms close to origin
Implemented in MuonHoughTransformer_xyz, MuonHoughTransformer_CurvedAtACylinder, MuonHoughTransformer_rz, and MuonHoughTransformer_rzcosmics.
|
mutableprivateinherited |
Messaging initialized (initMessaging)
Definition at line 141 of file AthMessaging.h.
|
protected |
use weight of patterns in angle coordinate
Definition at line 90 of file MuonHoughTransformer.h.
|
protected |
use weight of patterns in radius coordinate
Definition at line 94 of file MuonHoughTransformer.h.
|
protected |
x-binwidth of histogram
Definition at line 115 of file MuonHoughTransformer.h.
|
protected |
y-binwidth of histogram
Definition at line 117 of file MuonHoughTransformer.h.
|
protected |
range of radius coordinate
Definition at line 111 of file MuonHoughTransformer.h.
|
protected |
range of angle coordinate
Definition at line 113 of file MuonHoughTransformer.h.
|
protected |
size of event to be filled (can be used for weighting)
Definition at line 85 of file MuonHoughTransformer.h.
|
protected |
weightfactor based on eventsize (used in curved hough transform)
Definition at line 87 of file MuonHoughTransformer.h.
|
protected |
histogram container
Definition at line 79 of file MuonHoughTransformer.h.
|
mutableprivateinherited |
MessageSvc pointer.
Definition at line 135 of file AthMessaging.h.
|
protected |
use settings for patterns originating from origin
Definition at line 125 of file MuonHoughTransformer.h.
|
mutableprivateinherited |
Current logging level.
Definition at line 138 of file AthMessaging.h.
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
|
protected |
object for use of mathematical formulas for trackmodels
Definition at line 102 of file MuonHoughTransformer.h.
|
protected |
number of bins in histograms in radius coordinate
Definition at line 105 of file MuonHoughTransformer.h.
|
protected |
number of bins in histograms in angle coordinate
Definition at line 109 of file MuonHoughTransformer.h.
|
protected |
number of bins in histograms in radius coordinate
Definition at line 107 of file MuonHoughTransformer.h.
|
privateinherited |
Message source name.
Definition at line 129 of file AthMessaging.h.
|
protected |
number of histograms (1 for cosmics 16 for rz)
Definition at line 128 of file MuonHoughTransformer.h.
|
protected |
stepsize of transform for radius coordinate
Definition at line 120 of file MuonHoughTransformer.h.
|
protected |
stepsize of transform for angle coordinate
Definition at line 122 of file MuonHoughTransformer.h.
|
protected |
threshold of histograms
Definition at line 82 of file MuonHoughTransformer.h.
|
protected |
use of negative weights
Definition at line 99 of file MuonHoughTransformer.h.
|
protected |
weight constant of patterns in angle coordinate
Definition at line 92 of file MuonHoughTransformer.h.
|
protected |
weight constant of patterns in radius coordinate
Definition at line 96 of file MuonHoughTransformer.h.