ATLAS Offline Software
Classes | Public Member Functions | Private Attributes | List of all members
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 }

◆ 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 }

◆ 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 }

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:
L1MuonPtEncoding::m_encoding
code m_encoding[6]
Definition: L1MuonPtEncoding.h:29
x
#define x
uint
unsigned int uint
Definition: LArOFPhaseFill.cxx:20
geometry_dat_to_json.indent
indent
Definition: geometry_dat_to_json.py:36
mioctIndent
std::ostream & mioctIndent(std::ostream &o, int lvl, int size)
Definition: MioctROIGeometry.cxx:12
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69