Belle II Software development
BaseCandidateReceiver Class Reference

Base class that receives candidates found by quadtree. More...

#include <BaseCandidateReceiver.h>

Inheritance diagram for BaseCandidateReceiver:
OffOriginExtension

Public Member Functions

 BaseCandidateReceiver (std::vector< const CDCWireHit * > allAxialWireHits)
 Constructor.
 
virtual ~BaseCandidateReceiver ()
 Destructor.
 
virtual void operator() (const std::vector< const CDCWireHit * > &inputWireHits, void *qt)
 Main entry point for the post processing call from the QuadTreeProcessor.
 
const std::vector< CDCTrack > & getTracks () const
 Get the collected tracks.
 

Protected Attributes

std::vector< const CDCWireHit * > m_allAxialWireHits
 Pool of all axial hits from which the road search may select additional hits.
 
std::vector< CDCTrackm_tracks
 Collected tracks.
 

Detailed Description

Base class that receives candidates found by quadtree.

Definition at line 25 of file BaseCandidateReceiver.h.

Constructor & Destructor Documentation

◆ BaseCandidateReceiver()

BaseCandidateReceiver ( std::vector< const CDCWireHit * >  allAxialWireHits)
explicit

Constructor.

Definition at line 15 of file BaseCandidateReceiver.cc.

16 : m_allAxialWireHits(std::move(allAxialWireHits))
17{
18}
std::vector< const CDCWireHit * > m_allAxialWireHits
Pool of all axial hits from which the road search may select additional hits.

◆ ~BaseCandidateReceiver()

~BaseCandidateReceiver ( )
virtual

Destructor.

Definition at line 20 of file BaseCandidateReceiver.cc.

21{
22}

Member Function Documentation

◆ getTracks()

const std::vector< CDCTrack > & getTracks ( ) const

Get the collected tracks.

Definition at line 40 of file BaseCandidateReceiver.cc.

41{
42 return m_tracks;
43}
std::vector< CDCTrack > m_tracks
Collected tracks.

◆ operator()()

void operator() ( const std::vector< const CDCWireHit * > &  inputWireHits,
void *  qt 
)
virtual

Main entry point for the post processing call from the QuadTreeProcessor.

Reimplemented in OffOriginExtension.

Definition at line 24 of file BaseCandidateReceiver.cc.

26{
27 // Unset the taken flag
28 // NOTE after QuadTreeProcessor finds a leaf, it marks all items as "taken"
29 for (const CDCWireHit* wireHit : inputWireHits) {
30 (*wireHit)->setTakenFlag(false);
31 }
35 true, // fromOrigin
36 false, // straight
37 false); // withPostprocessing
38}
Class representing a hit wire in the central drift chamber.
Definition: CDCWireHit.h:55
static void addCandidateFromHits(const std::vector< const CDCWireHit * > &foundAxialWireHits, const std::vector< const CDCWireHit * > &allAxialWireHits, std::vector< CDCTrack > &axialTracks, bool fromOrigin=true, bool straight=true, bool withPostprocessing=true)
Create CDCTrack using CDCWireHit hits and store it in the list.

Member Data Documentation

◆ m_allAxialWireHits

std::vector<const CDCWireHit*> m_allAxialWireHits
protected

Pool of all axial hits from which the road search may select additional hits.

Definition at line 39 of file BaseCandidateReceiver.h.

◆ m_tracks

std::vector<CDCTrack> m_tracks
protected

Collected tracks.

Definition at line 42 of file BaseCandidateReceiver.h.


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