CbmRoot
Loading...
Searching...
No Matches
CbmFsdHit.h
Go to the documentation of this file.
1/* Copyright (C) 2023 Physikalisches Institut, Eberhard Karls Universitaet Tuebingen, Tuebingen
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Volker Friese, Lukas Chlad [committer] */
4
16#ifndef CBMFSDHIT_H
17#define CBMFSDHIT_H 1
18
19#include "CbmPixelHit.h" // for CbmPixelHit
20
21#include <Rtypes.h> // for ClassDef
22
23#include <cstdint>
24
25class CbmFsdHit : public CbmPixelHit {
26
27public:
29 CbmFsdHit();
30
31 CbmFsdHit(int32_t unit, int32_t module, double edep);
32
33 CbmFsdHit(int32_t address, TVector3 pos, TVector3 dpos, int32_t refIndex, double time, double edep);
34
35
37 virtual ~CbmFsdHit();
38
39
42 double GetEdep() const { return fEdep; }
43 void SetEdep(double edep) { fEdep = edep; }
44
45 int32_t GetModuleId() const { return fModuleId; }
46 void SetModuleId(int32_t mod) { fModuleId = mod; }
47
48 int32_t GetUnitId() const { return fUnitId; }
49 void SetUnitId(int32_t unit) { fUnitId = unit; }
50
51 void Print(Option_t* = "") const;
52
53 std::string ToString() const;
54
55private:
57 int32_t fUnitId;
58 int32_t fModuleId;
59 double fEdep;
60
62};
63
64
65#endif
TVector3 dpos
ClassDef(CbmFsdHit, 2)
void SetEdep(double edep)
Definition CbmFsdHit.h:43
int32_t fModuleId
Definition CbmFsdHit.h:58
std::string ToString() const
Inherited from CbmBaseHit.
Definition CbmFsdHit.cxx:50
double fEdep
Definition CbmFsdHit.h:59
virtual ~CbmFsdHit()
Definition CbmFsdHit.cxx:45
double GetEdep() const
Definition CbmFsdHit.h:42
int32_t fUnitId
Definition CbmFsdHit.h:57
int32_t GetModuleId() const
Definition CbmFsdHit.h:45
void SetModuleId(int32_t mod)
Definition CbmFsdHit.h:46
void Print(Option_t *="") const
Definition CbmFsdHit.cxx:48
int32_t GetUnitId() const
Definition CbmFsdHit.h:48
void SetUnitId(int32_t unit)
Definition CbmFsdHit.h:49