Go to the documentation of this file.
6 #ifndef CBMSTSADDRESS_H
7 #define CBMSTSADDRESS_H 1
9 #include <RtypesCore.h>
68 UInt_t halfladder = 0,
79 Int_t
GetAddress(UInt_t* elementId, UInt_t version);
125 Int_t
SetElementId(Int_t address, Int_t level, UInt_t newId);
131 std::string
ToString(Int_t address);
136 #endif // CBMSTSADDRESS_H
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
ECbmModuleId GetSystemId(Int_t address)
Get system Id (should be ECbmModuleId::kSts)
Int_t SetElementId(Int_t address, Int_t level, UInt_t newId)
Set the index of an element, leaving the other element levels untouched.
UInt_t GetElementId(Int_t address, Int_t level)
Get the index of an element.
Functions to encode or decode the address field of STS data.
UInt_t GetVersion(Int_t address)
Extract version number.
const Int_t kVersionShift
Int_t GetMotherAddress(Int_t address, Int_t level)
Construct the address of an element from the address of a descendant element.
std::string ToString(Int_t address)
String output.