BmnRoot 26.10.0-19-g6979a6c6
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnCaloDigit.h
Go to the documentation of this file.
1/*
2 * File: BmnCaloDigit.h
3 * Author: Konstantin Gertsenberger
4 * Description: base class for calorimeter digits
5 *
6 * Created on September 27, 2021
7 */
8
9#ifndef BMNCALODIGIT_H
10#define BMNCALODIGIT_H
11
12#include "TNamed.h"
13
14class BmnCaloDigit : public TNamed
15{
16 public:
17 /** Default constructor **/
19
20 /** Main constructor **/
22
23 /** Destructor **/
24 virtual ~BmnCaloDigit() {}
25
26 void SetX(Float_t x) { fX = x; }
27 void SetY(Float_t y) { fY = y; }
28 void SetChannel(UShort_t ch) { fChannel = ch; }
29 void SetAmp(Float_t amp) { fAmp = amp; }
30
31 Float_t GetX() const { return fX; }
32 Float_t GetY() const { return fY; }
33 UShort_t GetChannel() const { return fChannel; }
34 Float_t GetAmp() const { return fAmp; }
35
36 protected:
41
43};
44
45#endif /* BMNCALODIGIT_H */
unsigned short UShort_t
float Float_t
#define ClassDef(name, id)
UShort_t fChannel
void SetX(Float_t x)
void SetChannel(UShort_t ch)
void SetAmp(Float_t amp)
Float_t GetX() const
virtual ~BmnCaloDigit()
Destructor.
UShort_t GetChannel() const
BmnCaloDigit()
Default constructor.
Float_t GetY() const
Float_t GetAmp() const
void SetY(Float_t y)