ATLAS Offline Software
Functions
TrigNavStructure/Root/TriggerElement.cxx File Reference
#include <iostream>
#include <stdexcept>
#include <iterator>
#include <functional>
#include <algorithm>
#include "TrigNavStructure/Types.h"
#include "TrigNavStructure/TriggerElement.h"
Include dependency graph for TrigNavStructure/Root/TriggerElement.cxx:

Go to the source code of this file.

Functions

void insertUint16ToUint32Vector (std::vector< uint32_t > &v, uint16_t val, unsigned count)
 
void extractUint16FromUint32Vector (std::vector< uint32_t >::const_iterator &it, uint16_t &val, unsigned count)
 

Function Documentation

◆ extractUint16FromUint32Vector()

void extractUint16FromUint32Vector ( std::vector< uint32_t >::const_iterator &  it,
uint16_t &  val,
unsigned  count 
)

Definition at line 125 of file TrigNavStructure/Root/TriggerElement.cxx.

125  {
126  if ( count % 2 == 0 ) { // do need to increment iterator
127  val = ((*it) >> 16 ) & 0xffff;
128  } else {
129  val = (*it) & 0xffff;
130  ++it;
131  }
132 }

◆ insertUint16ToUint32Vector()

void insertUint16ToUint32Vector ( std::vector< uint32_t > &  v,
uint16_t  val,
unsigned  count 
)

Definition at line 115 of file TrigNavStructure/Root/TriggerElement.cxx.

115  {
116  uint32_t s=0;
117  if (count % 2 == 0 ) {
118  s = (uint32_t(val) << 16) & 0xffff0000;
119  v.push_back(s);
120  } else {
121  v.back() |= uint32_t(val & 0xffff);
122  }
123 }
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
skel.it
it
Definition: skel.GENtoEVGEN.py:396
XMLtoHeader.count
count
Definition: XMLtoHeader.py:85
python.PyAthena.v
v
Definition: PyAthena.py:154
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14