ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
MuonR4::HoughSegmentSeed_impl< HitType > Class Template Reference

Representation of a segment seed (a fully processed hough maximum) produced by the hough transform. More...

#include <HoughSegmentSeed.h>

Inheritance diagram for MuonR4::HoughSegmentSeed_impl< HitType >:
Collaboration diagram for MuonR4::HoughSegmentSeed_impl< HitType >:

Public Member Functions

 HoughSegmentSeed_impl (double tanTheta, double interceptY, double tanPhi, double interceptX, double counts, std::vector< HitType > &&hits)
 Constructor to write a segment seed from an eta maximum and a valid phi extension. More...
 
 HoughSegmentSeed_impl (const HoughMaximum_impl< HitType > &toCopy)
 Constructor to write a segment seed from an eta maximum without a valid phi extension. More...
 
double tanPhi () const
 getter More...
 
double interceptX () const
 getter More...
 
bool hasPhiExtension () const
 check whether the segment seed includes a valid phi extension More...
 
double tanTheta () const
 getter More...
 
double interceptY () const
 getter More...
 
double getCounts () const
 getter More...
 
const std::vector< HitType > & getHitsInMax () const
 getter More...
 

Private Attributes

double m_tanPhi {0.}
 
double m_interceptX {0.}
 
bool m_hasPhiExt {false}
 
double m_tanTheta {0.}
 
double m_interceptY {0.}
 
double m_counts {0.}
 
std::vector< HitTypem_hitsInMax {}
 

Detailed Description

template<class HitType>
class MuonR4::HoughSegmentSeed_impl< HitType >

Representation of a segment seed (a fully processed hough maximum) produced by the hough transform.

Template Parameters
HitTypeData type encoding the hits used in the transform

Definition at line 13 of file HoughSegmentSeed.h.

Constructor & Destructor Documentation

◆ HoughSegmentSeed_impl() [1/2]

template<class HitType >
MuonR4::HoughSegmentSeed_impl< HitType >::HoughSegmentSeed_impl ( double  tanTheta,
double  interceptY,
double  tanPhi,
double  interceptX,
double  counts,
std::vector< HitType > &&  hits 
)
inline

Constructor to write a segment seed from an eta maximum and a valid phi extension.

Parameters
tanThetatan(theta) from the eta-transform
interceptYy axis intercept from the eta-transform
tanPhitan(phi) from the phi-extension
interceptXx axis intercept from the phi-extension
counts(weighted) counts for the given hough maximum
hitsMeasurements on this maximum

Definition at line 23 of file HoughSegmentSeed.h.

26  : HoughMaximum_impl<HitType>(tanTheta, interceptY, counts, std::move(hits)),
29  m_hasPhiExt = true;
30  }

◆ HoughSegmentSeed_impl() [2/2]

template<class HitType >
MuonR4::HoughSegmentSeed_impl< HitType >::HoughSegmentSeed_impl ( const HoughMaximum_impl< HitType > &  toCopy)
inline

Constructor to write a segment seed from an eta maximum without a valid phi extension.

Parameters
toCopyEta maximum

Definition at line 35 of file HoughSegmentSeed.h.

35  : HoughMaximum_impl<HitType>(toCopy) {
36  m_hasPhiExt = false;
37  }

Member Function Documentation

◆ getCounts()

template<class HitType >
double MuonR4::HoughMaximum_impl< HitType >::getCounts ( ) const
inlineinherited

getter

Returns
the counts for this maximum

Definition at line 38 of file HoughMaximum.h.

38 { return m_counts; }

◆ getHitsInMax()

template<class HitType >
const std::vector<HitType>& MuonR4::HoughMaximum_impl< HitType >::getHitsInMax ( ) const
inlineinherited

getter

Returns
the hits assigned to this maximum

Definition at line 41 of file HoughMaximum.h.

41  {
42  return m_hitsInMax;
43  }

◆ hasPhiExtension()

template<class HitType >
bool MuonR4::HoughSegmentSeed_impl< HitType >::hasPhiExtension ( ) const
inline

check whether the segment seed includes a valid phi extension

Returns
true if an extension exists, false if we are dealing with a pure eta maximum

Definition at line 51 of file HoughSegmentSeed.h.

51 { return m_hasPhiExt; }

