BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
17using std::string;
18
19class BmnTrackMatch : public BmnMatch
20{
21 public:
22 /**
23 * \brief Default constructor.
24 */
26
27 /**
28 * \brief Destructor.
29 */
30 virtual ~BmnTrackMatch();
31
32 /* Accessors */
33 Int_t GetNofTrueHits() const { return fNofTrueHits; }
37 {
38 Double_t all = GetNofHits();
39 return (all == 0) ? 0. : (fNofTrueHits / all);
40 }
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
62};
63
64#endif /* BMNTRACKMATCHNEW_H_ */
int Int_t
double Double_t
#define ClassDef(name, id)
BmnMatch()
Default constructor.
Definition BmnMatch.cxx:15
void SetNofTrueHits(Int_t nofTrueHits)
virtual string ToString() const
Return string representation of the object.
Int_t GetNofHits() const
Double_t GetWrongOverAllHitsRatio() const
Int_t GetNofTrueHits() const
Int_t GetNofWrongHits() const
void SetNofWrongHits(Int_t nofWrongHits)
virtual ~BmnTrackMatch()
Destructor.
BmnTrackMatch()
Default constructor.
Double_t GetTrueOverAllHitsRatio() const