|
ATLAS Offline Software
|
Go to the documentation of this file.
12 int field = vmx -vmn+1;
33 for (
unsigned int i=0;
i<
m_IDs.size();
i++)
38 std::cout<<
"HitIdHelper: field "<<
name<<
": supplied value "<<
n<<
39 " is not within the allowed range ["<<
m_IDs[
i].vMin<<
","<<
m_IDs[
i].vMax
40 <<
"] : the result of this action is unpredictable "<<std::endl;
50 for (
unsigned int i=0;
i<
m_IDs.size();
i++)
58 std::cout<<
"HitIdHelper: field "<<
name<<
" not found: returning 0"<<
65 for (
unsigned int i=0;
i<
m_IDs.size();
i++)
67 std::cout<<
"-- Field "<<
m_IDs[
i].fieldName<<
"\t["<<
m_IDs[
i].vMin
69 <<
"\tfirst Bit "<<
m_IDs[
i].firstBit<<std::endl;
75 for (
unsigned int i=0;
i<8*
sizeof(
int);
i++)
77 if ((
id & (1
u<<
i))) std::cout<<
"1";
void SetFieldValue(const std::string &name, int n, HitID &targetID) const
void InitializeField(const std::string &n, int vmn, int vmx)
static void SetBit(int &i, int bitpos)
@ u
Enums for curvilinear frames.
static void Print(int id)
int GetFieldValue(const std::string &name, HitID targetID) const
static void Store(int &id, int value, int first, int field)
static void UnsetBit(int &i, int bitpos)
static int Retrieve(int id, int first, int field)
constexpr int pow(int base, int exp) noexcept