ATLAS Offline Software
Loading...
Searching...
No Matches
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}
static constexpr int confirm_channels
static constexpr int pivot_channels
bool m_threshold_registers[3][CMAparameters::pivot_channels][CMAparameters::confirm_channels]
Definition CMAprogram.h:106