ATLAS Offline Software
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
MuonHoughTransformer_rzcosmics Class Reference

#include <MuonHoughTransformer_rzcosmics.h>

Inheritance diagram for MuonHoughTransformer_rzcosmics:
Collaboration diagram for MuonHoughTransformer_rzcosmics:

Public Member Functions

 MuonHoughTransformer_rzcosmics (int nbins, int nbins_angle, double detectorsize, double detectorsize_angle, double threshold_histo, int number_of_sectors=1)
 
 ~MuonHoughTransformer_rzcosmics ()=default
 
void fillHit (const std::shared_ptr< MuonHoughHit > &hit, double weight) override final
 fill histograms with hit More...
 
int fillHisto (double rz0, double theta, double weight, int sector) override final
 fill histogram with certain coordinate More...
 
float weightHoughTransform (double r0) const override final
 weight houghtransform, give more importance to houghtransforms close to origin More...
 
int sector (const std::shared_ptr< MuonHoughHit > &hit) const override final
 returns sector for coords More...
 
virtual void fill (const MuonHoughHitContainer &event, bool subtract=false)
 fill histograms with hitcontainer More...
 
std::unique_ptr< MuonHoughPatternassociateHitsToMaximum (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< MuonHoughPatternassociateHitsToCoords (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< MuonHoughPatternassociateHitsToBinnumber (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 MuonHoughHisto2DContainerhistos () 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

std::unique_ptr< MuonHoughPatternhookAssociateHitsToMaximum (const MuonHoughHitContainer &event, std::pair< double, double > coordsmaximum, double residu_mm, double residu_grad, int sector) const override final
 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...
 

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

float weightHoughTransform (double r0, double sintheta, double sinphi, double dotprod) const
 weight in transform, dotprod is the phi angle between the normal and the phisector More...
 
void initMessaging () const
 Initialize our message level and MessageSvc. More...
 

Static Private Member Functions

static void updateParameters (MuonHoughPattern *)
 recalculate trackparameters of pattern More...
 

Private Attributes

std::unique_ptr< double[]> m_phisec {}
 arrays that store values of transform More...
 
std::unique_ptr< double[]> m_sinphisec {}
 
std::unique_ptr< double[]> m_cosphisec {}
 
std::unique_ptr< double[]> m_theta_in_grad {}
 
std::unique_ptr< double[]> m_sintheta {}
 
std::unique_ptr< double[]> m_costheta {}
 
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...
 

Detailed Description

Definition at line 10 of file MuonHoughTransformer_rzcosmics.h.

Constructor & Destructor Documentation

◆ MuonHoughTransformer_rzcosmics()

MuonHoughTransformer_rzcosmics::MuonHoughTransformer_rzcosmics ( int  nbins,
int  nbins_angle,
double  detectorsize,
double  detectorsize_angle,
double  threshold_histo,
int  number_of_sectors = 1 
)

Definition at line 9 of file MuonHoughTransformer_rzcosmics.cxx.

10  :
11  MuonHoughTransformer("MuonHoughTransformer_rzcosmics", nbins, nbins_angle, detectorsize, detectorsize_angle,
12  threshold_histo, number_of_sectors) {
13  m_add_weight_radius = true;
14  m_weight_constant_radius = 0.3; // 1./(1 + m_weight_constant_radius*std::abs(r0)/m_detectorsize) = 1/(1+10^-5*r)
15  m_add_weight_angle = true;
16 
17  m_phisec.reset(new double[m_number_of_sectors]);
18  m_sinphisec.reset(new double[m_number_of_sectors]);
19  m_cosphisec.reset(new double[m_number_of_sectors]);
20 
21  for (int phisector = 0; phisector < m_number_of_sectors; phisector++) {
22  m_phisec[phisector] = (phisector + 0.5) * M_PI / (m_number_of_sectors + 0.) - M_PI; // phi [-Pi,0]
23  CxxUtils::sincos sc(m_phisec[phisector]);
24  m_sinphisec[phisector] = sc.sn;
25  m_cosphisec[phisector] = sc.cs;
26  }
27 
28  m_theta_in_grad.reset(new double[m_nbins_angle]);
29  m_sintheta.reset(new double[m_nbins_angle]);
30  m_costheta.reset(new double[m_nbins_angle]);
31 
32  for (int i = 0; i < m_nbins_angle; i++) {
34  const double theta_in_rad = MuonHough::degree_rad_conversion_factor * m_theta_in_grad[i];
35  CxxUtils::sincos sc(theta_in_rad);
36  m_sintheta[i] = sc.sn;
37  m_costheta[i] = sc.cs;
38  }
39 }

◆ ~MuonHoughTransformer_rzcosmics()

MuonHoughTransformer_rzcosmics::~MuonHoughTransformer_rzcosmics ( )
default

Member Function Documentation

◆ associateHitsToBinnumber()

std::unique_ptr< MuonHoughPattern > MuonHoughTransformer::associateHitsToBinnumber ( const MuonHoughHitContainer event,
int  binnumber,
double  maximum_residu_mm,
double  maximum_residu_angle,
int  sector = 0 
) const
inherited

associate hits to certain binnumber and sector

Definition at line 96 of file MuonHoughTransformer.cxx.

97  {
98  ATH_MSG_VERBOSE("associateHitsToBinnumber() -- sector "<<sector<<",binnumber "<<binnumber<<
99  " maximum of histogram: " << m_histos.getHisto(sector)->getBinContent(binnumber));
100 
101  std::pair<double, double> coordsmaximum = m_histos.getHisto(sector)->binnumberToCoords(binnumber);
102  std::unique_ptr<MuonHoughPattern> houghpattern = hookAssociateHitsToMaximum(event, coordsmaximum,
103  maximum_residu_mm, maximum_residu_angle, sector);
104  houghpattern->setMaximumHistogram(m_histos.getHisto(sector)->getBinContent(binnumber));
105  return houghpattern;
106 }

◆ associateHitsToCoords()

std::unique_ptr< MuonHoughPattern > MuonHoughTransformer::associateHitsToCoords ( const MuonHoughHitContainer event,
std::pair< double, double >  coords,
double  residu_mm,
double  residu_angle,
int  sector = 0 
) const
inherited

associate hits to certain coordinates and sector

Definition at line 91 of file MuonHoughTransformer.cxx.

92  {
93  return hookAssociateHitsToMaximum(event, coordsmaximum, maximum_residu_mm, maximum_residu_angle, sector);
94 }

◆ associateHitsToMaximum()

std::unique_ptr< MuonHoughPattern > MuonHoughTransformer::associateHitsToMaximum ( const MuonHoughHitContainer event,
double  residu_mm,
double  residu_grad,
int  maximum_number 
) const
inherited

associate hits to certain maximum number of histograms

Definition at line 63 of file MuonHoughTransformer.cxx.

64  {
65  std::unique_ptr<MuonHoughPattern> houghpattern{};
66  std::pair<double, double> coordsmaximum;
67  std::pair<int, int> maximumbin;
68  maximumbin = m_histos.getMaximumBinnumber();
69 
70  int sector = maximumbin.first;
71 
72  if (sector != -1) {
73  coordsmaximum = m_histos.getHisto(sector)->getCoordsMaximum(maximum_number);
74  if (maximumbin.second == -1){ // no maximum, no bin above threshold
75  ATH_MSG_VERBOSE("No Maximum Found");
76  return nullptr;
77  }
78  ATH_MSG_VERBOSE("maximum binnumber of histogram: " << maximumbin.second
79  << " value: " << m_histos.getHisto(sector)->getBinContent(maximumbin.second));
80  ATH_MSG_VERBOSE(" coordinates: " << coordsmaximum.first << " second " << coordsmaximum.second<<" sector: "<<sector);
81  houghpattern = hookAssociateHitsToMaximum(event, coordsmaximum, maximum_residu_mm, maximum_residu_grad, sector);
82  if (houghpattern) { houghpattern->setMaximumHistogram(m_histos.getHisto(sector)->getBinContent(maximumbin.second)); }
83  } else {
84  ATH_MSG_VERBOSE("No Maximum Found sector is -1");
85  return nullptr;
86  }
87 
88  return houghpattern;
89 }

◆ fill()

void MuonHoughTransformer::fill ( const MuonHoughHitContainer event,
bool  subtract = false 
)
virtualinherited

fill histograms with hitcontainer

Definition at line 47 of file MuonHoughTransformer.cxx.

47  {
48  m_eventsize = event.size();
49  m_eventsize_weightfactor = 20. * std::sqrt(m_eventsize) / std::sqrt(7000.);
50  if (subtract) {
51  // invalidate maxima
52  for (int i = 0; i < m_histos.size(); ++i) m_histos.getHisto(i)->setMaximumIsValid(false);
53 
54  for (unsigned int hitid = 0; hitid < m_eventsize; hitid++) {
55  std::shared_ptr<MuonHoughHit> hit = event.getHit(hitid);
56  if (hit->getAssociated()) fillHit(hit, -1. * hit->getWeight());
57  }
58  } else {
59  for (unsigned int hitid = 0; hitid < m_eventsize; hitid++) { fillHit(event.getHit(hitid), event.getHit(hitid)->getWeight()); }
60  }
61 }

◆ fillHisto()

int MuonHoughTransformer_rzcosmics::fillHisto ( double  coord1,
double  coord2,
double  weight,
int  sector 
)
finaloverridevirtual

fill histogram with certain coordinate

Implements MuonHoughTransformer.

Definition at line 61 of file MuonHoughTransformer_rzcosmics.cxx.

61  {
63 
64  int filled_binnumber = histo->fill(rz0, theta_in_grad, weight);
65 
66  // this houghtransform has a full butterfly pattern:
67  double half_weight = 0.5 * weight;
68 
69  // should be filled using filled_binnumber!
70 
71  if (theta_in_grad - m_binwidthy < 0) {
72  histo->fill(rz0 + m_binwidthx, theta_in_grad + m_binwidthy, half_weight);
73  // histo->fill(rz0-m_binwidthx,theta_in_grad-m_binwidthy + 180.,half_weight); // no cyclic angle here
74  histo->fill(rz0 - m_binwidthx, theta_in_grad + m_binwidthy, half_weight);
75  } else if (theta_in_grad + m_binwidthy > 180.) {
76  // histo->fill(rz0+m_binwidthx,theta_in_grad+m_binwidthy - 180.,half_weight);
77  histo->fill(rz0 - m_binwidthx, theta_in_grad - m_binwidthy, half_weight);
78  histo->fill(rz0 + m_binwidthx, theta_in_grad - m_binwidthy, half_weight);
79  } else {
80  histo->fill(rz0 + m_binwidthx, theta_in_grad + m_binwidthy, half_weight);
81  histo->fill(rz0 - m_binwidthx, theta_in_grad - m_binwidthy, half_weight);
82  histo->fill(rz0 - m_binwidthx, theta_in_grad + m_binwidthy, half_weight);
83  histo->fill(rz0 + m_binwidthx, theta_in_grad - m_binwidthy, half_weight);
84  }
85  return filled_binnumber;
86 }

◆ fillHit()

void MuonHoughTransformer_rzcosmics::fillHit ( const std::shared_ptr< MuonHoughHit > &  hit,
double  weight 
)
finaloverridevirtual

fill histograms with hit

Implements MuonHoughTransformer.

Definition at line 41 of file MuonHoughTransformer_rzcosmics.cxx.

41  {
42  const double invradius = 1. / hit->getRadius();
43  const double hitx = hit->getHitx();
44  const double hity = hit->getHity();
45  const double hitz = hit->getHitz();
46 
47  for (int phisector = 0; phisector < m_number_of_sectors; phisector++) {
48  const double rphi = hitx * m_cosphisec[phisector] + hity * m_sinphisec[phisector];
49  const double dotprod = rphi * invradius;
50 
51  // for (double theta_in_grad=m_stepsize_per_angle/2.; theta_in_grad<m_detectorsize_angle; theta_in_grad+=m_stepsize_per_angle)
52  // {
53  for (int i = 0; i < m_nbins_angle; i++) {
54  const double rz0 = -m_costheta[i] * rphi + m_sintheta[i] * hitz;
55  const double weighthough = weight * weightHoughTransform(rz0, m_sintheta[i], m_sinphisec[phisector], dotprod);
56  fillHisto(rz0, m_theta_in_grad[i], weighthough, phisector);
57  }
58  }
59 }

◆ getEndPointsFillLoop()

std::pair< double, double > MuonHoughTransformer::getEndPointsFillLoop ( double  radius,
double  stepsize,
int  sector 
) const
protectedinherited

returns begin and end value of the filling loop

Definition at line 108 of file MuonHoughTransformer.cxx.

108  {
109  std::pair<double, double> endpoints(-radius + 0.00001, radius); // why +0.00001?
110 
111  if (-radius < m_histos.getHisto(sector)->getXmin()) // randomizer to avoid binning effects
112  {
113  endpoints.first = m_histos.getHisto(sector)->getXmin() + 0.5 * stepsize; // no randomizer! no radius constraint
114  }
115 
116  if (radius > m_histos.getHisto(sector)->getXmax()) { endpoints.second = m_histos.getHisto(sector)->getXmax(); }
117  return endpoints;
118 }

◆ getMaxima()

std::vector< std::pair< int, int > > MuonHoughTransformer::getMaxima ( int  max_patterns) const
inherited

return the first certain number of maxima of histograms

Definition at line 122 of file MuonHoughTransformer.cxx.

122  {
123  std::vector<std::pair<int, int> > maximumbins; // sorted
124 
125  std::vector<std::pair<std::pair<int, int>, double> > maxima;
126 
127  for (int sector = 0; sector < m_number_of_sectors; sector++) // to be made more general when m_number_of_sectors ==1 e.g.
128  {
129  std::pair<int, double> maximumbin = m_histos.getHisto(sector)->getMax();
130  std::pair<std::pair<int, int>, double> maximum;
131  maximum.first.first = sector;
132  maximum.first.second = maximumbin.first;
133  maximum.second = maximumbin.second;
134  maxima.push_back(maximum);
135  }
136 
137  sort(maxima.begin(), maxima.end(), maximaCompare());
138 
139  unsigned int count_maxima = 0; // should be iterator
140  int number_of_patterns = 0;
141  std::set<int> sectors; // sectors that are already used
142  const unsigned int size = maxima.size();
143  while (count_maxima != size && number_of_patterns != max_patterns) {
144  std::pair<int, int> maximumbin = maxima[count_maxima].first;
145 
146  bool check = true; // check if sector is not nearby a sector already chosen
147  int sector = maximumbin.first;
148 
149  if (sectors.find(sector) != sectors.end()) { check = false; }
150 
151  if (check) {
152  maximumbins.push_back(maximumbin);
153  sectors.insert(maximumbin.first);
154 
155  int sectormin = sector - 1;
156  int sectorplus = sector + 1;
157  if (sectormin < 0) { sectormin = m_number_of_sectors; }
158  if (sectorplus > m_number_of_sectors) { sectorplus = 0; }
159 
160  sectors.insert(sectormin);
161  sectors.insert(sectorplus);
162 
163  if (m_number_of_sectors > 20 && maximumbin.first % 2 == 1) // hack for new single and overlap filling curved transform!
164  {
165  int sectorminmin = sectormin - 1;
166  int sectorplusplus = sectorplus + 1;
167  sectors.insert(sectorminmin);
168  sectors.insert(sectorplusplus);
169  }
170 
171  count_maxima++;
172  number_of_patterns++;
173  } else {
174  count_maxima++;
175  }
176  }
177 
178  return maximumbins;
179 }

◆ histos()

const MuonHoughHisto2DContainer& MuonHoughTransformer::histos ( ) const
inlineinherited

access to histograms

Definition at line 60 of file MuonHoughTransformer.h.

60 { return m_histos; }

◆ hookAssociateHitsToMaximum()

std::unique_ptr< MuonHoughPattern > MuonHoughTransformer_rzcosmics::hookAssociateHitsToMaximum ( const MuonHoughHitContainer event,
std::pair< double, double >  coordsmaximum,
double  residu_mm,
double  residu_angle,
int  sector 
) const
finaloverrideprotectedvirtual

pure virtual method for derived class implementation of associateHitsToMaximum method

Implements MuonHoughTransformer.

Definition at line 88 of file MuonHoughTransformer_rzcosmics.cxx.

91  {
92 
93  std::unique_ptr<MuonHoughPattern> houghpattern = std::make_unique<MuonHoughPattern>(MuonHough::hough_rzcosmics);
94 
95  double eradius{0.}, er0{0.};
96  const double theta = m_muonhoughmathutils.angleFromGradToRadial(coordsmaximum.second);
97  const double rz0 = coordsmaximum.first;
98 
99  const double phimax = m_phisec[maxsector];
100 
101  ATH_MSG_VERBOSE("hookAssociateHitsToMaximum() -- sector: " << maxsector << " phimax: " << phimax
102  << " coordsmaximumfirst: " << rz0 << " coordsmaximumsecond: " << coordsmaximum.second
103  << " coordsmaximumsecondinrad: " << theta <<", size of event: " << event.size());
104  for (unsigned int i = 0; i < event.size(); i++) {
105  const double hitx = event.getHitx(i);
106  const double hity = event.getHity(i);
107 
108  // select which hits could be in maximum:
109  const double hitz = event.getHitz(i);
110  const double perp = hitx * m_cosphisec[maxsector] + hity * m_sinphisec[maxsector];
111 
112  double residu_distance = MuonHoughMathUtils::signedDistanceToLine(hitz, perp, rz0, theta);
113 
114  ATH_MSG_VERBOSE("MuonHoughTransformer_rzcosmics() -- hitx: " << hitx << " hity: " << hity << " hitz: " << hitz
115  << " perp: " << perp <<", residu_distance: " << residu_distance );
116 
117  if (std::abs(residu_distance) < maximum_residu_mm) // here no circular effect
118  {
119  ATH_MSG_VERBOSE("hit added to houghpattern! detector: " << event.getHit(i)->getWhichDetector()
120  <<" already associated "<< event.getHit(i)->getAssociated());
121  houghpattern->addHit(event.getHit(i));
122  event.getHit(i)->setAssociated(true);
123 
124  double rz0hit = residu_distance + rz0;
125  eradius += rz0hit;
126 
127  double r0hit = hitx * m_sinphisec[maxsector] - hity * m_cosphisec[maxsector];
128  er0 += r0hit;
129 
130  } // hit in distance
131  } // hitno
132 
133  eradius = eradius / (houghpattern->size() + 1e-7);
134  er0 = er0 / (houghpattern->size() + 1e-7);
135 
136  houghpattern->setEPhi(phimax);
137  houghpattern->setERPhi(er0);
138  houghpattern->setETheta(theta);
139  houghpattern->setERTheta(eradius);
140  houghpattern->setECurvature(1.);
141 
142  if (houghpattern->empty()) {
143  ATH_MSG_VERBOSE("no hits found on pattern");
144  }
145 
146  else if (std::abs(eradius - rz0) > 500.) {
147  ATH_MSG_VERBOSE("Eradius or Etheta calc. WRONG -- rz0: " << rz0 << " theta: "
148  << theta<< ", eradius: " << eradius);
149 
150  houghpattern->setERTheta(rz0);
151  }
152 
153  updateParameters(houghpattern.get()); // not possible when phi direction not known!
154 
155  ATH_MSG_VERBOSE("updateParameterstheta new phi: " << houghpattern->getEPhi()
156  << " old phi: " << phimax <<", new r0: " << houghpattern->getERPhi()
157  << " old r0: " << er0 <<" new theta: " << houghpattern->getETheta()
158  << " old theta: " << theta << " new z0: " << houghpattern->getERTheta()
159  << " old z0: " << eradius );
160  return houghpattern;
161 }

◆ initMessaging()

void AthMessaging::initMessaging ( ) const
privateinherited

Initialize our message level and MessageSvc.

This method should only be called once.

Definition at line 39 of file AthMessaging.cxx.

40 {
42  m_lvl = m_imsg ?
43  static_cast<MSG::Level>( m_imsg.load()->outputLevel(m_nm) ) :
44  MSG::INFO;
45 }

◆ msg() [1/2]

MsgStream & AthMessaging::msg ( ) const
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.

165 {
166  MsgStream* ms = m_msg_tls.get();
167  if (!ms) {
168  if (!m_initialized.test_and_set()) initMessaging();
169  ms = new MsgStream(m_imsg,m_nm);
170  m_msg_tls.reset( ms );
171  }
172 
173  ms->setLevel (m_lvl);
174  return *ms;
175 }

◆ msg() [2/2]

MsgStream & AthMessaging::msg ( const MSG::Level  lvl) const
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.

180 { return msg() << lvl; }

◆ msgLvl()

bool AthMessaging::msgLvl ( const MSG::Level  lvl) const
inlineinherited

Test the output level.

Parameters
lvlThe message level to test against
Returns
boolean Indicating if messages at given level will be printed
Return values
trueMessages at level "lvl" will be printed

Definition at line 151 of file AthMessaging.h.

152 {
153  if (!m_initialized.test_and_set()) initMessaging();
154  if (m_lvl <= lvl) {
155  msg() << lvl;
156  return true;
157  } else {
158  return false;
159  }
160 }

◆ resetHisto()

void MuonHoughTransformer::resetHisto ( )
inherited

reset histograms

Definition at line 120 of file MuonHoughTransformer.cxx.

120 { m_histos.reset(); }

◆ sector()

int MuonHoughTransformer_rzcosmics::sector ( const std::shared_ptr< MuonHoughHit > &  hit) const
finaloverridevirtual

returns sector for coords

Implements MuonHoughTransformer.

Definition at line 186 of file MuonHoughTransformer_rzcosmics.cxx.

186  {
187  // function not implemented for this transform
188  return 0;
189 }

◆ setIP()

void MuonHoughTransformer::setIP ( bool  ip_setting)
inlineinherited

set m_ip_setting (e.g.

to not split patterns)

Definition at line 140 of file MuonHoughTransformer.h.

140 { m_ip_setting = ip_setting; }

◆ setLevel()

void AthMessaging::setLevel ( MSG::Level  lvl)
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.

29 {
30  m_lvl = lvl;
31 }

◆ updateParameters()

void MuonHoughTransformer_rzcosmics::updateParameters ( MuonHoughPattern houghpattern)
staticprivate

recalculate trackparameters of pattern

Definition at line 191 of file MuonHoughTransformer_rzcosmics.cxx.

191  {
192  const unsigned int size = houghpattern->size();
193 
194  if (size <= 1) return;
195 
196  const double phi = houghpattern->getEPhi();
197  const double cosphi = std::cos(phi);
198  const double sinphi = std::sin(phi);
199 
200  double sum_radii = 0.;
201  double sum_z = 0.;
202 
203  for (unsigned int i = 0; i < size; i++) {
204  sum_radii += houghpattern->getHitx(i) * cosphi + houghpattern->getHity(i) * sinphi;
205  sum_z += houghpattern->getHitz(i);
206  }
207 
208  const double av_radii = sum_radii / (size + 0.);
209  const double av_z = sum_z / (size + 0.);
210 
211  double sumr = 0.;
212  double sumz = 0.;
213  for (unsigned int i = 0; i < size; i++) {
214  double radius = houghpattern->getHitx(i) * cosphi + houghpattern->getHity(i) * sinphi;
215  double hitz = houghpattern->getHitz(i);
216  double r_offset = radius - av_radii;
217  double z_offset = hitz - av_z;
218  double weight = r_offset * r_offset + z_offset * z_offset;
219  int sign = 1;
220  if (r_offset * radius + z_offset * hitz < 0) { sign = -1; }
221  sumr += weight * sign * r_offset;
222  sumz += weight * sign * z_offset;
223  }
224 
225  if (std::abs(sumr) < 0.000001 || std::abs(sumz) < 0.000001) { return; }
226 
227  double theta = std::atan2(sumr, sumz);
228 
229  if (theta < 0) theta += M_PI;
230 
231  // if theta almost straight rely on hit for prediction (transform has difficulties prediction direction in this case):
232  double offset = 0.02;
233  if (theta < offset) {
234  if (houghpattern->getHitz(0) < 0) { theta = M_PI - theta; }
235  }
236 
237  else if (theta > M_PI - offset) {
238  if (houghpattern->getHitz(0) > 0) { theta = M_PI - theta; }
239  }
240 
241  const double rz0 = av_z * std::sin(theta) - av_radii * std::cos(theta);
242 
243  houghpattern->setETheta(theta);
244  houghpattern->setERTheta(rz0);
245 }

◆ useNegativeWeights()

void MuonHoughTransformer::useNegativeWeights ( bool  use_negative_weights)
inlineinherited

use negative weights

Definition at line 141 of file MuonHoughTransformer.h.

141 { m_use_negative_weights = use_negative_weights; }

◆ weightHoughTransform() [1/2]

float MuonHoughTransformer_rzcosmics::weightHoughTransform ( double  r0) const
finaloverridevirtual

weight houghtransform, give more importance to houghtransforms close to origin

Implements MuonHoughTransformer.

Definition at line 163 of file MuonHoughTransformer_rzcosmics.cxx.

163  {
164  if (m_add_weight_radius) {
165  return m_detectorsize / (m_detectorsize + m_weight_constant_radius * std::abs(r0));
166  } else {
167  return 1;
168  } // weight function, to give more importance to patterns close to origin
169 }

◆ weightHoughTransform() [2/2]

float MuonHoughTransformer_rzcosmics::weightHoughTransform ( double  r0,
double  sintheta,
double  sinphi,
double  dotprod 
) const
private

weight in transform, dotprod is the phi angle between the normal and the phisector

Definition at line 171 of file MuonHoughTransformer_rzcosmics.cxx.

173 {
174  if (!m_add_weight_angle) {
175  return weightHoughTransform(r0);
176  } else {
177  double dotprod_part = 0.5 + 0.5 * dotprod * dotprod; // preference for angles that are normal to the chamber
178  double sintheta_part = 0.9 + 0.1 * sintheta * sintheta; // preference for patterns from above
179  double sinphi_part = 0.75 + 0.25 * sinphi * sinphi; // preference for patterns from above
180  float r_theta_weight = dotprod_part * sintheta_part * sinphi_part;
181 
182  return r_theta_weight * weightHoughTransform(r0); // preference for patterns with low impact parameter
183  }
184 }

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
mutableprivateinherited

Messaging initialized (initMessaging)

Definition at line 141 of file AthMessaging.h.

◆ m_add_weight_angle

bool MuonHoughTransformer::m_add_weight_angle
protectedinherited

use weight of patterns in angle coordinate

Definition at line 90 of file MuonHoughTransformer.h.

◆ m_add_weight_radius

bool MuonHoughTransformer::m_add_weight_radius
protectedinherited

use weight of patterns in radius coordinate

Definition at line 94 of file MuonHoughTransformer.h.

◆ m_binwidthx

double MuonHoughTransformer::m_binwidthx
protectedinherited

x-binwidth of histogram

Definition at line 115 of file MuonHoughTransformer.h.

◆ m_binwidthy

double MuonHoughTransformer::m_binwidthy
protectedinherited

y-binwidth of histogram

Definition at line 117 of file MuonHoughTransformer.h.

◆ m_cosphisec

std::unique_ptr<double[]> MuonHoughTransformer_rzcosmics::m_cosphisec {}
private

Definition at line 36 of file MuonHoughTransformer_rzcosmics.h.

◆ m_costheta

std::unique_ptr<double[]> MuonHoughTransformer_rzcosmics::m_costheta {}
private

Definition at line 39 of file MuonHoughTransformer_rzcosmics.h.

◆ m_detectorsize

const double MuonHoughTransformer::m_detectorsize
protectedinherited

range of radius coordinate

Definition at line 111 of file MuonHoughTransformer.h.

◆ m_detectorsize_angle

const double MuonHoughTransformer::m_detectorsize_angle
protectedinherited

range of angle coordinate

Definition at line 113 of file MuonHoughTransformer.h.

◆ m_eventsize

unsigned int MuonHoughTransformer::m_eventsize
protectedinherited

size of event to be filled (can be used for weighting)

Definition at line 85 of file MuonHoughTransformer.h.

◆ m_eventsize_weightfactor

double MuonHoughTransformer::m_eventsize_weightfactor
protectedinherited

weightfactor based on eventsize (used in curved hough transform)

Definition at line 87 of file MuonHoughTransformer.h.

◆ m_histos

MuonHoughHisto2DContainer MuonHoughTransformer::m_histos
protectedinherited

histogram container

Definition at line 79 of file MuonHoughTransformer.h.

◆ m_imsg

std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr }
mutableprivateinherited

MessageSvc pointer.

Definition at line 135 of file AthMessaging.h.

◆ m_ip_setting

bool MuonHoughTransformer::m_ip_setting
protectedinherited

use settings for patterns originating from origin

Definition at line 125 of file MuonHoughTransformer.h.

◆ m_lvl

std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL }
mutableprivateinherited

Current logging level.

Definition at line 138 of file AthMessaging.h.

◆ m_msg_tls

boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls
mutableprivateinherited

MsgStream instance (a std::cout like with print-out levels)

Definition at line 132 of file AthMessaging.h.

◆ m_muonhoughmathutils

MuonHoughMathUtils MuonHoughTransformer::m_muonhoughmathutils
protectedinherited

object for use of mathematical formulas for trackmodels

Definition at line 102 of file MuonHoughTransformer.h.

◆ m_nbins

const int MuonHoughTransformer::m_nbins
protectedinherited

number of bins in histograms in radius coordinate

Definition at line 105 of file MuonHoughTransformer.h.

◆ m_nbins_angle

const int MuonHoughTransformer::m_nbins_angle
protectedinherited

number of bins in histograms in angle coordinate

Definition at line 109 of file MuonHoughTransformer.h.

◆ m_nbins_plus3

const int MuonHoughTransformer::m_nbins_plus3
protectedinherited

number of bins in histograms in radius coordinate

Definition at line 107 of file MuonHoughTransformer.h.

◆ m_nm

std::string AthMessaging::m_nm
privateinherited

Message source name.

Definition at line 129 of file AthMessaging.h.

◆ m_number_of_sectors

const int MuonHoughTransformer::m_number_of_sectors
protectedinherited

number of histograms (1 for cosmics 16 for rz)

Definition at line 128 of file MuonHoughTransformer.h.

◆ m_phisec

std::unique_ptr<double[]> MuonHoughTransformer_rzcosmics::m_phisec {}
private

arrays that store values of transform

Definition at line 34 of file MuonHoughTransformer_rzcosmics.h.

◆ m_sinphisec

std::unique_ptr<double[]> MuonHoughTransformer_rzcosmics::m_sinphisec {}
private

Definition at line 35 of file MuonHoughTransformer_rzcosmics.h.

◆ m_sintheta

std::unique_ptr<double[]> MuonHoughTransformer_rzcosmics::m_sintheta {}
private

Definition at line 38 of file MuonHoughTransformer_rzcosmics.h.

◆ m_stepsize

double MuonHoughTransformer::m_stepsize
protectedinherited

stepsize of transform for radius coordinate

Definition at line 120 of file MuonHoughTransformer.h.

◆ m_stepsize_per_angle

double MuonHoughTransformer::m_stepsize_per_angle
protectedinherited

stepsize of transform for angle coordinate

Definition at line 122 of file MuonHoughTransformer.h.

◆ m_theta_in_grad

std::unique_ptr<double[]> MuonHoughTransformer_rzcosmics::m_theta_in_grad {}
private

Definition at line 37 of file MuonHoughTransformer_rzcosmics.h.

◆ m_threshold_histo

double MuonHoughTransformer::m_threshold_histo
protectedinherited

threshold of histograms

Definition at line 82 of file MuonHoughTransformer.h.

◆ m_use_negative_weights

bool MuonHoughTransformer::m_use_negative_weights
protectedinherited

use of negative weights

Definition at line 99 of file MuonHoughTransformer.h.

◆ m_weight_constant_angle

double MuonHoughTransformer::m_weight_constant_angle
protectedinherited

weight constant of patterns in angle coordinate

Definition at line 92 of file MuonHoughTransformer.h.

◆ m_weight_constant_radius

double MuonHoughTransformer::m_weight_constant_radius
protectedinherited

weight constant of patterns in radius coordinate

Definition at line 96 of file MuonHoughTransformer.h.


The documentation for this class was generated from the following files:
MuonHoughTransformer_rzcosmics::m_theta_in_grad
std::unique_ptr< double[]> m_theta_in_grad
Definition: MuonHoughTransformer_rzcosmics.h:37
AthMessaging::m_lvl
std::atomic< MSG::Level > m_lvl
Current logging level.
Definition: AthMessaging.h:138
MuonHoughPattern::setERPhi
void setERPhi(double erphi)
set r0 of pattern
Definition: MuonHoughPattern.h:124
MuonHough::degree_rad_conversion_factor
constexpr double degree_rad_conversion_factor
Definition: MuonHoughMathUtils.h:17
MuonHoughHisto2D::getBinContent
double getBinContent(int binnumber) const
returns x axis
Definition: MuonHoughHisto2D.h:205
MuonHoughPattern::setETheta
void setETheta(double etheta)
set theta of pattern
Definition: MuonHoughPattern.h:125
MuonHoughHisto2DContainer::getHisto
MuonHoughHisto2D * getHisto(int id) const
return histogram at place id
Definition: MuonHoughHisto2DContainer.h:39
MuonHoughTransformer_rzcosmics::m_sintheta
std::unique_ptr< double[]> m_sintheta
Definition: MuonHoughTransformer_rzcosmics.h:38
MuonHoughMathUtils::signedDistanceToLine
static double signedDistanceToLine(double x0, double y0, double r0, double phi)
distance from (x0,y0) to the line (r0,phi), phi in rad
Definition: MuonHoughMathUtils.cxx:31
MuonHough::hough_rzcosmics
@ hough_rzcosmics
Definition: MuonHoughPattern.h:14
MuonHoughTransformer_rzcosmics::updateParameters
static void updateParameters(MuonHoughPattern *)
recalculate trackparameters of pattern
Definition: MuonHoughTransformer_rzcosmics.cxx:191
MuonHoughHitContainer::getHitz
double getHitz(unsigned int hitno) const
returns z position of hit hitno
Definition: MuonHoughHitContainer.h:96
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
MuonHoughHisto2D::getMax
std::pair< int, double > getMax() const
returns binnumber and maximum of histogram (doesn't use m_bins_above_threshold)
Definition: MuonHoughHisto2D.cxx:87
MuonHoughTransformer::m_muonhoughmathutils
MuonHoughMathUtils m_muonhoughmathutils
object for use of mathematical formulas for trackmodels
Definition: MuonHoughTransformer.h:102
MuonHoughHit::getHitz
double getHitz() const
returns z position
Definition: MuonHoughHit.h:161
perp
Scalar perp() const
perp method - perpenticular length
Definition: AmgMatrixBasePlugin.h:35
MuonHoughHisto2D::setMaximumIsValid
void setMaximumIsValid(bool flag)
Definition: MuonHoughHisto2D.h:115
MuonHoughTransformer::m_weight_constant_radius
double m_weight_constant_radius
weight constant of patterns in radius coordinate
Definition: MuonHoughTransformer.h:96
MuonHoughTransformer_rzcosmics::m_costheta
std::unique_ptr< double[]> m_costheta
Definition: MuonHoughTransformer_rzcosmics.h:39
MuonHoughHit::getHitx
double getHitx() const
returns x position
Definition: MuonHoughHit.h:159
MuonHoughTransformer_rzcosmics::m_cosphisec
std::unique_ptr< double[]> m_cosphisec
Definition: MuonHoughTransformer_rzcosmics.h:36
MuonHoughPattern::getEPhi
double getEPhi() const
returns phi of pattern
Definition: MuonHoughPattern.h:116
theta
Scalar theta() const
theta method
Definition: AmgMatrixBasePlugin.h:71
M_PI
#define M_PI
Definition: ActiveFraction.h:11
MuonHoughPattern::setEPhi
void setEPhi(double ephi)
set phi of pattern
Definition: MuonHoughPattern.h:123
MuonHoughHisto2DContainer::size
int size() const
returns size of container
Definition: MuonHoughHisto2DContainer.h:38
MuonHoughPattern::getERTheta
double getERTheta() const
returns z0 of pattern
Definition: MuonHoughPattern.h:119
drawFromPickle.cos
cos
Definition: drawFromPickle.py:36
MuonHoughTransformer::m_use_negative_weights
bool m_use_negative_weights
use of negative weights
Definition: MuonHoughTransformer.h:99
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
MuonHoughHit::getHity
double getHity() const
returns y position
Definition: MuonHoughHit.h:160
MuonHoughTransformer::m_histos
MuonHoughHisto2DContainer m_histos
histogram container
Definition: MuonHoughTransformer.h:79
AthMessaging::m_imsg
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
Definition: AthMessaging.h:135
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
std::sort
void sort(typename DataModel_detail::iterator< DVL > beg, typename DataModel_detail::iterator< DVL > end)
Specialization of sort for DataVector/List.
Definition: DVL_algorithms.h:554
MuonHoughTransformer::MuonHoughTransformer
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
Definition: MuonHoughTransformer.cxx:11
MuonHoughHitContainer::addHit
void addHit(const std::shared_ptr< MuonHoughHit > &hit)
add hit to container
Definition: MuonHoughHitContainer.cxx:8
AthenaPoolTestRead.sc
sc
Definition: AthenaPoolTestRead.py:27
MuonHoughTransformer::m_binwidthx
double m_binwidthx
x-binwidth of histogram
Definition: MuonHoughTransformer.h:115
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:200
MuonHoughTransformer::m_eventsize_weightfactor
double m_eventsize_weightfactor
weightfactor based on eventsize (used in curved hough transform)
Definition: MuonHoughTransformer.h:87
MuonHoughTransformer::hookAssociateHitsToMaximum
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
SCT_CalibAlgs::nbins
@ nbins
Definition: SCT_CalibNumbers.h:10
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
MuonHoughPattern::setERTheta
void setERTheta(double ertheta)
set z0 of pattern
Definition: MuonHoughPattern.h:126
MuonHoughHisto2DContainer::reset
void reset() const
resets histograms
Definition: MuonHoughHisto2DContainer.cxx:26
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
MuonHoughPattern::setECurvature
void setECurvature(double curvature)
set curvature of pattern
Definition: MuonHoughPattern.h:127
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
lumiFormat.i
int i
Definition: lumiFormat.py:92
MuonHoughHitContainer::size
unsigned int size() const
returns size of hitcontainer
Definition: MuonHoughHitContainer.h:104
MuonHoughHitContainer::getHity
double getHity(unsigned int hitno) const
returns y position of hit hitno
Definition: MuonHoughHitContainer.h:95
MuonHoughPattern::getETheta
double getETheta() const
returns theta of pattern
Definition: MuonHoughPattern.h:118
MuonHoughTransformer::m_stepsize_per_angle
double m_stepsize_per_angle
stepsize of transform for angle coordinate
Definition: MuonHoughTransformer.h:122
TRT_PAI_physicsConstants::r0
const double r0
electron radius{cm}
Definition: TRT_PAI_physicsConstants.h:20
MuonHoughHit::getRadius
double getRadius() const
returns radius
Definition: MuonHoughHit.h:166
sign
int sign(int a)
Definition: TRT_StrawNeighbourSvc.h:127
MuonHoughTransformer_rzcosmics::m_phisec
std::unique_ptr< double[]> m_phisec
arrays that store values of transform
Definition: MuonHoughTransformer_rzcosmics.h:34
MuonHoughHisto2D::binnumberToCoords
std::pair< double, double > binnumberToCoords(int binnumber, int printlevel=0) const
gives coordinates for certain binnumber
Definition: MuonHoughHisto2D.cxx:189
MuonHoughTransformer::m_number_of_sectors
const int m_number_of_sectors
number of histograms (1 for cosmics 16 for rz)
Definition: MuonHoughTransformer.h:128
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
MuonHoughTransformer::fillHit
virtual void fillHit(const std::shared_ptr< MuonHoughHit > &hit, double weight=1.)=0
fill histograms with hit
MuonHoughTransformer_rzcosmics::m_sinphisec
std::unique_ptr< double[]> m_sinphisec
Definition: MuonHoughTransformer_rzcosmics.h:35
MuonHoughHit::getWeight
double getWeight() const
returns weight in histogram after rescaling
Definition: MuonHoughHit.h:162
LArNewCalib_Delay_OFC_Cali.check
check
Definition: LArNewCalib_Delay_OFC_Cali.py:208
ParticleGun_SamplingFraction.radius
radius
Definition: ParticleGun_SamplingFraction.py:96
MuonHoughHisto2D::getXmax
double getXmax() const
returns max x axis
Definition: MuonHoughHisto2D.h:210
MuonHoughTransformer_rzcosmics::sector
int sector(const std::shared_ptr< MuonHoughHit > &hit) const override final
returns sector for coords
Definition: MuonHoughTransformer_rzcosmics.cxx:186
MuonHoughPattern::setMaximumHistogram
void setMaximumHistogram(double maximumhistogram)
set maximum of histogram used to generate pattern
Definition: MuonHoughPattern.h:128
MuonHoughHisto2DContainer::getMaximumBinnumber
std::pair< int, int > getMaximumBinnumber() const
return maximum of container gives first id histogram (sector) and then maximumbin
Definition: MuonHoughHisto2DContainer.cxx:9
MuonHoughTransformer_rzcosmics::weightHoughTransform
float weightHoughTransform(double r0) const override final
weight houghtransform, give more importance to houghtransforms close to origin
Definition: MuonHoughTransformer_rzcosmics.cxx:163
MuonHoughTransformer::m_binwidthy
double m_binwidthy
y-binwidth of histogram
Definition: MuonHoughTransformer.h:117
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
MuonHoughTransformer::m_ip_setting
bool m_ip_setting
use settings for patterns originating from origin
Definition: MuonHoughTransformer.h:125
MuonHoughHitContainer::empty
bool empty() const
returns if hitcontainer is empty
Definition: MuonHoughHitContainer.h:105
AthMessaging::m_nm
std::string m_nm
Message source name.
Definition: AthMessaging.h:129
convertTimingResiduals.offset
offset
Definition: convertTimingResiduals.py:71
MuonHoughPattern::getERPhi
double getERPhi() const
returns r0/d0 of pattern
Definition: MuonHoughPattern.h:117
CxxUtils::sincos
Helper to simultaneously calculate sin and cos of the same angle.
Definition: sincos.h:76
MuonHoughTransformer::m_nbins_angle
const int m_nbins_angle
number of bins in histograms in angle coordinate
Definition: MuonHoughTransformer.h:109
MuonHoughTransformer::m_eventsize
unsigned int m_eventsize
size of event to be filled (can be used for weighting)
Definition: MuonHoughTransformer.h:85
MuonHoughTransformer::m_add_weight_radius
bool m_add_weight_radius
use weight of patterns in radius coordinate
Definition: MuonHoughTransformer.h:94
MuonHoughHisto2D::getCoordsMaximum
std::pair< double, double > getCoordsMaximum(unsigned int maximum_number=0)
returns coords of maximum number maximum_number
Definition: MuonHoughHisto2D.cxx:130
AthMessaging::initMessaging
void initMessaging() const
Initialize our message level and MessageSvc.
Definition: AthMessaging.cxx:39
drawFromPickle.sin
sin
Definition: drawFromPickle.py:36
MuonHoughTransformer::m_detectorsize
const double m_detectorsize
range of radius coordinate
Definition: MuonHoughTransformer.h:111
MuonHoughHisto2D::getXmin
double getXmin() const
returns min x axis
Definition: MuonHoughHisto2D.h:209
AthMessaging::m_msg_tls
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
Definition: AthMessaging.h:132
plotBeamSpotCompare.histo
histo
Definition: plotBeamSpotCompare.py:415
MuonHoughMathUtils::angleFromGradToRadial
double angleFromGradToRadial(double angle) const
converts angle in degrees to rad
Definition: MuonHoughMathUtils.h:112
MuonHoughHitContainer::getHitx
double getHitx(unsigned int hitno) const
returns x position of hit hitno
Definition: MuonHoughHitContainer.h:94
MuonHoughTransformer::sector
virtual int sector(const std::shared_ptr< MuonHoughHit > &hit) const =0
returns sector for coords
MuonHoughHit::getAssociated
bool getAssociated() const
return if hit already associated to pattern
Definition: MuonHoughHit.h:176
MuonHoughTransformer::m_add_weight_angle
bool m_add_weight_angle
use weight of patterns in angle coordinate
Definition: MuonHoughTransformer.h:90
MuonHoughTransformer_rzcosmics::fillHisto
int fillHisto(double rz0, double theta, double weight, int sector) override final
fill histogram with certain coordinate
Definition: MuonHoughTransformer_rzcosmics.cxx:61
MuonHoughHisto2D
Histogram class, similar to Root's TH2D.
Definition: MuonHoughHisto2D.h:22