CbmRoot
Loading...
Searching...
No Matches
CbmPsdHit.h
Go to the documentation of this file.
1/* Copyright (C) 2012-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Alla Maevskaya, Volker Friese [committer] */
4
17#ifndef CBMPSDHIT_H
18#define CBMPSDHIT_H 1
19
20#include <Rtypes.h> // for ClassDef
21#include <TObject.h> // for TObject
22
23#include <cstdint>
24
25class CbmPsdHit : public TObject {
26
27public:
29 CbmPsdHit();
30
31 CbmPsdHit(int32_t module, double edep);
32
33
35 virtual ~CbmPsdHit();
36
37
40 //float GetEdep(int32_t module) const { return fEdep[module]; } // SELIM: simplification vector [49] -> simple double
41 //void SetEdep(float edep, int32_t module) {fEdep[module]=edep;}
42
43 double GetEdep() const { return fEdep; } // SELIM: simplification vector [49] -> simple double
44 void SetEdep(double edep) { fEdep = edep; }
45
46 int32_t GetModuleID() const { return fModuleID; }
47 void SetModuleID(int32_t mod) { fModuleID = mod; }
48
49 void Print(Option_t* = "") const;
50
51private:
54 int32_t fModuleID;
55 double fEdep; //[49]; // SELIM: simplification vector [49] -> simple double
56
57
59};
60
61
62#endif
int32_t GetModuleID() const
Definition CbmPsdHit.h:46
virtual ~CbmPsdHit()
Definition CbmPsdHit.cxx:35
void SetEdep(double edep)
Definition CbmPsdHit.h:44
double GetEdep() const
Definition CbmPsdHit.h:43
ClassDef(CbmPsdHit, 1)
double fEdep
Definition CbmPsdHit.h:55
void Print(Option_t *="") const
Definition CbmPsdHit.cxx:38
int32_t fModuleID
Definition CbmPsdHit.h:54
void SetModuleID(int32_t mod)
Definition CbmPsdHit.h:47