ATLAS Offline Software
Classes | Namespaces | Functions
L1Topo/L1TopoInterfaces/L1TopoInterfaces/Decision.h File Reference
#include "L1TopoCommon/StatusCode.h"
#include <iostream>
#include <vector>
#include <stdint.h>
Include dependency graph for L1Topo/L1TopoInterfaces/L1TopoInterfaces/Decision.h:

Go to the source code of this file.

Classes

class  TCS::Decision
 

Namespaces

 TCS
 

Functions

std::ostream & operator<< (std::ostream &, const TCS::Decision &)
 

Function Documentation

◆ operator<<()

std::ostream& operator<< ( std::ostream &  ,
const TCS::Decision  
)

Definition at line 23 of file L1Topo/L1TopoInterfaces/Root/Decision.cxx.

24  {
25  unsigned int bit = dec.nBits();
26  if(dec.nBits()==1) {
27  o << "decision (1 bit, position " << dec.firstBit() << "): ";
28  } else {
29  o << "decision (" << dec.nBits() << " bits, position " << dec.firstBit() << " - " << dec.lastBit() << "): ";
30  }
31  while(bit!=0) {
32  o << (dec.bit(--bit)?1:0);
33  }
34  o << "(overflow "<<dec.overflow()<<")";
35  return o;
36 }