ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonReconstruction
MuonRecEvent
MuonHoughPatternEvent
MuonHoughPatternEvent
MuonHoughTransformer_rz.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef MUONHOUGHPATTERNEVENT_MUONHOUGHTRANSFORMER_RZ_H
6
#define MUONHOUGHPATTERNEVENT_MUONHOUGHTRANSFORMER_RZ_H
7
8
#include "
MuonHoughPatternEvent/MuonHoughTransformer.h
"
9
10
class
MuonHoughTransformer_rz
:
public
MuonHoughTransformer
{
11
public
:
12
MuonHoughTransformer_rz
(
int
nbins,
int
nbins_angle,
double
detectorsize,
double
detectorsize_angle,
double
threshold_histo,
13
int
number_of_sectors = 1);
14
virtual
~MuonHoughTransformer_rz
() =
default
;
15
16
virtual
void
fillHit
(
const
std::shared_ptr<MuonHoughHit>&
hit
,
double
weight = 1.) override final;
17
virtual
int
fillHisto
(
double
rz0,
double
theta
,
double
weight,
int
sector
) override final;
18
19
static
double
calculateAngle
(
double
hitx,
double
hity,
double
hitz,
double
z0);
// in rad
20
21
virtual
float
weightHoughTransform
(
double
r0)
const
override final;
22
float
weightHoughTransform
(
double
r0,
double
angle
)
const
;
23
24
int
sector
(
const
std
::shared_ptr<
MuonHoughHit
>&
hit
)
const
override final;
// 0..15 same as atlas sector 1..16 // returns 0 if number_of_sectors == 0
25
26
protected
:
27
std
::
unique_ptr
<
MuonHoughPattern
>
hookAssociateHitsToMaximum
(
const
MuonHoughHitContainer
& event,
std
::
pair
<
double
,
double
> coordsmaximum,
28
double
residu_mm,
double
residu_grad,
int
sector
)
const
override final;
29
30
const
bool
m_use_residu_grad
;
// 0 is advisable //only used for rz
31
};
32
33
inline
int
MuonHoughTransformer_rz
::
sector
(
const
std
::shared_ptr<
MuonHoughHit
>&
hit
)
const
{
return
hit
->phiSector(); }
34
35
#endif
// MUONHOUGHPATTERNEVENT_MUONHOUGHTRANSFORMER_RZ_H
theta
Scalar theta() const
theta method
Definition
AmgMatrixBasePlugin.h:75
hit
bool hit(const Container &ids, int pdgId)
Definition
JetIRCSafeLabelTool.cxx:64
MuonHoughTransformer.h
angle
double angle(const GeoTrf::Vector2D &a, const GeoTrf::Vector2D &b)
Definition
TRTDetectorFactory_Full.cxx:71
MuonHoughHitContainer
Definition
MuonHoughHitContainer.h:15
MuonHoughHit
Definition
MuonHoughHit.h:28
MuonHoughPattern
Definition
MuonHoughPattern.h:17
MuonHoughTransformer_rz::calculateAngle
static double calculateAngle(double hitx, double hity, double hitz, double z0)
Definition
MuonHoughTransformer_rz.cxx:100
MuonHoughTransformer_rz::fillHisto
virtual int fillHisto(double rz0, double theta, double weight, int sector) override final
fill histogram with certain coordinate
Definition
MuonHoughTransformer_rz.cxx:56
MuonHoughTransformer_rz::~MuonHoughTransformer_rz
virtual ~MuonHoughTransformer_rz()=default
MuonHoughTransformer_rz::MuonHoughTransformer_rz
MuonHoughTransformer_rz(int nbins, int nbins_angle, double detectorsize, double detectorsize_angle, double threshold_histo, int number_of_sectors=1)
Definition
MuonHoughTransformer_rz.cxx:7
MuonHoughTransformer_rz::weightHoughTransform
virtual float weightHoughTransform(double r0) const override final
weight houghtransform, give more importance to houghtransforms close to origin
Definition
MuonHoughTransformer_rz.cxx:231
MuonHoughTransformer_rz::hookAssociateHitsToMaximum
std::unique_ptr< MuonHoughPattern > hookAssociateHitsToMaximum(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
Definition
MuonHoughTransformer_rz.cxx:112
MuonHoughTransformer_rz::fillHit
virtual void fillHit(const std::shared_ptr< MuonHoughHit > &hit, double weight=1.) override final
fill histograms with hit
Definition
MuonHoughTransformer_rz.cxx:16
MuonHoughTransformer_rz::m_use_residu_grad
const bool m_use_residu_grad
Definition
MuonHoughTransformer_rz.h:30
MuonHoughTransformer_rz::sector
int sector(const std::shared_ptr< MuonHoughHit > &hit) const override final
returns sector for coords
Definition
MuonHoughTransformer_rz.h:33
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
pair
STL class.
unique_ptr
STL class.
const
std
STL namespace.
protected
#define protected
Definition
testRead.cxx:26
Generated on
for ATLAS Offline Software by
1.17.0