◆ interceptX()

template<class HitType >
double MuonR4::HoughSegmentSeed_impl< HitType >::interceptX ( ) const
inline

getter

Returns
the intercept from the phi extension

Definition at line 45 of file HoughSegmentSeed.h.

45 { return m_interceptX; }

◆ interceptY()

template<class HitType >
double MuonR4::HoughMaximum_impl< HitType >::interceptY ( ) const
inlineinherited

getter

Returns
the intercept coordinate of the eta transform

Definition at line 35 of file HoughMaximum.h.

35 { return m_interceptY; }

◆ tanPhi()

template<class HitType >
double MuonR4::HoughSegmentSeed_impl< HitType >::tanPhi ( ) const
inline

getter

Returns
the angle from the phi extension

Definition at line 41 of file HoughSegmentSeed.h.

41 { return m_tanPhi; }

◆ tanTheta()

template<class HitType >
double MuonR4::HoughMaximum_impl< HitType >::tanTheta ( ) const
inlineinherited

getter

Returns
the angular coordinate of the eta transform

Definition at line 31 of file HoughMaximum.h.

31 { return m_tanTheta; }

Member Data Documentation

◆ m_counts

template<class HitType >
double MuonR4::HoughMaximum_impl< HitType >::m_counts {0.}
privateinherited

Definition at line 48 of file HoughMaximum.h.

◆ m_hasPhiExt

template<class HitType >
bool MuonR4::HoughSegmentSeed_impl< HitType >::m_hasPhiExt {false}
private

Definition at line 56 of file HoughSegmentSeed.h.

◆ m_hitsInMax

template<class HitType >
std::vector<HitType> MuonR4::HoughMaximum_impl< HitType >::m_hitsInMax {}
privateinherited

Definition at line 49 of file HoughMaximum.h.

◆ m_interceptX

template<class HitType >
double MuonR4::HoughSegmentSeed_impl< HitType >::m_interceptX {0.}
private

Definition at line 55 of file HoughSegmentSeed.h.

◆ m_interceptY

template<class HitType >
double MuonR4::HoughMaximum_impl< HitType >::m_interceptY {0.}
privateinherited

Definition at line 47 of file HoughMaximum.h.

◆ m_tanPhi

template<class HitType >
double MuonR4::HoughSegmentSeed_impl< HitType >::m_tanPhi {0.}
private

Definition at line 54 of file HoughSegmentSeed.h.

◆ m_tanTheta

template<class HitType >
double MuonR4::HoughMaximum_impl< HitType >::m_tanTheta {0.}
privateinherited

Definition at line 46 of file HoughMaximum.h.


The documentation for this class was generated from the following file:
MuonR4::HoughSegmentSeed_impl::m_tanPhi
double m_tanPhi
Definition: HoughSegmentSeed.h:54
MuonR4::HoughSegmentSeed_impl::m_interceptX
double m_interceptX
Definition: HoughSegmentSeed.h:55
MuonR4::HoughMaximum_impl::tanTheta
double tanTheta() const
getter
Definition: HoughMaximum.h:31
MuonR4::HoughMaximum_impl::interceptY
double interceptY() const
getter
Definition: HoughMaximum.h:35
MuonR4::HoughMaximum_impl::m_interceptY
double m_interceptY
Definition: HoughMaximum.h:47
MuonR4::HoughMaximum_impl::m_hitsInMax
std::vector< HitType > m_hitsInMax
Definition: HoughMaximum.h:49
LArG4ShowerLibProcessing.hits
hits
Definition: LArG4ShowerLibProcessing.py:136
MuonR4::HoughSegmentSeed_impl::tanPhi
double tanPhi() const
getter
Definition: HoughSegmentSeed.h:41
MuonR4::HoughMaximum_impl::m_tanTheta
double m_tanTheta
Definition: HoughMaximum.h:46
MuonR4::HoughMaximum_impl::m_counts
double m_counts
Definition: HoughMaximum.h:48
MuonR4::HoughSegmentSeed_impl::m_hasPhiExt
bool m_hasPhiExt
Definition: HoughSegmentSeed.h:56
MuonR4::HoughSegmentSeed_impl::interceptX
double interceptX() const
getter
Definition: HoughSegmentSeed.h:45