CbmRoot
CbmTrackMatchNew.cxx
Go to the documentation of this file.
1
6
#include "
CbmTrackMatchNew.h
"
7
8
#include "
CbmLink.h
"
// for CbmLink
9
10
#include <sstream>
// for operator<<, basic_ostream, stringstream
11
#include <string>
// for char_traits
12
#include <utility>
// for make_pair
13
#include <vector>
// for vector
14
15
using
std::make_pair;
16
using
std::stringstream;
17
18
CbmTrackMatchNew::CbmTrackMatchNew
()
19
:
CbmMatch
(), fNofTrueHits(0), fNofWrongHits(0) {}
20
21
CbmTrackMatchNew::~CbmTrackMatchNew
() {}
22
23
std::string
CbmTrackMatchNew::ToString
()
const
{
24
stringstream ss;
25
ss <<
"CbmMatch: "
;
26
Int_t nofLinks =
GetNofLinks
();
27
ss <<
"nofLinks="
<< nofLinks <<
"\n"
;
28
for
(Int_t
i
= 0;
i
< nofLinks;
i
++) {
29
const
CbmLink
& link =
fLinks
[
i
];
30
ss << link.
ToString
();
31
}
32
ss <<
"| totalWeight="
<<
fTotalWeight
<<
", matchedIndex="
<<
fMatchedIndex
33
<<
" nofTrueHits="
<<
fNofTrueHits
<<
" nofWrongHits="
<<
fNofWrongHits
34
<< std::endl;
35
return
ss.str();
36
}
37
38
ClassImp
(
CbmTrackMatchNew
);
CbmMatch
Definition:
CbmMatch.h:22
CbmMatch::GetNofLinks
Int_t GetNofLinks() const
Definition:
CbmMatch.h:38
CbmLink::ToString
virtual std::string ToString() const
Return string representation of the object.
Definition:
CbmLink.cxx:23
CbmMatch::fTotalWeight
Double_t fTotalWeight
Definition:
CbmMatch.h:55
CbmTrackMatchNew::ToString
virtual std::string ToString() const
Return string representation of the object.
Definition:
CbmTrackMatchNew.cxx:23
i
int i
Definition:
L1/vectors/P4_F32vec4.h:25
ClassImp
ClassImp(CbmTrackMatchNew)
CbmTrackMatchNew::fNofTrueHits
Int_t fNofTrueHits
Definition:
CbmTrackMatchNew.h:55
CbmMatch::fMatchedIndex
Int_t fMatchedIndex
Definition:
CbmMatch.h:56
CbmTrackMatchNew::CbmTrackMatchNew
CbmTrackMatchNew()
Default constructor.
Definition:
CbmTrackMatchNew.cxx:18
CbmTrackMatchNew.h
CbmTrackMatchNew::~CbmTrackMatchNew
virtual ~CbmTrackMatchNew()
Destructor.
Definition:
CbmTrackMatchNew.cxx:21
CbmLink.h
CbmTrackMatchNew
Definition:
CbmTrackMatchNew.h:19
CbmLink
Definition:
CbmLink.h:18
CbmTrackMatchNew::fNofWrongHits
Int_t fNofWrongHits
Definition:
CbmTrackMatchNew.h:56
CbmMatch::fLinks
std::vector< CbmLink > fLinks
Definition:
CbmMatch.h:54
core
data
CbmTrackMatchNew.cxx
Generated on Wed Oct 28 2020 15:11:47 for CbmRoot by
1.8.18