8#define BMNSSDADDRESS_H 1
12#include "FairLogger.h"
69 UInt_t halfladder = 0,
80 Int_t
GetAddress(UInt_t* elementId, UInt_t version);
126 Int_t
SetElementId(Int_t address, Int_t level, UInt_t newId);
132 std::string
ToString(Int_t address);
Functions to encode or decode the address field of SSD data.
const Int_t kVersionShift
UInt_t GetVersion(Int_t address)
Extract version number.
UInt_t GetSystemId(Int_t address)
Get system Id (should be kSSD)
UInt_t GetElementId(Int_t address, Int_t level)
Get the index of an element.
Int_t SetElementId(Int_t address, Int_t level, UInt_t newId)
Set the index of an element, leaving the other element levels untouched.
Int_t 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.
const UInt_t kCurrentVersion
std::string ToString(Int_t address)
String output.
Int_t GetMotherAddress(Int_t address, Int_t level)
Construct the address of an element from the address of a descendant element.