BmnRoot
Loading...
Searching...
No Matches
BmnScWallDigit.h
Go to the documentation of this file.
1
7#ifndef BMNSCWALLGIGIT_H
8#define BMNSCWALLGIGIT_H
9
10#include "BmnAbstractDigit.h" // for Abstract digit
11#include "BmnScWallAddress.h" // for BmnScWallAddress
12
13class BmnScWallDigit : public BmnAbstractDigit {
14public:
15
17 BmnScWallDigit(uint32_t address, double time, double signal = 0)
18 : BmnAbstractDigit(address, time, signal) {}
19
21
22 // Getters
24 uint32_t GetCellId() const { return BmnScWallAddress::GetCellId(fAddress); }
25
26 // Member Functions
27 virtual const char* GetClassName() { return "BmnScWallDigit"; }
28 virtual void Print(const Option_t* opt = "") { printf("%s: CellId %d Data %s \n", GetClassName(), GetCellId(), GetStringData().Data()); }
29
31
32};
33
34#endif // BMNSCWALLGIGIT_H
Abstract base data class to store digital information.
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
ClassDef(BmnScWallDigit, 2)
virtual const char * GetClassName()