ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
LVL1::EnergyCMXData Class Reference

The EnergyCMXData object contains the data transferred from the JEM to the EnergySum CMX in the crate. More...

#include <EnergyCMXData.h>

Collaboration diagram for LVL1::EnergyCMXData:

Public Member Functions

 EnergyCMXData ()
 Constructors. More...
 
 EnergyCMXData (int crate, int module, unsigned int ex, unsigned int ey, unsigned int et)
 
virtual ~EnergyCMXData ()
 Destructor. More...
 
int crate () const
 Data accessors. More...
 
int module () const
 module number More...
 
unsigned int Ex () const
 Ex value for module. More...
 
unsigned int Ey () const
 Ey value for module. More...
 
unsigned int Et () const
 ET value for module. More...
 
std::vector< unsigned int > DataWords () const
 the 4 raw backplane data words More...
 

Private Attributes

int m_crate
 Internal data. More...
 
int m_module
 
unsigned int m_Ex
 
unsigned int m_Ey
 
unsigned int m_Et
 
std::vector< unsigned int > m_DataWords
 

Detailed Description

The EnergyCMXData object contains the data transferred from the JEM to the EnergySum CMX in the crate.

This is a transient class, describing backplane data

Definition at line 24 of file EnergyCMXData.h.

Constructor & Destructor Documentation

◆ EnergyCMXData() [1/2]

LVL1::EnergyCMXData::EnergyCMXData ( )

Constructors.

Definition at line 10 of file EnergyCMXData.cxx.

10  : m_crate(0), m_module(0), m_Ex(0), m_Ey(0), m_Et(0)
11 {
12  m_DataWords.clear();
13  m_DataWords.resize(4);
14 }

◆ EnergyCMXData() [2/2]

LVL1::EnergyCMXData::EnergyCMXData ( int  crate,
int  module,
unsigned int  ex,
unsigned int  ey,
unsigned int  et 
)

Fill backplane data words from Ex/Ey/ET values

Definition at line 17 of file EnergyCMXData.cxx.

18  :
19  m_crate(crate),
21  m_Ex(ex),
22  m_Ey(ey),
23  m_Et(et)
24 {
25  m_DataWords.clear();
26  m_DataWords.resize(4);
27 
29  m_DataWords[0] = m_Ex;
30  m_DataWords[1] = m_Ey;
31  m_DataWords[2] = m_Et;
32 
33  // Finally set parity bits. Will assume we used odd parity here (flip initial assignment to change)
34  for (unsigned int word = 0; word < 4; ++word) {
35  unsigned int parity = 1;
36  for (unsigned int bit = 0; bit < 24; ++bit) if ( ( (m_DataWords[word]>>bit) & 1) > 0 ) parity++;
37  parity &= 1;
38  m_DataWords[word] |= (parity<<23);
39  }
40 
41 }

◆ ~EnergyCMXData()

LVL1::EnergyCMXData::~EnergyCMXData ( )
virtual

Destructor.

Definition at line 43 of file EnergyCMXData.cxx.

44 {
45 }

Member Function Documentation

◆ crate()

int LVL1::EnergyCMXData::crate ( ) const

Data accessors.

Data access methods.

Crate number

Definition at line 51 of file EnergyCMXData.cxx.

51  {
52  return m_crate;
53 }

◆ DataWords()

std::vector< unsigned int > LVL1::EnergyCMXData::DataWords ( ) const

the 4 raw backplane data words

Definition at line 62 of file EnergyCMXData.cxx.

62  {
63  return m_DataWords;
64 }

◆ Et()

unsigned int LVL1::EnergyCMXData::Et ( ) const

ET value for module.

Definition at line 77 of file EnergyCMXData.cxx.

77  {
78  return m_Et;
79 }

◆ Ex()

unsigned int LVL1::EnergyCMXData::Ex ( ) const

Ex value for module.

Definition at line 67 of file EnergyCMXData.cxx.

67  {
68  return m_Ex;
69 }

◆ Ey()

unsigned int LVL1::EnergyCMXData::Ey ( ) const

Ey value for module.

Definition at line 72 of file EnergyCMXData.cxx.

72  {
73  return m_Ey;
74 }

◆ module()

int LVL1::EnergyCMXData::module ( ) const

module number

Definition at line 56 of file EnergyCMXData.cxx.

56  {
57  return m_module;
58 }

Member Data Documentation

◆ m_crate

int LVL1::EnergyCMXData::m_crate
private

Internal data.

Definition at line 45 of file EnergyCMXData.h.

◆ m_DataWords

std::vector<unsigned int> LVL1::EnergyCMXData::m_DataWords
private

Definition at line 50 of file EnergyCMXData.h.

◆ m_Et

unsigned int LVL1::EnergyCMXData::m_Et
private

Definition at line 49 of file EnergyCMXData.h.

◆ m_Ex

unsigned int LVL1::EnergyCMXData::m_Ex
private

Definition at line 47 of file EnergyCMXData.h.

◆ m_Ey

unsigned int LVL1::EnergyCMXData::m_Ey
private

Definition at line 48 of file EnergyCMXData.h.

◆ m_module

int LVL1::EnergyCMXData::m_module
private

Definition at line 46 of file EnergyCMXData.h.


The documentation for this class was generated from the following files:
et
Extra patterns decribing particle interation process.
LVL1::EnergyCMXData::m_DataWords
std::vector< unsigned int > m_DataWords
Definition: EnergyCMXData.h:50
LVL1::EnergyCMXData::m_Ex
unsigned int m_Ex
Definition: EnergyCMXData.h:47
LVL1::EnergyCMXData::module
int module() const
module number
Definition: EnergyCMXData.cxx:56
LVL1::EnergyCMXData::m_Et
unsigned int m_Et
Definition: EnergyCMXData.h:49
LVL1::EnergyCMXData::crate
int crate() const
Data accessors.
Definition: EnergyCMXData.cxx:51
LVL1::EnergyCMXData::m_module
int m_module
Definition: EnergyCMXData.h:46
LVL1::EnergyCMXData::m_Ey
unsigned int m_Ey
Definition: EnergyCMXData.h:48
LVL1::EnergyCMXData::m_crate
int m_crate
Internal data.
Definition: EnergyCMXData.h:45