ATLAS Offline Software
MuonHoughTransformer_yz.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_yz::MuonHoughTransformer_yz(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_yz::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  std::pair<double, double> hitpos;
15  hitpos.first = event.getHity(hitid);
16  hitpos.second = event.getHitz(hitid);
17  return hitpos;
18 }
19 
20 std::unique_ptr<MuonHoughPattern> MuonHoughTransformer_yz::initialiseHoughPattern() const {
21  return std::make_unique<MuonHoughPattern>(MuonHough::hough_yz);
22 }
MuonHoughTransformer_yz::getHitPos
std::pair< double, double > getHitPos(const MuonHoughHitContainer &event, int hitid) const override final
returns the hit position in yz frame
Definition: MuonHoughTransformer_yz.cxx:11
MuonHoughTransformer_yz.h
MuonHoughTransformer_yz::initialiseHoughPattern
std::unique_ptr< MuonHoughPattern > initialiseHoughPattern() const override final
build new houghpattern
Definition: MuonHoughTransformer_yz.cxx:20
MuonHough::hough_yz
@ hough_yz
Definition: MuonHoughPattern.h:14
SCT_CalibAlgs::nbins
@ nbins
Definition: SCT_CalibNumbers.h:10
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
MuonHoughHitContainer
Definition: MuonHoughHitContainer.h:15
MuonHoughTransformer_xyz
abstract base class for hough transform with carthesian coordinates
Definition: MuonHoughTransformer_xyz.h:11
MuonHoughTransformer_yz::MuonHoughTransformer_yz
MuonHoughTransformer_yz(int nbins, int nbins_angle, double detectorsize, double detectorsize_angle, double threshold_histo, int number_of_sectors=1)
constructor
Definition: MuonHoughTransformer_yz.cxx:7