CbmRoot
Loading...
Searching...
No Matches
CbmPsdMCbmHit.h
Go to the documentation of this file.
1/* Copyright (C) 2020 Facility for Antiproton and Ion Research in Europe, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Nikolay Karpushkin, Pierre-Alain Loizeau [committer] */
4
19#ifndef CBMPSDMCBMHIT_H
20#define CBMPSDMCBMHIT_H
21
22#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
23#include <TObject.h> // for TObject
24
25#include <cstdint>
26#include <string> // for string
27
28class CbmPsdMCbmHit : public TObject {
29public:
32
33
40 CbmPsdMCbmHit(uint32_t moduleId, uint32_t sectionId, double energy, double time);
41
42
44 virtual ~CbmPsdMCbmHit();
45
47 virtual std::string ToString() const;
48
49
54 int32_t GetModuleID() const { return fuModuleId; }
55
56
60 double GetSectionID() const { return fuSectionId; }
61
62
66 double GetEdep() const { return fdEdep; }
67
68
72 int32_t GetTime() const { return fdTime; }
73
74
76 void SetModuleID(uint32_t mod) { fuModuleId = mod; }
77 void SetSectionID(uint32_t sec) { fuSectionId = sec; }
78 void SetEdep(double edep) { fdEdep = edep; }
79 void SetTime(double time) { fdTime = time; }
80
81private:
82 uint32_t fuModuleId = 0;
83 uint32_t fuSectionId = 0;
84 double fdEdep = 0.;
85 double fdTime = -1.;
86
87 ClassDef(CbmPsdMCbmHit, 1)
88};
89
90#endif //CBMPSDMCBMHIT_H
data class for hit information in PSD
double GetSectionID() const
Index of PSD section @value section index [].
void SetTime(double time)
double fdTime
Energy deposition.
double fdEdep
Section index.
uint32_t fuSectionId
Module index.
uint32_t fuModuleId
virtual std::string ToString() const
void SetSectionID(uint32_t sec)
void SetModuleID(uint32_t mod)
int32_t GetTime() const
Time of the signal @value Time [ns].
int32_t GetModuleID() const
Index of PSD module @value module index [].
virtual ~CbmPsdMCbmHit()
void SetEdep(double edep)
double GetEdep() const
Energy deposited in PSD section @value Energy [a.u.].