BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnTrackMatch.cxx
Go to the documentation of this file.
1/**
2 * \file BmnTrackMatch.cxx
3 * \author Andrey Lebedev <andrey.lebedev@gsi.de> - original author for CBM experiment
4 * \author Sergey Merts <sergey.merts@gmail.com> - modifications for BMN experiment
5 * \date 2013-2014
6 *
7 **/
8
9#include "BmnTrackMatch.h"
10
11#include <sstream>
12
13using std::make_pair;
14using std::stringstream;
15
21
23
25{
26 stringstream ss;
27 ss << "BmnMatch: ";
28 Int_t nofLinks = GetNofLinks();
29 ss << "nofLinks=" << nofLinks << "\n";
30 for (Int_t i = 0; i < nofLinks; i++) {
31 const BmnLink& link = fLinks[i];
32 ss << link.ToString();
33 }
34 ss << "| totalWeight=" << fTotalWeight << ", matchedIndex=" << fMatchedIndex << " nofTrueHits=" << fNofTrueHits
35 << " nofWrongHits=" << fNofWrongHits << std::endl;
36 return ss.str();
37}
int i
Definition P4_F32vec4.h:22
int Int_t
Double_t fTotalWeight
Definition BmnMatch.h:60
vector< BmnLink > fLinks
Definition BmnMatch.h:59
Int_t fMatchedIndex
Definition BmnMatch.h:61
BmnMatch()
Default constructor.
Definition BmnMatch.cxx:15
Int_t GetNofLinks() const
Definition BmnMatch.h:41
virtual string ToString() const
Return string representation of the object.
virtual ~BmnTrackMatch()
Destructor.
BmnTrackMatch()
Default constructor.