#include <HitIdHelper.h>
|
static void | SetBit (int &i, int bitpos) |
|
static void | UnsetBit (int &i, int bitpos) |
|
static void | Store (int &id, int value, int first, int field) |
|
static int | Retrieve (int id, int first, int field) |
|
Definition at line 23 of file HitIdHelper.h.
◆ HitIdHelper()
HitIdHelper::HitIdHelper |
( |
| ) |
|
|
inline |
◆ ~HitIdHelper()
virtual HitIdHelper::~HitIdHelper |
( |
| ) |
|
|
inlinevirtual |
◆ GetFieldValue()
int HitIdHelper::GetFieldValue |
( |
const std::string & |
name, |
|
|
HitID |
targetID |
|
) |
| const |
Definition at line 48 of file HitIdHelper.cxx.
50 for (
unsigned int i=0;
i<
m_IDs.size();
i++)
58 std::cout<<
"HitIdHelper: field "<<
name<<
" not found: returning 0"<<
◆ InitializeField() [1/2]
void HitIdHelper::InitializeField |
( |
const std::string & |
n, |
|
|
int |
nb |
|
) |
| |
◆ InitializeField() [2/2]
void HitIdHelper::InitializeField |
( |
const std::string & |
n, |
|
|
int |
vmn, |
|
|
int |
vmx |
|
) |
| |
◆ Print()
void HitIdHelper::Print |
( |
int |
id | ) |
|
|
static |
Definition at line 73 of file HitIdHelper.cxx.
75 for (
unsigned int i=0;
i<8*
sizeof(
int);
i++)
77 if ((
id & (1
u<<
i))) std::cout<<
"1";
◆ PrintFields()
void HitIdHelper::PrintFields |
( |
| ) |
|
◆ Retrieve()
int HitIdHelper::Retrieve |
( |
int |
id, |
|
|
int |
first, |
|
|
int |
field |
|
) |
| |
|
staticprotected |
◆ SetBit()
void HitIdHelper::SetBit |
( |
int & |
i, |
|
|
int |
bitpos |
|
) |
| |
|
staticprotected |
◆ SetFieldValue()
void HitIdHelper::SetFieldValue |
( |
const std::string & |
name, |
|
|
int |
n, |
|
|
HitID & |
targetID |
|
) |
| const |
Definition at line 31 of file HitIdHelper.cxx.
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;
◆ Store()
void HitIdHelper::Store |
( |
int & |
id, |
|
|
int |
value, |
|
|
int |
first, |
|
|
int |
field |
|
) |
| |
|
staticprotected |
◆ UnsetBit()
void HitIdHelper::UnsetBit |
( |
int & |
i, |
|
|
int |
bitpos |
|
) |
| |
|
staticprotected |
◆ m_currentStorage
int HitIdHelper::m_currentStorage |
|
protected |
◆ m_IDs
The documentation for this class was generated from the following files: