BmnRoot
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:
19
21 BmnCaloDigit(Float_t x, Float_t y, UShort_t ch, Float_t amp);
22
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:
37 Float_t fX;
38 Float_t fY;
39 UShort_t fChannel;
40 Float_t fAmp;
41
43};
44
45#endif /* BMNCALODIGIT_H */
46
UShort_t fChannel
void SetX(Float_t x)
void SetChannel(UShort_t ch)
BmnCaloDigit(Float_t x, Float_t y, UShort_t ch, Float_t amp)
void SetAmp(Float_t amp)
Float_t GetX() const
virtual ~BmnCaloDigit()
UShort_t GetChannel() const
Float_t GetY() const
Float_t GetAmp() const
void SetY(Float_t y)
ClassDef(BmnCaloDigit, 1)