ATLAS Offline Software
Loading...
Searching...
No Matches
TXC Namespace Reference

Classes

struct  FixedParameter
struct  InputElement
class  L1TopoConfigAlg
class  L1TopoConfigGlobal
class  L1TopoConfigOutputList
class  L1TopoMenu
struct  OutputElement
class  OutputListElement
struct  RegisterParameter
struct  TopoConfigElement
class  TriggerLine

Functions

std::ostream & operator<< (std::ostream &o, const TXC::L1TopoConfigAlg &alg)
std::ostream & operator<< (std::ostream &, const InputElement &)
std::ostream & operator<< (std::ostream &, const OutputElement &)
std::ostream & operator<< (std::ostream &, const FixedParameter &)
std::ostream & operator<< (std::ostream &, const RegisterParameter &)
std::ostream & operator<< (std::ostream &, const L1TopoConfigGlobal &)
std::ostream & operator<< (std::ostream &, const L1TopoConfigOutputList &)
std::ostream & operator<< (std::ostream &, const TriggerLine &)

Function Documentation

◆ operator<<() [1/8]

ostream & TXC::operator<< ( std::ostream & o,
const FixedParameter & ge )

Definition at line 28 of file L1TopoConfigAlg.cxx.

29 {
30 o << "name: " << ge.name << ", value: " << ge.value;
31 return o;
32}

◆ operator<<() [2/8]

ostream & TXC::operator<< ( std::ostream & o,
const InputElement & ie )

Definition at line 17 of file L1TopoConfigAlg.cxx.

18 {
19 o << "name: " << ie.name << ", value: " << ie.value << ", pos: " << ie.position;
20 return o;
21}

◆ operator<<() [3/8]

std::ostream & TXC::operator<< ( std::ostream & o,
const L1TopoConfigGlobal & topoconfig )

Definition at line 25 of file L1TopoConfigGlobal.cxx.

25 {
26 o << "General configuration (<TopoConfig>):" << endl;
27 for(const TXC::TopoConfigElement& ce : topoconfig.getTopoConfigs())
28 o << " " << ce.name << ": " << ce.value << endl;
29
30 return o;
31}
const std::vector< TopoConfigElement > & getTopoConfigs() const

◆ operator<<() [4/8]

std::ostream & TXC::operator<< ( std::ostream & o,
const L1TopoConfigOutputList & outputlist )

Definition at line 80 of file L1TopoConfigOutputList.cxx.

80 {
81
82 o << "Trigger lines (sorted by connectors):" << endl;
83 for(const TXC::TriggerLine& trigger: outputlist.getTriggerLines()) {
84 if(trigger.counter() % 32 == 0) {
85 //modIdx = trigger.counter() / 100;
86 o << endl << "Module=" << trigger.module() << ", FPGA=" << trigger.fpga() << endl;
87 o << "----------------" << endl;
88 }
89 o << " " << setiosflags(ios::left) << setw(30) << trigger.name() << " (algorithm " << trigger.algoname() << " (id=" << trigger.algoid() << "))"
90 << " on line " << trigger.bit() << " and clock " << trigger.clock() << endl;
91 }
92 return o;
93}

◆ operator<<() [5/8]

ostream & TXC::operator<< ( std::ostream & o,
const OutputElement & oe )

Definition at line 23 of file L1TopoConfigAlg.cxx.

23 {
24 o << "name: " << oe.name << ", value: " << oe.value << ", nbits: " << oe.nbits << ", outname: " << oe.outname << ", position: " << oe.position;
25 return o;
26}
unsigned int position

◆ operator<<() [6/8]

ostream & TXC::operator<< ( std::ostream & o,
const RegisterParameter & pe )

Definition at line 34 of file L1TopoConfigAlg.cxx.

35 {
36 o << "name: " << pe.name << ", value: " << pe.value << ", pos: " << pe.position << ", sel: " << pe.selection;
37 return o;
38}

◆ operator<<() [7/8]

std::ostream & TXC::operator<< ( std::ostream & o,
const TriggerLine & trigger )

Definition at line 95 of file L1TopoConfigOutputList.cxx.

95 {
96 o << trigger.counter() << " : " << trigger.name() << " [" << trigger.module() << "/" << trigger.fpga() << "/" << trigger.clock() << "/" << trigger.bit() << "]";
97 return o;
98}
unsigned int fpga() const
unsigned int counter() const
unsigned int module() const
const std::string & name() const
unsigned int bit() const
unsigned int clock() const

◆ operator<<() [8/8]

std::ostream & TXC::operator<< ( std::ostream & o,
const TXC::L1TopoConfigAlg & alg )

Definition at line 104 of file L1TopoConfigAlg.cxx.

104 {
105
106 if(alg.isSortAlg()) {
107 o << "Sorting algorithm " << alg.algoID() << " : " << alg.type() << "/" << alg.name() << endl;
108 o << " Input : " << alg.m_inputElements[0].value << endl;
109 o << " Output : " << alg.m_outputElements[0].value << endl;
110 } else {
111 o << "Decision algorithm " << alg.algoID() << " : " << alg.type() << "/" << alg.name() << endl;
112 for(const TXC::InputElement& ie: alg.m_inputElements)
113 o << " Input " << ie.position << " : " << ie.value << endl;
114 for(const TXC::OutputElement& oe: alg.m_outputElements)
115 o << " Output " << oe.position << " : " << oe.outname << endl;
116 }
117 o << " Fixed paramters: " << alg.getFixedParameters().size() << endl;
118 for(const TXC::FixedParameter& ge: alg.m_fixedParameters)
119 o << " " << setw(15) << left << ge.name << " : " << ge.value << endl;
120 o << " Parameters: " << alg.getParameters().size() << endl;
121 for(const TXC::RegisterParameter& pe: alg.m_variableParameters)
122 o << " " << setw(15) << left << pe.name << " : " << pe.value << endl;
123 return o;
124}