|
CbmRoot
|
#include <CaMcMatch.h>
Public Member Functions | |
| McMatch ()=default | |
| Default constructor. | |
| McMatch (const McMatch &)=default | |
| Copy constructor. | |
| McMatch (McMatch &&)=default | |
| Move constructor. | |
| McMatch & | operator= (const McMatch &)=default |
| Copy assignment operator. | |
| McMatch & | operator= (McMatch &&)=default |
| Move assignment operator. | |
| ~McMatch ()=default | |
| Destructor. | |
| void | AddLink (int linkIndex, float linkWeight) |
| int | GetNofLinks () const |
| int | GetBestLinkIndex () const |
| int | GetLink (int i) const |
| float | GetLinkWeight (int i) const |
| bool | IsEmpty () const |
| void | Clear () |
| bool | operator== (const McMatch &other) const |
| bool | operator!= (const McMatch &other) const |
| std::string | ToString () const |
Private Attributes | |
| int | fNofLinks = 0 |
| Number of matched links. | |
| std::array< int, 5 > | fLinks = {-1, -1, -1, -1, -1} |
| Array of matched link indices. | |
| std::array< float, 5 > | fLinkWeights = {0, 0, 0, 0, 0} |
| Array of matched link weights. | |
| int | fBestLinkIndex = -1 |
| Index of the best link in fLinks array. | |
Definition at line 21 of file CaMcMatch.h.
|
default |
Default constructor.
Referenced by McMatch(), McMatch(), operator!=(), operator=(), operator=(), and operator==().
|
default |
Destructor.
|
inline |
Add a new link to the set of links
| linkIndex | Index of the link to be added |
| linkWeight | Weight of the link to be added |
Definition at line 45 of file CaMcMatch.h.
References fBestLinkIndex, fLinks, fLinkWeights, and fNofLinks.
Referenced by cbm::algo::ca::McData::GetMcMatchForCaHit().
|
inline |
Definition at line 89 of file CaMcMatch.h.
References fBestLinkIndex, fLinks, fLinkWeights, and fNofLinks.
|
inline |
Get the index of the best link in the set
Definition at line 63 of file CaMcMatch.h.
References fBestLinkIndex.
|
inline |
Get the index of the link in the set by its position
| i | Position of the link in the set (0 <= i < GetNofLinks()) |
Definition at line 68 of file CaMcMatch.h.
References fLinks, and fNofLinks.
Referenced by cbm::algo::ca::TripletConstructorSW::CreateTripletsForHit().
|
inline |
Get the weight of the link in the set by its position
| i | Position of the link in the set (0 <= i < GetNofLinks()) |
Definition at line 79 of file CaMcMatch.h.
References fLinkWeights, and fNofLinks.
|
inline |
Get the number of links in the set
Definition at line 59 of file CaMcMatch.h.
References fNofLinks.
Referenced by cbm::algo::ca::TripletConstructorSW::CreateTripletsForHit().
|
inline |
Definition at line 87 of file CaMcMatch.h.
References fNofLinks.
Referenced by cbm::algo::ca::TripletConstructor::CollectHits(), cbm::algo::ca::TripletConstructorSW::CollectHits(), cbm::algo::ca::TripletConstructor::CreateTripletsForHit(), cbm::algo::ca::TripletConstructorSW::CreateTripletsForHit(), cbm::algo::ca::TripletConstructorSW::FindClosestHitWithMc(), cbm::algo::ca::TripletConstructor::FindTripletHits(), and cbm::algo::ca::TripletConstructorSW::FindTripletHits().
|
inline |
Definition at line 115 of file CaMcMatch.h.
References McMatch().
Copy assignment operator.
References McMatch().
Move assignment operator.
References McMatch().
|
inline |
Definition at line 97 of file CaMcMatch.h.
References fLinks, fLinkWeights, fNofLinks, and McMatch().
|
inline |
Definition at line 117 of file CaMcMatch.h.
References fBestLinkIndex, fLinks, fLinkWeights, and fNofLinks.
|
private |
Index of the best link in fLinks array.
Definition at line 131 of file CaMcMatch.h.
Referenced by AddLink(), Clear(), GetBestLinkIndex(), and ToString().
|
private |
Array of matched link indices.
Definition at line 129 of file CaMcMatch.h.
Referenced by AddLink(), Clear(), GetLink(), operator==(), and ToString().
|
private |
Array of matched link weights.
Definition at line 130 of file CaMcMatch.h.
Referenced by AddLink(), Clear(), GetLinkWeight(), operator==(), and ToString().
|
private |
Number of matched links.
Definition at line 128 of file CaMcMatch.h.
Referenced by AddLink(), Clear(), GetLink(), GetLinkWeight(), GetNofLinks(), IsEmpty(), operator==(), and ToString().