BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
19class CbmMvdHitMatch : public TObject
20{
21
22 public:
23 /** Default constructor **/
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 **/
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 **/
67
68 /** Index of the corresponding MCTrack in its TClonesArray.
69 ** Also true for background files.
70 ** -1 for fake hits
71 **/
73
74 /** Index of the corresponding MCPoint in its TClonesArray.
75 ** Also true for background files.
76 ** -1 for fake hits
77 **/
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 **/
86
88};
89
90#endif
bool Bool_t
int Int_t
constexpr Bool_t kFALSE
constexpr Bool_t kTRUE
#define ClassDef(name, id)
CbmMvdHitMatch header file.
Int_t GetEventNumber() const
Int_t GetFileNumber() const
Accessors.
void Clear()
Reset data members.
void AddMerged()
Modifiers.
Int_t fFileNumber
Indicates the file to which the corresponding point belongs.
Int_t GetPointId() const
CbmMvdHitMatch(Int_t fileNumber, Int_t eventNumber, Int_t trackId, Int_t pointId, Int_t nMerged)
Constructor with all parameters.
Int_t fNMerged
Number of other hits this one is merged with -1 => Hit was created without checking for merging 0 => ...
Bool_t IsFake() const
Int_t GetTrackId() const
Int_t fPointId
Index of the corresponding MCPoint in its TClonesArray.
Int_t GetNMerged() const
virtual ~CbmMvdHitMatch()
Destructor.
CbmMvdHitMatch()
Default constructor.
Int_t fTrackId
Index of the corresponding MCTrack in its TClonesArray.
Int_t fEventNumber
Event number of the corresponding MCPoint.