BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
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
13
using
std::make_pair;
14
using
std::stringstream;
15
16
BmnTrackMatch::BmnTrackMatch
()
17
:
BmnMatch
()
18
,
fNofTrueHits
(0)
19
,
fNofWrongHits
(0)
20
{}
21
22
BmnTrackMatch::~BmnTrackMatch
() {}
23
24
string
BmnTrackMatch::ToString
()
const
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
}
i
int i
Definition
P4_F32vec4.h:22
Int_t
int Int_t
BmnTrackMatch.h
BmnLink
Definition
BmnLink.h:20
BmnLink::ToString
virtual string ToString() const
Return string representation of the object.
Definition
BmnLink.cxx:32
BmnMatch::fTotalWeight
Double_t fTotalWeight
Definition
BmnMatch.h:60
BmnMatch::fLinks
vector< BmnLink > fLinks
Definition
BmnMatch.h:59
BmnMatch::fMatchedIndex
Int_t fMatchedIndex
Definition
BmnMatch.h:61
BmnMatch::BmnMatch
BmnMatch()
Default constructor.
Definition
BmnMatch.cxx:15
BmnMatch::GetNofLinks
Int_t GetNofLinks() const
Definition
BmnMatch.h:41
BmnTrackMatch::fNofWrongHits
Int_t fNofWrongHits
Definition
BmnTrackMatch.h:59
BmnTrackMatch::ToString
virtual string ToString() const
Return string representation of the object.
Definition
BmnTrackMatch.cxx:24
BmnTrackMatch::fNofTrueHits
Int_t fNofTrueHits
Definition
BmnTrackMatch.h:58
BmnTrackMatch::~BmnTrackMatch
virtual ~BmnTrackMatch()
Destructor.
Definition
BmnTrackMatch.cxx:22
BmnTrackMatch::BmnTrackMatch
BmnTrackMatch()
Default constructor.
Definition
BmnTrackMatch.cxx:16
base
data
BmnTrackMatch.cxx
Generated on
for BmnRoot by
1.17.0