|
ATLAS Offline Software
|
Go to the documentation of this file.
23 std::vector<bool>(persObj->
m_nFlags,
false));
25 const unsigned int bitsPerWord =
sizeof(
uint32_t)*8;
26 const unsigned int flagsPerObject = persObj->
m_nFlags;
29 unsigned int object = 0;
30 unsigned int flag = 0;
31 for(
unsigned int word = 0; word < persObj->
m_serialized.size();++word){
34 for(
unsigned int bit = 0;bit < bitsPerWord;++bit){
42 if(
flag >= flagsPerObject){
54 for(
unsigned int i=0;
i<transObj->
size();
i++) {
56 std::cout <<
" " <<
flag <<
" [0x" << std::hex <<
flag <<
"]" << std::dec << std::endl;
68 for(
unsigned int i=0;
i<transObj->
size();
i++) {
70 log <<
" " <<
flag <<
" [0x" << std::hex <<
flag <<
"]" << std::dec << std::endl;
81 log << MSG::WARNING <<
"TrigPassFlagsCnv_p1::transToPers zero flags to save, this is an empty TrigPassFlags" <<
endmsg;
87 log << MSG::WARNING <<
"TrigPassFlagsCnv_p1::transToPers zero objects to save, this is an empty TrigPassFlags" <<
endmsg;
95 const unsigned int bitsPerWord =
sizeof(
uint32_t)*8;
96 const unsigned int word_count = (persObj->
m_nFlags * persObj->
m_nObjects) / bitsPerWord + 1;
103 unsigned int word = 0;
104 unsigned int bit = 0;
117 if(bit >= bitsPerWord){
virtual void persToTrans(const TrigPassFlags_p1 *persObj, TrigPassFlags *transObj, MsgStream &log)
std::vector< uint32_t > m_serialized
unsigned int size() const
gets size of the container object vector
@ u
Enums for curvilinear frames.
virtual void transToPers(const TrigPassFlags *transObj, TrigPassFlags_p1 *persObj, MsgStream &log)
unsigned short int m_nFlags
A Flag is an ordered collection of bits (vector<bool>) that can hold additional (boolean) information...
const std::vector< bool > & getFlag(const unsigned int position) const
Returns the flag (vector<bool>) at index position.
std::vector< std::vector< bool > > m_flagsPerObject
list of trainsient n-bit value (STL docu assures that a vector of booleans is efficient)