/
CbmRichMatchRings.h
90 lines (70 loc) · 1.86 KB
/
CbmRichMatchRings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/**
* \file CbmRichMatchRings.h
*
* \brief Task class for matching a reconstructed CbmRichRings with a simulated
* CbmMCTrack. The matching criterion is a maximal number of common
* hits/points. The task fills the data class CbmRichRingMatch for
* each CbmRichRing.
*
* \author Supriya Das
* \date 2006
**/
#ifndef CBM_RICH_MATCH_RINGS
#define CBM_RICH_MATCH_RINGS
#include "FairTask.h"
#include <map>
class TClonesArray;
/**
* \class CbmRichMatchRings
*
* \brief Task class for matching a reconstructed CbmRichRings with a simulated
* CbmMCTrack. The matching criterion is a maximal number of common
* hits/points. The task fills the data class CbmRichRingMatch for
* each CbmRichRing.
*
* \author Supriya Das
* \date 2006
**/
class CbmRichMatchRings : public FairTask
{
public:
/**
* \brief Default constructor.
*/
CbmRichMatchRings();
/**
* \brief Destructor.
*/
virtual ~CbmRichMatchRings();
/**
* \brief Inherited from FairTask.
*/
virtual InitStatus Init();
/**
* \brief Inherited from FairTask.
*/
virtual void Exec(
Option_t* opt);
/**
* \brief Inherited from FairTask.
*/
virtual void Finish();
private:
TClonesArray* fRings; // Array of CbmRichRings
TClonesArray* fPoints; // Array of FairMCPoints
TClonesArray* fTracks; // Array of CbmMCTracks
TClonesArray* fHits; // Array of CbmRichHits
TClonesArray* fMatches; // Array of CbmRichRingMatch
std::map<Int_t, Int_t> fMatchMap; // Map from MCTrackID to number of common hits
// std::map<Int_t, Int_t> fMatchMCMap; // Map from MCTrackID to number of common hits for MC rings
/**
* \brief Copy constructor.
*/
CbmRichMatchRings(const CbmRichMatchRings&);
/**
* \brief Assignment operator.
*/
CbmRichMatchRings& operator=(const CbmRichMatchRings&);
ClassDef(CbmRichMatchRings,1);
};
#endif