HerdSoftware  0.3.2
Public Member Functions | Private Attributes | List of all members
Herd::PairwiseTrack3DBuilderAlgo Class Reference

This algorithm builds 3D tracks from pairs of 2D tracks coming from a track-finding algorithm such as HoughFinder2DAlgo. This algorithms expects only two of the three collections to have tracks and does nothing if this condition is not fulfilled. Otherwise, it will build 3D tracks taking sequentially tracks from both collections, pairing them (the first track from the first collection is combined with the first track of the second collection, and so on...) until one of the two collection runs out of tracks. This means that this algo implicitly assumes that the tracks in the collections are "sorted" in reverse order of "significance". More...

#include <PairwiseTrack3DBuilderAlgo.h>

Inheritance diagram for Herd::PairwiseTrack3DBuilderAlgo:

Public Member Functions

 PairwiseTrack3DBuilderAlgo (const std::string &name)
 Constructor. More...
 
bool Initialize () override
 Initializes the algo. More...
 
bool Process () override
 Processes an event. More...
 

Private Attributes

StorePtr m_evStore
 
StorePtr m_globStore
 
std::vector< Trackm_tracks3D
 

Detailed Description

This algorithm builds 3D tracks from pairs of 2D tracks coming from a track-finding algorithm such as HoughFinder2DAlgo. This algorithms expects only two of the three collections to have tracks and does nothing if this condition is not fulfilled. Otherwise, it will build 3D tracks taking sequentially tracks from both collections, pairing them (the first track from the first collection is combined with the first track of the second collection, and so on...) until one of the two collection runs out of tracks. This means that this algo implicitly assumes that the tracks in the collections are "sorted" in reverse order of "significance".

Needed event objects:

name type store optional description
tracks2DColl Track2DColl evStore No HoughFinder tracks

Needed global objects: name | type | store | optional | description -----------------------—|-----------------—|----------—|-------—|----------------------—

Provided event objects:

name type alias store description
tracks3D_pairwise std::vector<Track> tracks3D evStore Combined 3D tracks

Parameters: name | type | default value | description --------------------—|-----------------—|--------------------------—|------------------------------------—

Constructor & Destructor Documentation

◆ PairwiseTrack3DBuilderAlgo()

Herd::PairwiseTrack3DBuilderAlgo::PairwiseTrack3DBuilderAlgo ( const std::string &  name)

Constructor.

Parameters
nameThe name of the algorithm object.

Member Function Documentation

◆ Initialize()

bool Herd::PairwiseTrack3DBuilderAlgo::Initialize ( )
override

Initializes the algo.

Returns
true if initialization is done without errors, false otherwise.

◆ Process()

bool Herd::PairwiseTrack3DBuilderAlgo::Process ( )
override

Processes an event.

Returns
true if no error occurs during processing, false otherwise.

Member Data Documentation

◆ m_evStore

StorePtr Herd::PairwiseTrack3DBuilderAlgo::m_evStore
private

◆ m_globStore

StorePtr Herd::PairwiseTrack3DBuilderAlgo::m_globStore
private

◆ m_tracks3D

std::vector<Track> Herd::PairwiseTrack3DBuilderAlgo::m_tracks3D
private

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