BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
BmnScWallDigit.h
Go to the documentation of this file.
1/** @author Nikolay Karpushkin <karpushkin@inr.ru>
2 ** @date 10.01.2024
3 **
4 ** Class for simulation data at digi level
5 **/
6
7#ifndef BMNSCWALLGIGIT_H
8#define BMNSCWALLGIGIT_H
9
10#include "BmnAbstractDigit.h" // for Abstract digit
11#include "BmnScWallAddress.h" // for BmnScWallAddress
12
14{
15 public:
19 BmnScWallDigit(uint32_t address, double time, double signal = 0)
20 : BmnAbstractDigit(address, time, signal)
21 {}
22
24
25 // Getters
27 uint32_t GetCellId() const { return BmnScWallAddress::GetCellId(fAddress); }
28
29 // Member Functions
30 virtual const char* GetClassName() { return "BmnScWallDigit"; }
31 virtual void Print(const Option_t* opt = "")
32 {
33 printf("%s: CellId %d Data %s \n", GetClassName(), GetCellId(), GetStringData().Data());
34 }
35
37};
38
39#endif // BMNSCWALLGIGIT_H
const char Option_t
#define ClassDef(name, id)
static uint32_t GetCellId(uint32_t address)
Return Cell id from address.
static uint32_t GetSystemId(uint32_t address)
Return System identifier from address.
uint32_t GetSystemId() const
BmnScWallDigit(uint32_t address, double time, double signal=0)
virtual void Print(const Option_t *opt="")
uint32_t GetCellId() const
virtual const char * GetClassName()