BmnRoot
Loading...
Searching...
No Matches
BmnSsdAddress.h File Reference
#include <cassert>
#include <sstream>
#include "FairLogger.h"
Include dependency graph for BmnSsdAddress.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  BmnSsdAddress
 Functions to encode or decode the address field of SSD data.
 

Enumerations

enum  ESsdElementLevel {
  kSsdSystem , kSsdUnit , kSsdLadder , kSsdHalfLadder ,
  kSsdModule , kSsdSensor , kSsdSide , kSsdNofLevels
}
 

Functions

Int_t BmnSsdAddress::GetAddress (UInt_t unit=0, UInt_t ladder=0, UInt_t halfladder=0, UInt_t module=0, UInt_t sensor=0, UInt_t side=0, UInt_t version=kCurrentVersion)
 Construct address.
 
Int_t BmnSsdAddress::GetAddress (UInt_t *elementId, UInt_t version)
 Construct address.
 
Int_t BmnSsdAddress::GetMotherAddress (Int_t address, Int_t level)
 Construct the address of an element from the address of a descendant element.
 
UInt_t BmnSsdAddress::GetElementId (Int_t address, Int_t level)
 Get the index of an element.
 
UInt_t BmnSsdAddress::GetSystemId (Int_t address)
 Get system Id (should be kSSD)
 
UInt_t BmnSsdAddress::GetVersion (Int_t address)
 Extract version number.
 
Int_t BmnSsdAddress::SetElementId (Int_t address, Int_t level, UInt_t newId)
 Set the index of an element, leaving the other element levels untouched.
 
std::string BmnSsdAddress::ToString (Int_t address)
 String output.
 

Variables

const UInt_t BmnSsdAddress::kCurrentVersion = 1
 
const Int_t BmnSsdAddress::kVersionSize = 4
 
const Int_t BmnSsdAddress::kVersionShift = 28
 
const Int_t BmnSsdAddress::kVersionMask = (1 << kVersionSize) -1
 

Detailed Description

Author
Volker Friese v.fri.nosp@m.ese@.nosp@m.gsi.d.nosp@m.e
D. Baranov
Date
07.12.2018

Definition in file BmnSsdAddress.h.

Enumeration Type Documentation

◆ ESsdElementLevel

Enumerator for the hierarchy levels of the SSD setup

Enumerator
kSsdSystem 
kSsdUnit 
kSsdLadder 
kSsdHalfLadder 
kSsdModule 
kSsdSensor 
kSsdSide 
kSsdNofLevels 

Definition at line 16 of file BmnSsdAddress.h.