ATLAS Offline Software
Loading...
Searching...
No Matches
L1MuonPtEncoding Class Reference

#include <L1MuonPtEncoding.h>

Collaboration diagram for L1MuonPtEncoding:

Classes

struct  code

Public Member Functions

 L1MuonPtEncoding ()=default
void setCodingInfo (unsigned int idx, unsigned int ptCode, unsigned int thresholdValue)
void getCodingInfo (unsigned int idx, unsigned int &ptCode, unsigned int &thresholdValue) const
void print (const std::string &indent="", unsigned int detail=1) const
void writeXML (std::ostream &xmlfile, int indentLevel=0, int indentWidth=2) const

Private Attributes

code m_encoding [6]

Detailed Description

Definition at line 10 of file L1MuonPtEncoding.h.

Constructor & Destructor Documentation

◆ L1MuonPtEncoding()

L1MuonPtEncoding::L1MuonPtEncoding ( )
default

Member Function Documentation

◆ getCodingInfo()

void L1MuonPtEncoding::getCodingInfo ( unsigned int idx,
unsigned int & ptCode,
unsigned int & thresholdValue ) const

Definition at line 20 of file L1MuonPtEncoding.cxx.

20 {
21 auto & x = m_encoding[idx];
22 ptCode = x.ptCode;
23 thresholdValue = x.thresholdValue;
24}
#define x

◆ print()

void L1MuonPtEncoding::print ( const std::string & indent = "",
unsigned int detail = 1 ) const

Definition at line 27 of file L1MuonPtEncoding.cxx.

27 {
28 uint idx = 1;
29 for(auto & x : m_encoding) {
30 cout << indent << "pt " << idx++
31 << ", thr " << x.thresholdValue
32 << " -> code = " << x.ptCode << endl;
33 }
34}
unsigned int uint

◆ setCodingInfo()

void L1MuonPtEncoding::setCodingInfo ( unsigned int idx,
unsigned int ptCode,
unsigned int thresholdValue )

Definition at line 13 of file L1MuonPtEncoding.cxx.

13 {
14 auto & x = m_encoding[idx];
15 x.ptCode = ptCode;
16 x.thresholdValue = thresholdValue;
17}

◆ writeXML()

void L1MuonPtEncoding::writeXML ( std::ostream & xmlfile,
int indentLevel = 0,
int indentWidth = 2 ) const

Definition at line 37 of file L1MuonPtEncoding.cxx.

37 {
38 uint idx = 1;
39 mioctIndent(xmlfile, indentLevel, indentWidth) << "<PtEncoding>" << endl;
40 for(auto & x : m_encoding) {
41 mioctIndent(xmlfile, indentLevel+1, indentWidth)
42 << "<PtCodeElement pt=\"" << idx++
43 << "\" code=\"" << x.ptCode
44 << "\" value=\"" << x.thresholdValue
45 << "\"/>\n";
46 }
47 mioctIndent(xmlfile, indentLevel, indentWidth) << "</PtEncoding>" << endl;
48}
std::ostream & mioctIndent(std::ostream &o, int lvl, int size)
static std::vector< std::string > xmlfile
Definition iLumiCalc.h:29

Member Data Documentation

◆ m_encoding

code L1MuonPtEncoding::m_encoding[6]
private

Definition at line 29 of file L1MuonPtEncoding.h.


The documentation for this class was generated from the following files: