ATLAS Offline Software
Loading...
Searching...
No Matches
CMAprogram.cxx File Reference
#include "RPC_CondCabling/CMAprogram.h"
#include "MuonCablingTools/dbline.h"
#include <string>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
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 273 of file CMAprogram.cxx.

273 {
274 unsigned int no_coincidence = 183;
275
276 for (int piv = CMAparameters::pivot_channels - 1; piv >= 0; --piv) {
277 for (int con = 0; con < CMAparameters::confirm_channels; ++con) {
278 for (int th = 2; th >= 0; --th) {
279 if (program.m_threshold_registers[th][piv][con]) {
280 stream << th + 1;
281 break;
282 }
283 if (th == 0) stream << (char)no_coincidence;
284 }
285 }
286 stream << std::endl;
287 }
288 return stream;
289}
static constexpr int confirm_channels
static constexpr int pivot_channels
bool m_threshold_registers[3][CMAparameters::pivot_channels][CMAparameters::confirm_channels]
Definition CMAprogram.h:110