CbmRoot
Loading...
Searching...
No Matches
CbmAddress.h
Go to the documentation of this file.
1
/* Copyright (C) 2013-2020 GSI Helmholtzzentrum fuer Schwerionenforschung, Darmstadt
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Volker Friese [committer] */
4
10
#ifndef CBMADDRESS_H
11
#define CBMADDRESS_H 1
12
13
#include <cstdint>
14
27
class
CbmAddress
{
28
public
:
30
CbmAddress
() {};
31
32
34
virtual
~CbmAddress
() {};
35
36
40
static
int32_t
GetNofSystemBits
() {
return
fgkSystemBits
; }
41
42
47
static
int32_t
GetSystemId
(uint32_t address) {
return
address & ((1 <<
fgkSystemBits
) - 1); }
48
49
50
protected
:
52
static
const
int32_t
fgkSystemBits
= 4;
53
};
54
55
#endif
/* CBMADDRESS_H */
CbmAddress
Base class for interfaces to the unique address.
Definition
CbmAddress.h:27
CbmAddress::CbmAddress
CbmAddress()
Definition
CbmAddress.h:30
CbmAddress::GetNofSystemBits
static int32_t GetNofSystemBits()
Definition
CbmAddress.h:40
CbmAddress::GetSystemId
static int32_t GetSystemId(uint32_t address)
Definition
CbmAddress.h:47
CbmAddress::fgkSystemBits
static const int32_t fgkSystemBits
Definition
CbmAddress.h:52
CbmAddress::~CbmAddress
virtual ~CbmAddress()
Definition
CbmAddress.h:34
core
data
CbmAddress.h
Generated on Sun Dec 22 2024 23:04:08 for CbmRoot by
1.12.0