BmnRoot
Loading...
Searching...
No Matches
BmnTrackMatch.h
Go to the documentation of this file.
1
10#ifndef BMNTRACKMATCHNEW_H_
11#define BMNTRACKMATCHNEW_H_
12
13#include "BmnMatch.h"
14#include <string>
15
16using std::string;
17
18class BmnTrackMatch : public BmnMatch
19{
20public:
25
29 virtual ~BmnTrackMatch();
30
31 /* Accessors */
32 Int_t GetNofTrueHits() const { return fNofTrueHits; }
33 Int_t GetNofWrongHits() const { return fNofWrongHits; }
34 Int_t GetNofHits() const { return fNofTrueHits + fNofWrongHits; }
35 Double_t GetTrueOverAllHitsRatio() const {
36 Double_t all = GetNofHits();
37 return (all == 0) ? 0. : (fNofTrueHits / all);
38 }
39 Double_t GetWrongOverAllHitsRatio() const {
40 Double_t all = GetNofHits();
41 return (all == 0) ? 0. : (fNofWrongHits / all);
42 }
43
44 /* Modifiers */
45 void SetNofTrueHits(Int_t nofTrueHits) { fNofTrueHits = nofTrueHits; }
46 void SetNofWrongHits(Int_t nofWrongHits) { fNofWrongHits = nofWrongHits; }
47
52 virtual string ToString() const;
53
54private:
55 Int_t fNofTrueHits; // Number of true hits in reconstructed track
56 Int_t fNofWrongHits; // Number of wrong hits in reconstructed track
57
58 ClassDef(BmnTrackMatch, 1);
59};
60
61#endif /* BMNTRACKMATCHNEW_H_ */
void SetNofTrueHits(Int_t nofTrueHits)
virtual ~BmnTrackMatch()
Destructor.
Int_t GetNofHits() const
Double_t GetWrongOverAllHitsRatio() const
Int_t GetNofTrueHits() const
virtual string ToString() const
Return string representation of the object.
Int_t GetNofWrongHits() const
void SetNofWrongHits(Int_t nofWrongHits)
BmnTrackMatch()
Default constructor.
Double_t GetTrueOverAllHitsRatio() const