ATLAS Offline Software
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 
9 
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
MuonHoughTransformer_rz::m_use_residu_grad
const bool m_use_residu_grad
Definition: MuonHoughTransformer_rz.h:30
MuonHoughTransformer.h
theta
Scalar theta() const
theta method
Definition: AmgMatrixBasePlugin.h:71
MuonHoughHit
Definition: MuonHoughHit.h:28
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:562
protected
#define protected
Definition: DetDescrConditionsDict_dict_fixes.cxx:14
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
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:200
SCT_CalibAlgs::nbins
@ nbins
Definition: SCT_CalibNumbers.h:10
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::calculateAngle
static double calculateAngle(double hitx, double hity, double hitz, double z0)
Definition: MuonHoughTransformer_rz.cxx:100
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
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
angle
double angle(const GeoTrf::Vector2D &a, const GeoTrf::Vector2D &b)
Definition: TRTDetectorFactory_Full.cxx:73
TRT_PAI_physicsConstants::r0
const double r0
electron radius{cm}
Definition: TRT_PAI_physicsConstants.h:20
MuonHoughHitContainer
Definition: MuonHoughHitContainer.h:15
TRT::Track::z0
@ z0
Definition: InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h:63
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::~MuonHoughTransformer_rz
virtual ~MuonHoughTransformer_rz()=default
MuonHoughPattern
Definition: MuonHoughPattern.h:17
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::sector
int sector(const std::shared_ptr< MuonHoughHit > &hit) const override final
returns sector for coords
Definition: MuonHoughTransformer_rz.h:33
MuonHoughTransformer_rz
Definition: MuonHoughTransformer_rz.h:10
MuonHoughTransformer
Abstract base class, Strategy pattern.
Definition: MuonHoughTransformer.h:21