BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnTrackMatch.h
Go to the documentation of this file.
1
/**
2
* \file BmnTrackMatch.h
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
* Base data class for storing RECO-to-MCTrack matching information.
8
**/
9
10
#ifndef BMNTRACKMATCHNEW_H_
11
#define BMNTRACKMATCHNEW_H_
12
13
#include "
BmnMatch.h
"
14
15
#include <string>
16
17
using
std::string;
18
19
class
BmnTrackMatch
:
public
BmnMatch
20
{
21
public
:
22
/**
23
* \brief Default constructor.
24
*/
25
BmnTrackMatch
();
26
27
/**
28
* \brief Destructor.
29
*/
30
virtual
~BmnTrackMatch
();
31
32
/* Accessors */
33
Int_t
GetNofTrueHits
()
const
{
return
fNofTrueHits
; }
34
Int_t
GetNofWrongHits
()
const
{
return
fNofWrongHits
; }
35
Int_t
GetNofHits
()
const
{
return
fNofTrueHits
+
fNofWrongHits
; }
36
Double_t
GetTrueOverAllHitsRatio
()
const
37
{
38
Double_t
all =
GetNofHits
();
39
return
(all == 0) ? 0. : (
fNofTrueHits
/ all);
40
}
41
Double_t
GetWrongOverAllHitsRatio
()
const
42
{
43
Double_t
all =
GetNofHits
();
44
return
(all == 0) ? 0. : (
fNofWrongHits
/ all);
45
}
46
47
/* Modifiers */
48
void
SetNofTrueHits
(
Int_t
nofTrueHits) {
fNofTrueHits
= nofTrueHits; }
49
void
SetNofWrongHits
(
Int_t
nofWrongHits) {
fNofWrongHits
= nofWrongHits; }
50
51
/**
52
* \brief Return string representation of the object.
53
* \return String representation of the object.
54
**/
55
virtual
string
ToString
()
const
;
56
57
private
:
58
Int_t
fNofTrueHits
;
// Number of true hits in reconstructed track
59
Int_t
fNofWrongHits
;
// Number of wrong hits in reconstructed track
60
61
ClassDef
(
BmnTrackMatch
, 1);
62
};
63
64
#endif
/* BMNTRACKMATCHNEW_H_ */
Int_t
int Int_t
Double_t
double Double_t
ClassDef
#define ClassDef(name, id)
BmnMatch.h
BmnMatch::BmnMatch
BmnMatch()
Default constructor.
Definition
BmnMatch.cxx:15
BmnTrackMatch::fNofWrongHits
Int_t fNofWrongHits
Definition
BmnTrackMatch.h:59
BmnTrackMatch::SetNofTrueHits
void SetNofTrueHits(Int_t nofTrueHits)
Definition
BmnTrackMatch.h:48
BmnTrackMatch::ToString
virtual string ToString() const
Return string representation of the object.
Definition
BmnTrackMatch.cxx:24
BmnTrackMatch::GetNofHits
Int_t GetNofHits() const
Definition
BmnTrackMatch.h:35
BmnTrackMatch::GetWrongOverAllHitsRatio
Double_t GetWrongOverAllHitsRatio() const
Definition
BmnTrackMatch.h:41
BmnTrackMatch::GetNofTrueHits
Int_t GetNofTrueHits() const
Definition
BmnTrackMatch.h:33
BmnTrackMatch::GetNofWrongHits
Int_t GetNofWrongHits() const
Definition
BmnTrackMatch.h:34
BmnTrackMatch::SetNofWrongHits
void SetNofWrongHits(Int_t nofWrongHits)
Definition
BmnTrackMatch.h:49
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
BmnTrackMatch::GetTrueOverAllHitsRatio
Double_t GetTrueOverAllHitsRatio() const
Definition
BmnTrackMatch.h:36
base
data
BmnTrackMatch.h
Generated on
for BmnRoot by
1.17.0