BmnRoot
Loading...
Searching...
No Matches
BmnTrackMatch.cxx
Go to the documentation of this file.
1
9#include "BmnTrackMatch.h"
10
11#include <sstream>
12
13using std::make_pair;
14using std::stringstream;
15
17 BmnMatch(),
18 fNofTrueHits(0),
19 fNofWrongHits(0)
20{
21}
22
24
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="
35 << fMatchedIndex << " nofTrueHits=" << fNofTrueHits
36 << " nofWrongHits=" << fNofWrongHits << std::endl;
37 return ss.str();
38}
int i
Definition P4_F32vec4.h:22
Double_t fTotalWeight
Definition BmnMatch.h:59
vector< BmnLink > fLinks
Definition BmnMatch.h:58
Int_t fMatchedIndex
Definition BmnMatch.h:60
Int_t GetNofLinks() const
Definition BmnMatch.h:40
virtual string ToString() const
Return string representation of the object.
virtual ~BmnTrackMatch()
Destructor.
BmnTrackMatch()
Default constructor.