BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
TFastFinder Class Reference

A class to find tracks with the conformal method. More...

#include <TFastFinder.h>

Inheritance diagram for TFastFinder:

Public Member Functions

 TFastFinder ()
 Constructor.
virtual ~TFastFinder ()
 Destructor.
std::string name (void) const
 returns name.
std::string version (void) const
 returns version.
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
void clear (void)
 clear internal information.
int doit (const AList< TMDCWireHit > &axialHits, const AList< TMDCWireHit > &stereoHits, AList< TTrack > &tracks)
 finds tracks.
 TFastFinder ()
 Constructor.
virtual ~TFastFinder ()
 Destructor.
std::string name (void) const
 returns name.
std::string version (void) const
 returns version.
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
void clear (void)
 clear internal information.
int doit (const AList< TMDCWireHit > &axialHits, const AList< TMDCWireHit > &stereoHits, AList< TTrack > &tracks)
 finds tracks.
 TFastFinder ()
 Constructor.
virtual ~TFastFinder ()
 Destructor.
std::string name (void) const
 returns name.
std::string version (void) const
 returns version.
void dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
 dumps debug information.
void clear (void)
 clear internal information.
int doit (const AList< TMDCWireHit > &axialHits, const AList< TMDCWireHit > &stereoHits, AList< TTrack > &tracks)
 finds tracks.
Public Member Functions inherited from TFinderBase
 TFinderBase ()
 Constructor.
virtual ~TFinderBase ()
 Destructor.
virtual int debugLevel (void) const
 returns debug level.
virtual int debugLevel (int)
 sets debug level.
virtual bool doStereo (bool)
 sets flag to reconstruct 3D.
virtual bool doSalvage (bool)
 sets flag to salvage hits.
virtual int doit (const AList< TMDCWireHit > &axialHits, const AList< TMDCWireHit > &stereoHits, AList< TTrack > &tracks3D, AList< TTrack > &tracks2D)=0
 TFinderBase ()
 Constructor.
virtual ~TFinderBase ()
 Destructor.
virtual int debugLevel (void) const
 returns debug level.
virtual int debugLevel (int)
 sets debug level.
virtual bool doStereo (bool)
 sets flag to reconstruct 3D.
virtual bool doSalvage (bool)
 sets flag to salvage hits.
virtual int doit (const AList< TMDCWireHit > &axialHits, const AList< TMDCWireHit > &stereoHits, AList< TTrack > &tracks3D, AList< TTrack > &tracks2D)=0
 TFinderBase ()
 Constructor.
virtual ~TFinderBase ()
 Destructor.
virtual int debugLevel (void) const
 returns debug level.
virtual int debugLevel (int)
 sets debug level.
virtual bool doStereo (bool)
 sets flag to reconstruct 3D.
virtual bool doSalvage (bool)
 sets flag to salvage hits.
virtual int doit (const AList< TMDCWireHit > &axialHits, const AList< TMDCWireHit > &stereoHits, AList< TTrack > &tracks3D, AList< TTrack > &tracks2D)=0

Detailed Description

A class to find tracks with the conformal method.

Definition at line 26 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TFastFinder.h.

Constructor & Destructor Documentation

◆ TFastFinder() [1/3]

TFastFinder::TFastFinder ( )

Constructor.

Definition at line 20 of file TFastFinder.cxx.

20 : _builder( "fast find builder", 30 ) {
21 _selector.nLinks( 4 );
22 _selector.nSuperLayers( 2 );
23 _selector.minPt( 0.05 );
24 _selector.maxImpact( 100. );
25 _selector.maxSigma( 30. );
26 _selector.nLinksStereo( 3 );
27 _selector.maxDistance( 30. );
28 _builder.trackSelector( _selector );
29}

◆ ~TFastFinder() [1/3]

TFastFinder::~TFastFinder ( )
virtual

Destructor.

Definition at line 31 of file TFastFinder.cxx.

31{}

◆ TFastFinder() [2/3]

TFastFinder::TFastFinder ( )

Constructor.

◆ ~TFastFinder() [2/3]

virtual TFastFinder::~TFastFinder ( )
virtual

Destructor.

◆ TFastFinder() [3/3]

TFastFinder::TFastFinder ( )

Constructor.

◆ ~TFastFinder() [3/3]

virtual TFastFinder::~TFastFinder ( )
virtual

Destructor.

Member Function Documentation

◆ clear() [1/3]

void TFastFinder::clear ( void )
virtual

clear internal information.

Implements TFinderBase.

Definition at line 40 of file TFastFinder.cxx.

40 {
41 _axialHits.removeAll();
42 _stereoHits.removeAll();
43 HepAListDeleteAll( _axialLinks );
44 HepAListDeleteAll( _stereoLinks );
45}

