Belle II Software  release-08-01-10
TRGCDCHoughFinder Class Reference

A class to find tracks using Hough algorithm. More...

#include <HoughFinder.h>

Collaboration diagram for TRGCDCHoughFinder:

Public Member Functions

 TRGCDCHoughFinder (const std::string &name, const TRGCDC &, unsigned peakMin, const std::string &mappingFilePlus, const std::string &mappingFileMinus, unsigned doit)
 Contructor.
 
virtual ~TRGCDCHoughFinder ()
 Destructor.
 
std::string name (void) const
 returns name.
 
std::string version (void) const
 returns version.
 
void terminate ()
 termination.
 
int FindAndFit (std::vector< TRGCDCTrack * > &trackList2D, std::vector< TRGCDCTrack * > &trackList2DFitted)
 do track finding and fitting (wrapper that can choose between different versions).
 
bool perfect (bool)
 sets and returns switch to do perfect finding.
 

Private Member Functions

int doFindingAndFittingTrasan (std::vector< TRGCDCTrack * > &trackList2D, std::vector< TRGCDCTrack * > &trackList2DFitted)
 do track finding and fitting (Trasan version).
 
int doFindingAndFitting (std::vector< TRGCDCTrack * > &trackList2D, std::vector< TRGCDCTrack * > &trackList2DFitted)
 do track finding and fitting (Kaiyu version).
 
std::vector< TRGCDCLink * > selectBestHits (const std::vector< TRGCDCLink * > &links) const
 selects the best(fastest) hits in each super layer.
 
void mappingByFile (const std::string &mappingFilePlus, const std::string &mappingFileMinus)
 creates mappings by a file.
 
int doFindingTrasan (std::vector< unsigned > peaks[], std::vector< TRGCDCTrack * > &trackList2D) const
 do track finding. (trasan version)
 
int doFinding (std::vector< std::vector< unsigned >> peaks[], std::vector< TRGCDCTrack * > &trackList2D)
 do track finding. (kaiyu version)
 
int doFittingTrasan (std::vector< unsigned > peaks[], std::vector< TRGCDCTrack * > &trackList2DFitted) const
 do track fitting. (old trasan version)
 
int doFitting (std::vector< TRGCDCTrack * > &trackList2D, std::vector< TRGCDCTrack * > &trackList2DFitted)
 do track fitting. (kaiyu original) More...
 
TRGCDCTrackmakeTrack (const unsigned serialID, const unsigned pm) const
 Make a track from serial ID in Hough plane. More...
 

Static Private Member Functions

static double calPhi (TRGCDCSegmentHit const *segmentHit, double eventTime)
 Utility functions.
 
static void calCosPhi (std::map< std::string, Belle2::TRGCDCJSignal > &mSignalStorage, std::map< std::string, Belle2::TRGCDCJLUT * > &mLutStorage)
 Calculate Cos Sin ? More...
 
static void calSinPhi (std::map< std::string, Belle2::TRGCDCJSignal > &mSignalStorage, std::map< std::string, Belle2::TRGCDCJLUT * > &mLutStorage)
 Calculate Cos Sin ?
 
static void rPhi (std::map< std::string, Belle2::TRGCDCJSignal > &mSignalStorage, std::map< std::string, Belle2::TRGCDCJLUT * > &mLutStorage)
 Calculate r * phi ?
 

Private Attributes

const std::string _name
 Name.
 
const TRGCDC_cdc
 CDCTRG.
 
TRGCDCHoughPlaneMulti2_plane [2]
 Hough planes, for + and - charges.
 
TRGCDCHoughTransformationCircle _circleH
 Circle Hough transformtion.
 
const unsigned _doit
 Doit version.
 
TRGCDCPeakFinder _peakFinder
 Peak finder.
 
const unsigned _peakMin
 Min. peak height for the peak finder.
 
std::map< std::string, double > m_mDouble
 Map to hold double values for Fitter2D.
 
std::map< std::string, std::vector< double > > m_mVector
 Map to hold vector values for Fitter2D.
 
std::map< std::string, double > m_mConstants
 Map to hold const values for Fitter2D.
 
std::map< std::string, double > m_mConstD
 Map to ?
 
std::map< std::string, std::vector< double > > m_mConstV
 Map to ?
 
std::map< std::string, bool > m_mBool
 Map to hold input options.
 
std::map< std::string, TRGCDCJSignalm_mSignalStorage
 Map to hold JSignals.
 
std::map< std::string, TRGCDCJLUT * > m_mLutStorage
 Map to hold JLuts.
 
TRGCDCJSignalData_commonData
 For VHDL code.
 

Detailed Description

A class to find tracks using Hough algorithm.

Definition at line 42 of file HoughFinder.h.


The documentation for this class was generated from the following files: