BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
CbmMvdHitMatch.h
Go to the documentation of this file.
1
// -------------------------------------------------------------------------
2
// ----- CbmMvdHitMatch header file -----
3
// ----- Created 07/11/06 by V. Friese -----
4
// -------------------------------------------------------------------------
5
6
/** CbmMvdHitMatch header file
7
*@author Michael Deveaux <m.deveaux@gsi.de>
8
**
9
** Former CbmStsMapsHitInfo
10
** Data class for connecting CbmMvdHit with MC information.
11
** Data level RECO
12
**/
13
14
#ifndef CBMMVDHITMATCH_H
15
#define CBMMVDHITMATCH_H 1
16
17
#include "
TObject.h
"
18
19
class
CbmMvdHitMatch
:
public
TObject
20
{
21
22
public
:
23
/** Default constructor **/
24
CbmMvdHitMatch
();
25
26
/** Constructor with all parameters **/
27
CbmMvdHitMatch
(
Int_t
fileNumber,
Int_t
eventNumber,
Int_t
trackId,
Int_t
pointId,
Int_t
nMerged);
28
29
/** Destructor **/
30
virtual
~CbmMvdHitMatch
();
31
32
/** Accessors **/
33
Int_t
GetFileNumber
()
const
{
return
fFileNumber
; }
34
Int_t
GetEventNumber
()
const
{
return
fEventNumber
; }
35
Int_t
GetTrackId
()
const
{
return
fTrackId
; }
36
Int_t
GetPointId
()
const
{
return
fPointId
; }
37
Int_t
GetNMerged
()
const
{
return
fNMerged
; }
38
Bool_t
IsFake
()
const
39
{
40
if
(
fPointId
== -1)
41
return
kTRUE
;
42
else
43
return
kFALSE
;
44
}
45
46
/** Modifiers **/
47
void
AddMerged
() {
fNMerged
++; }
48
49
/** Reset data members **/
50
void
Clear
();
51
52
private
:
53
/** Indicates the file to which the corresponding point belongs.
54
** -1 => no file (fake hit)
55
** 0 => data file
56
** 1 => background file (pileup)
57
**/
58
Int_t
fFileNumber
;
59
60
/** Event number of the corresponding MCPoint. Important to
61
** find it in background files due to the random access.
62
** -1 => no corresponding MCPoint (fake hit)
63
** 0 => current event in data file
64
** n => event in pileup file
65
**/
66
Int_t
fEventNumber
;
67
68
/** Index of the corresponding MCTrack in its TClonesArray.
69
** Also true for background files.
70
** -1 for fake hits
71
**/
72
Int_t
fTrackId
;
73
74
/** Index of the corresponding MCPoint in its TClonesArray.
75
** Also true for background files.
76
** -1 for fake hits
77
**/
78
Int_t
fPointId
;
79
80
/** Number of other hits this one is merged with
81
** -1 => Hit was created without checking for merging
82
** 0 => Hit was not merged
83
** n => Hit was merged with n other hits
84
**/
85
Int_t
fNMerged
;
86
87
ClassDef
(
CbmMvdHitMatch
, 1);
88
};
89
90
#endif
Bool_t
bool Bool_t
Int_t
int Int_t
kFALSE
constexpr Bool_t kFALSE
kTRUE
constexpr Bool_t kTRUE
ClassDef
#define ClassDef(name, id)
TObject.h
CbmMvdHitMatch
CbmMvdHitMatch header file.
Definition
CbmMvdHitMatch.h:20
CbmMvdHitMatch::GetEventNumber
Int_t GetEventNumber() const
Definition
CbmMvdHitMatch.h:34
CbmMvdHitMatch::GetFileNumber
Int_t GetFileNumber() const
Accessors.
Definition
CbmMvdHitMatch.h:33
CbmMvdHitMatch::Clear
void Clear()
Reset data members.
CbmMvdHitMatch::AddMerged
void AddMerged()
Modifiers.
Definition
CbmMvdHitMatch.h:47
CbmMvdHitMatch::fFileNumber
Int_t fFileNumber
Indicates the file to which the corresponding point belongs.
Definition
CbmMvdHitMatch.h:58
CbmMvdHitMatch::GetPointId
Int_t GetPointId() const
Definition
CbmMvdHitMatch.h:36
CbmMvdHitMatch::CbmMvdHitMatch
CbmMvdHitMatch(Int_t fileNumber, Int_t eventNumber, Int_t trackId, Int_t pointId, Int_t nMerged)
Constructor with all parameters.
CbmMvdHitMatch::fNMerged
Int_t fNMerged
Number of other hits this one is merged with -1 => Hit was created without checking for merging 0 => ...
Definition
CbmMvdHitMatch.h:85
CbmMvdHitMatch::IsFake
Bool_t IsFake() const
Definition
CbmMvdHitMatch.h:38
CbmMvdHitMatch::GetTrackId
Int_t GetTrackId() const
Definition
CbmMvdHitMatch.h:35
CbmMvdHitMatch::fPointId
Int_t fPointId
Index of the corresponding MCPoint in its TClonesArray.
Definition
CbmMvdHitMatch.h:78
CbmMvdHitMatch::GetNMerged
Int_t GetNMerged() const
Definition
CbmMvdHitMatch.h:37
CbmMvdHitMatch::~CbmMvdHitMatch
virtual ~CbmMvdHitMatch()
Destructor.
CbmMvdHitMatch::CbmMvdHitMatch
CbmMvdHitMatch()
Default constructor.
CbmMvdHitMatch::fTrackId
Int_t fTrackId
Index of the corresponding MCTrack in its TClonesArray.
Definition
CbmMvdHitMatch.h:72
CbmMvdHitMatch::fEventNumber
Int_t fEventNumber
Event number of the corresponding MCPoint.
Definition
CbmMvdHitMatch.h:66
TObject
install
include
CbmMvdHitMatch.h
Generated on
for BmnRoot by
1.17.0