ATLAS Offline Software
MuonHoughTransformer_xy.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 MuonHoughTransformer_xy::MuonHoughTransformer_xy(int nbins, int nbins_angle, double detectorsize, double detectorsize_angle,
8  double threshold_histo, int number_of_sectors) :
9  MuonHoughTransformer_xyz(nbins, nbins_angle, detectorsize, detectorsize_angle, threshold_histo, number_of_sectors) {}
10 
11 std::pair<double, double> MuonHoughTransformer_xy::getHitPos(const MuonHoughHitContainer& event, int hitid)
12  const // returns the relevant position of the hit (xy-RPC in case of id_number==id_xy_rpc etc.)
13 {
14  return {event.getHitx(hitid),event.getHity(hitid)};
15 }
16 
17 std::unique_ptr<MuonHoughPattern> MuonHoughTransformer_xy::initialiseHoughPattern() const {
18  return std::make_unique<MuonHoughPattern>(MuonHough::hough_xy);
19 }
MuonHoughTransformer_xy::initialiseHoughPattern
std::unique_ptr< MuonHoughPattern > initialiseHoughPattern() const override final
build new houghpattern
Definition: MuonHoughTransformer_xy.cxx:17
MuonHoughTransformer_xy::MuonHoughTransformer_xy
MuonHoughTransformer_xy(int nbins, int nbins_angle, double detectorsize, double detectorsize_angle, double threshold_histo, int number_of_sectors=1)
constructor
Definition: MuonHoughTransformer_xy.cxx:7
SCT_CalibAlgs::nbins
@ nbins
Definition: SCT_CalibNumbers.h:10
MuonHough::hough_xy
@ hough_xy
Definition: MuonHoughPattern.h:14
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
MuonHoughTransformer_xy.h
MuonHoughHitContainer
Definition: MuonHoughHitContainer.h:15
MuonHoughTransformer_xy::getHitPos
std::pair< double, double > getHitPos(const MuonHoughHitContainer &event, int hitid) const override
returns the hit position in xy frame
Definition: MuonHoughTransformer_xy.cxx:11
MuonHoughTransformer_xyz
abstract base class for hough transform with carthesian coordinates
Definition: MuonHoughTransformer_xyz.h:11