ATLAS Offline Software
Loading...
Searching...
No Matches
DecisionUnpackerEventInfo.cxx File Reference
Include dependency graph for DecisionUnpackerEventInfo.cxx:

Go to the source code of this file.

Namespaces

namespace  Trig
 The common trigger namespace for trigger analysis tools.

Functions

bool get32BitDecision (unsigned int index, const std::vector< uint32_t > &vec)

Function Documentation

◆ get32BitDecision()

bool get32BitDecision ( unsigned int index,
const std::vector< uint32_t > & vec )

Definition at line 20 of file DecisionUnpackerEventInfo.cxx.

21 {
22
23 if( index >= vec.size() * 32 ) {
24 return 0;
25 }
26 uint32_t word = vec[ index / 32 ];
27 return ( ( ( word >> ( index % 32 ) ) & 0x1 ) != 0 );
28}
std::vector< size_t > vec
Definition index.py:1
setEventNumber uint32_t