BmnRoot
26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Toggle main menu visibility
Loading...
Searching...
No Matches
BmnNdetAddressMixin.h
Go to the documentation of this file.
1
#ifndef BMNNDETADDRESSMIXIN_H
2
#define BMNNDETADDRESSMIXIN_H
3
4
/** \class BmnNdetAddressMixin
5
** \brief interface to use the address methods
6
** \author Nikolay Karpushkin <karpushkin@inr.ru>
7
** \version 1.0
8
**
9
** BmnNdetAddressMixin is a class to store methods to access the address fields
10
**/
11
12
#include "
BmnNdetAddress.h
"
13
14
template
<
typename
T>
15
class
BmnNdetAddressMixin
16
{
17
public
:
18
uint32_t
GetSystemId
()
const
{
return
BmnNdetAddress::GetSystemId
(
static_cast<
const
T*
>
(
this
)->GetAddress()); }
19
uint32_t
GetArmId
()
const
{
return
BmnNdetAddress::GetArmId
(
static_cast<
const
T*
>
(
this
)->GetAddress()); }
20
uint32_t
GetRowId
()
const
{
return
BmnNdetAddress::GetRowId
(
static_cast<
const
T*
>
(
this
)->GetAddress()); }
21
uint32_t
GetColumnId
()
const
{
return
BmnNdetAddress::GetColumnId
(
static_cast<
const
T*
>
(
this
)->GetAddress()); }
22
uint32_t
GetLayerId
()
const
{
return
BmnNdetAddress::GetLayerId
(
static_cast<
const
T*
>
(
this
)->GetAddress()); }
23
};
24
25
#endif
/* BMNNDETADDRESSMIXIN_H */
BmnNdetAddressMixin
interface to use the address methods
Definition
BmnNdetAddressMixin.h:16
BmnNdetAddressMixin::GetColumnId
uint32_t GetColumnId() const
Definition
BmnNdetAddressMixin.h:21
BmnNdetAddressMixin::GetSystemId
uint32_t GetSystemId() const
Definition
BmnNdetAddressMixin.h:18
BmnNdetAddressMixin::GetRowId
uint32_t GetRowId() const
Definition
BmnNdetAddressMixin.h:20
BmnNdetAddressMixin::GetArmId
uint32_t GetArmId() const
Definition
BmnNdetAddressMixin.h:19
BmnNdetAddressMixin::GetLayerId
uint32_t GetLayerId() const
Definition
BmnNdetAddressMixin.h:22
BmnNdetAddress::GetRowId
static uint32_t GetRowId(uint32_t address)
Return Row id from address.
Definition
BmnNdetAddress.h:89
BmnNdetAddress::GetSystemId
static uint32_t GetSystemId(uint32_t address)
Return System identifier from address.
Definition
BmnNdetAddress.h:69
BmnNdetAddress::GetColumnId
static uint32_t GetColumnId(uint32_t address)
Return Column id from address.
Definition
BmnNdetAddress.h:99
BmnNdetAddress::GetArmId
static uint32_t GetArmId(uint32_t address)
Return Arm id from address.
Definition
BmnNdetAddress.h:79
BmnNdetAddress::GetLayerId
static uint32_t GetLayerId(uint32_t address)
Return Layer id from address.
Definition
BmnNdetAddress.h:109
BmnNdetAddress.h
detectors
ndet
BmnNdetAddressMixin.h
Generated on
for BmnRoot by
1.17.0