◆ clear() [2/3]

void TFastFinder::clear ( void )
virtual

clear internal information.

Implements TFinderBase.

◆ clear() [3/3]

void TFastFinder::clear ( void )
virtual

clear internal information.

Implements TFinderBase.

◆ doit() [1/3]

int TFastFinder::doit ( const AList< TMDCWireHit > & axialHits,
const AList< TMDCWireHit > & stereoHits,
AList< TTrack > & tracks )

finds tracks.

Definition at line 47 of file TFastFinder.cxx.

48 {
49
50 //...Select good hits...
51 selectHits2( axialHits, stereoHits );
52
53 //...Conformal transformation with IP constraint...
55 TConformalFinder0::conformalTransformationRphi( ORIGIN, _stereoHits, _stereoLinks );
56
57 //...Make a histogram...
58 THistogram hist( 288 );
59 hist.fillX( _axialLinks );
60 AList<TSegment0> clusters = hist.clusters0();
61
62 //...Cluster loop...
63 unsigned n = clusters.length();
64 for ( unsigned i = 0; i < n; i++ )
65 {
66
67 //...2D track...
68 TTrack* t = _builder.buildRphi( clusters[i]->links() );
69 if ( t == NULL ) continue;
70#ifdef TRKRECO_DEBUG_DETAIL
71 std::cout << "TFastFinder::doit ... 2D track found" << std::endl;
72#endif
73
74 //...Make it 3D...
75 TTrack* ts = t;
76 ts = _builder.buildStereo( *t, findCloseHits( _stereoLinks, *t ) );
77 if ( ts == NULL ) continue;
78#ifdef TRKRECO_DEBUG_DETAIL
79 std::cout << "TFastFinder::doit ... 3D track found" << std::endl;
80#endif
81
82 //...OK...
84 t->finder( TrackFastFinder );
85 // t->assign(WireHitFastFinder, TrackFastFinder);
86 tracks.append( t );
87 _stereoLinks.remove( t->links() );
88 }
89
90 //...Termination...
91 HepAListDeleteAll( clusters );
92 return 0;
93}
const Int_t n
const HepPoint3D ORIGIN
Constants.
Definition TMDCUtil.cxx:47
static void conformalTransformationRphi(const HepPoint3D &center, const AList< TMDCWireHit > &hits, AList< TMLink > &links)
void assign(unsigned maskForWireHit)
assigns wire hits to this track.
Definition TTrack.cxx:3648
int t()
Definition t.c:1

◆ doit() [2/3]

int TFastFinder::doit ( const AList< TMDCWireHit > & axialHits,
const AList< TMDCWireHit > & stereoHits,
AList< TTrack > & tracks )

finds tracks.

◆ doit() [3/3]

int TFastFinder::doit ( const AList< TMDCWireHit > & axialHits,
const AList< TMDCWireHit > & stereoHits,
AList< TTrack > & tracks )

finds tracks.

◆ dump() [1/3]

void TFastFinder::dump ( const std::string & message = std::string( "" ),
const std::string & prefix = std::string( "" ) ) const
virtual

dumps debug information.

Reimplemented from TFinderBase.

Definition at line 35 of file TFastFinder.cxx.

35 {
36 std::cout << pre;
37 TFinderBase::dump( msg );
38}
virtual void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.

◆ dump() [2/3]

void TFastFinder::dump ( const std::string & message = std::string(""),
const std::string & prefix = std::string("") ) const
virtual

dumps debug information.

Reimplemented from TFinderBase.

◆ dump() [3/3]

void TFastFinder::dump ( const std::string & message = std::string(""),
const std::string & prefix = std::string("") ) const
virtual

dumps debug information.

Reimplemented from TFinderBase.

◆ name() [1/3]

std::string TFastFinder::name ( void ) const
inlinevirtual

returns name.

Implements TFinderBase.

Definition at line 90 of file InstallArea/x86_64-el9-gcc13-dbg/include/TrkReco/TFastFinder.h.

90{ return "Fast Finder"; }

◆ name() [2/3]

std::string TFastFinder::name ( void ) const
virtual

returns name.

Implements TFinderBase.

◆ name() [3/3]

std::string TFastFinder::name ( void ) const
virtual

returns name.

Implements TFinderBase.

◆ version() [1/3]

std::string TFastFinder::version ( void ) const
virtual

returns version.

Implements TFinderBase.

Definition at line 33 of file TFastFinder.cxx.

33{ return "0.00"; }

◆ version() [2/3]

std::string TFastFinder::version ( void ) const
virtual

returns version.

Implements TFinderBase.

◆ version() [3/3]

std::string TFastFinder::version ( void ) const
virtual

returns version.

Implements TFinderBase.


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