ATLAS Offline Software
Functions
CMAprogram.cxx File Reference
#include "RPC_CondCabling/CMAprogram.h"
#include <string>
Include dependency graph for CMAprogram.cxx:

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &stream, const CMAprogram &program)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  stream,
const CMAprogram program 
)

Definition at line 286 of file CMAprogram.cxx.

286  {
287  unsigned int no_coincidence = 183;
288 
289  for (int piv = CMAparameters::pivot_channels - 1; piv >= 0; --piv) {
290  for (int con = 0; con < CMAparameters::confirm_channels; ++con) {
291  for (int th = 2; th >= 0; --th) {
292  if (program.m_threshold_registers[th][piv][con]) {
293  stream << th + 1;
294  break;
295  }
296  if (th == 0) stream << (char)no_coincidence;
297  }
298  }
299  stream << std::endl;
300  }
301  return stream;
302 }
xAOD::char
char
Definition: TrigDecision_v1.cxx:38
AthenaPoolTestWrite.stream
string stream
Definition: AthenaPoolTestWrite.py:12
CMAparameters::confirm_channels
static constexpr int confirm_channels
Definition: CMAparameters.h:70
python.TriggerHandler.th
th
Definition: TriggerHandler.py:296
CMAprogram::m_threshold_registers
bool m_threshold_registers[3][CMAparameters::pivot_channels][CMAparameters::confirm_channels]
Definition: CMAprogram.h:106
CMAparameters::pivot_channels
static constexpr int pivot_channels
Definition: CMAparameters.h:69