BmnRoot
Loading...
Searching...
No Matches
CbmTrackMatch.h
Go to the documentation of this file.
1
11#ifndef CBMTRACKMATCH_H
12#define CBMTRACKMATCH_H 1
13
14
15#include "TObject.h"
16
17
18
19class CbmTrackMatch : public TObject
20{
21
22 public:
23
26
27
35 CbmTrackMatch(Int_t mcTrackID,
36 Int_t nTrue,
37 Int_t nWrong,
38 Int_t nFake,
39 Int_t nTracks);
40
41
43 virtual ~CbmTrackMatch();
44
45
47 Int_t GetMCTrackId() const { return fMCTrackId; };
48
50 Int_t GetNofTrueHits() const { return fNofTrueHits; };
51
53 Int_t GetNofWrongHits() const { return fNofWrongHits; };
54
56 Int_t GetNofFakeHits() const { return fNofFakeHits; };
57
59 Int_t GetNofMCTracks() const { return fNofMCTracks; };
60
61 Int_t GetNofHits() const { return fNofTrueHits + fNofWrongHits + fNofFakeHits; } //AZ
62 Double_t GetTrueOverAllHitsRatio() const { //AZ
63 Double_t all = GetNofHits();
64 return (all == 0) ? 0. : (fNofTrueHits / all);
65 }
66 Double_t GetWrongOverAllHitsRatio() const { //AZ
67 Double_t all = GetNofHits();
68 return (all == 0) ? 0. : ((fNofWrongHits+fNofFakeHits) / all);
69 }
70
71 private:
72
74 Int_t fMCTrackId;
75
77 Int_t fNofTrueHits;
78
80 Int_t fNofWrongHits;
81
83 Int_t fNofFakeHits;
84
86 Int_t fNofMCTracks;
87
88
89 ClassDef(CbmTrackMatch,1);
90
91};
92
93
94#endif
95
virtual ~CbmTrackMatch()
Int_t GetNofTrueHits() const
Double_t GetWrongOverAllHitsRatio() const
Int_t GetMCTrackId() const
Int_t GetNofMCTracks() const
Int_t GetNofFakeHits() const
Double_t GetTrueOverAllHitsRatio() const
Int_t GetNofHits() const
Int_t GetNofWrongHits() const