ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
ZdcLucrodData Class Reference

#include <ZdcLucrodData.h>

Collaboration diagram for ZdcLucrodData:

Public Member Functions

 ZdcLucrodData (unsigned int id)
 
 ~ZdcLucrodData ()
 
void SetBCID (unsigned int val)
 
void SetRunNumber (unsigned int val)
 
void SetLevel1ID (unsigned int val)
 
void SetNumBCs (unsigned int val)
 
void SetStatus (unsigned int val)
 
void SetTrigAvgA (uint16_t val)
 
void SetTrigAvgC (uint16_t val)
 
void AddTrigData (uint16_t val)
 
bool AddChanData (unsigned int id, const std::vector< uint16_t > &waveform)
 
unsigned int GetLucrodID () const
 
unsigned int GetBCID () const
 
unsigned int GetRunNumber () const
 
unsigned int GetLevel1ID () const
 
unsigned int GetNumBCs () const
 
unsigned int GetStatus () const
 
uint16_t GetTrigAvgA () const
 
uint16_t GetTrigAvgC () const
 
const std::vector< uint16_t > & GetTrigData () const
 
const ZdcLucrodChannelGetChanData (int it) const
 
unsigned int GetTrigDataSize () const
 
unsigned int GetChanDataSize () const
 
std::string str () const
 
std::ostream & operator<< (std::ostream &os)
 

Private Attributes

unsigned int m_lucrodID
 
unsigned int m_bcid
 
unsigned int m_runNumber
 
unsigned int m_level1ID
 
unsigned int m_numBCs
 
unsigned int m_status
 
uint16_t m_trigAvgA
 
uint16_t m_trigAvgC
 
std::vector< uint16_t > m_trigData
 
std::vector< ZdcLucrodChannelm_chanData
 

Detailed Description

Definition at line 20 of file ZdcLucrodData.h.

Constructor & Destructor Documentation

◆ ZdcLucrodData()

ZdcLucrodData::ZdcLucrodData ( unsigned int  id)
inline

Definition at line 24 of file ZdcLucrodData.h.

24  {
25 
26  m_lucrodID = id;
27  m_bcid = 0;
28  m_runNumber = 0;
29  m_level1ID = 0;
30  m_numBCs = 0;
31  m_status = 0;
32 
33  m_trigAvgA = 0;
34  m_trigAvgC = 0;
35 
36  m_trigData.clear();
37  m_chanData.clear();
38  };

◆ ~ZdcLucrodData()

ZdcLucrodData::~ZdcLucrodData ( )
inline

Definition at line 40 of file ZdcLucrodData.h.

40 {};

Member Function Documentation

◆ AddChanData()

bool ZdcLucrodData::AddChanData ( unsigned int  id,
const std::vector< uint16_t > &  waveform 
)
inline

Definition at line 53 of file ZdcLucrodData.h.

53  {
54 
56 
57  channel.id = id;
58  channel.waveform = waveform;
59 
60  // Check for valid length
61  //
62  if (waveform.size() != m_numBCs*8) return false;
63 
64  m_chanData.push_back(channel);
65  return true;
66  }

◆ AddTrigData()

void ZdcLucrodData::AddTrigData ( uint16_t  val)
inline

Definition at line 51 of file ZdcLucrodData.h.

51 { m_trigData.push_back(val); }

◆ GetBCID()

unsigned int ZdcLucrodData::GetBCID ( ) const
inline

Definition at line 69 of file ZdcLucrodData.h.

69 { return m_bcid; }

◆ GetChanData()

const ZdcLucrodChannel& ZdcLucrodData::GetChanData ( int  it) const
inline

Definition at line 79 of file ZdcLucrodData.h.

79 { return m_chanData[it]; }

◆ GetChanDataSize()

unsigned int ZdcLucrodData::GetChanDataSize ( ) const
inline

Definition at line 82 of file ZdcLucrodData.h.

82 { return m_chanData.size(); }

◆ GetLevel1ID()

unsigned int ZdcLucrodData::GetLevel1ID ( ) const
inline

Definition at line 71 of file ZdcLucrodData.h.

71 { return m_level1ID; }

◆ GetLucrodID()

unsigned int ZdcLucrodData::GetLucrodID ( ) const
inline

Definition at line 68 of file ZdcLucrodData.h.

68 { return m_lucrodID; }

◆ GetNumBCs()

unsigned int ZdcLucrodData::GetNumBCs ( ) const
inline

Definition at line 72 of file ZdcLucrodData.h.

72 { return m_numBCs; }

◆ GetRunNumber()

unsigned int ZdcLucrodData::GetRunNumber ( ) const
inline

Definition at line 70 of file ZdcLucrodData.h.

70 { return m_runNumber; }

◆ GetStatus()

unsigned int ZdcLucrodData::GetStatus ( ) const
inline

Definition at line 73 of file ZdcLucrodData.h.

73 { return m_status; }

◆ GetTrigAvgA()

uint16_t ZdcLucrodData::GetTrigAvgA ( ) const
inline

Definition at line 75 of file ZdcLucrodData.h.

75 { return m_trigAvgA; }

◆ GetTrigAvgC()

uint16_t ZdcLucrodData::GetTrigAvgC ( ) const
inline

Definition at line 76 of file ZdcLucrodData.h.

76 { return m_trigAvgC; }

◆ GetTrigData()

const std::vector<uint16_t>& ZdcLucrodData::GetTrigData ( ) const
inline

Definition at line 78 of file ZdcLucrodData.h.

78 { return m_trigData; }

◆ GetTrigDataSize()

unsigned int ZdcLucrodData::GetTrigDataSize ( ) const
inline

Definition at line 81 of file ZdcLucrodData.h.

81 { return m_trigData.size(); }

◆ operator<<()

std::ostream& ZdcLucrodData::operator<< ( std::ostream &  os)
inline

Definition at line 120 of file ZdcLucrodData.h.

120 { os << str(); return os; }

◆ SetBCID()

void ZdcLucrodData::SetBCID ( unsigned int  val)
inline

Definition at line 42 of file ZdcLucrodData.h.

42 { m_bcid = val; }

◆ SetLevel1ID()

void ZdcLucrodData::SetLevel1ID ( unsigned int  val)
inline

Definition at line 44 of file ZdcLucrodData.h.

44 { m_level1ID = val; }

◆ SetNumBCs()

void ZdcLucrodData::SetNumBCs ( unsigned int  val)
inline

Definition at line 45 of file ZdcLucrodData.h.

45 { m_numBCs = val; }

◆ SetRunNumber()

void ZdcLucrodData::SetRunNumber ( unsigned int  val)
inline

Definition at line 43 of file ZdcLucrodData.h.

43 { m_runNumber = val; }

◆ SetStatus()

void ZdcLucrodData::SetStatus ( unsigned int  val)
inline

Definition at line 46 of file ZdcLucrodData.h.

46 { m_status = val; }

◆ SetTrigAvgA()

void ZdcLucrodData::SetTrigAvgA ( uint16_t  val)
inline

Definition at line 48 of file ZdcLucrodData.h.

48 { m_trigAvgA = val; }

◆ SetTrigAvgC()

void ZdcLucrodData::SetTrigAvgC ( uint16_t  val)
inline

Definition at line 49 of file ZdcLucrodData.h.

49 { m_trigAvgC = val; }

◆ str()

std::string ZdcLucrodData::str ( ) const
inline

Definition at line 84 of file ZdcLucrodData.h.

84  {
85 
86  std::ostringstream ost;
87 
88  ost << " LucrodID: " << std::dec << m_lucrodID << std::endl
89  << " BCID: " << std::dec << m_bcid << std::endl
90  << " RunNumber: " << std::dec << m_runNumber << std::endl
91  << " Level1ID: 0x" << std::hex << m_level1ID << std::endl
92  << " NumBCs: " << std::dec << m_numBCs << std::endl
93  << " Status: " << std::dec << m_status << std::endl;
94 
95  for (unsigned int nch=0; nch<m_chanData.size(); nch++)
96  {
97 
98  std::vector<uint16_t> waveform = m_chanData[nch].waveform;
99 
100  ost << " ch: " << m_chanData[nch].id << " waveform:";
101 
102  for (unsigned int sample=0; sample<waveform.size(); sample++)
103  ost << " " << waveform[sample]/ADC2MV;
104 
105  ost << std::endl;
106  }
107 
108  ost << " trigAvgA: " << m_trigAvgA/ADC2MV << std::endl;
109  ost << " trigAvgC: " << m_trigAvgC/ADC2MV << std::endl;
110  ost << " trigAmpl:";
111 
112  for (unsigned int nch=0; nch<m_trigData.size(); nch++)
113  ost << " " << m_trigData[nch]/ADC2MV;
114 
115  ost << std::endl << " stat: " << m_status;
116 
117  return ost.str();
118  }

Member Data Documentation

◆ m_bcid

unsigned int ZdcLucrodData::m_bcid
private

Definition at line 125 of file ZdcLucrodData.h.

◆ m_chanData

std::vector<ZdcLucrodChannel> ZdcLucrodData::m_chanData
private

Definition at line 135 of file ZdcLucrodData.h.

◆ m_level1ID

unsigned int ZdcLucrodData::m_level1ID
private

Definition at line 127 of file ZdcLucrodData.h.

◆ m_lucrodID

unsigned int ZdcLucrodData::m_lucrodID
private

Definition at line 124 of file ZdcLucrodData.h.

◆ m_numBCs

unsigned int ZdcLucrodData::m_numBCs
private

Definition at line 128 of file ZdcLucrodData.h.

◆ m_runNumber

unsigned int ZdcLucrodData::m_runNumber
private

Definition at line 126 of file ZdcLucrodData.h.

◆ m_status

unsigned int ZdcLucrodData::m_status
private

Definition at line 129 of file ZdcLucrodData.h.

◆ m_trigAvgA

uint16_t ZdcLucrodData::m_trigAvgA
private

Definition at line 131 of file ZdcLucrodData.h.

◆ m_trigAvgC

uint16_t ZdcLucrodData::m_trigAvgC
private

Definition at line 132 of file ZdcLucrodData.h.

◆ m_trigData

std::vector<uint16_t> ZdcLucrodData::m_trigData
private

Definition at line 134 of file ZdcLucrodData.h.


The documentation for this class was generated from the following file:
ZdcLucrodData::str
std::string str() const
Definition: ZdcLucrodData.h:84
ZdcLucrodChannelType
Definition: ZdcLucrodData.h:12
python.trigbs_prescaleL1.ost
ost
Definition: trigbs_prescaleL1.py:104
plotting.yearwise_efficiency.channel
channel
Definition: yearwise_efficiency.py:24
ZdcLucrodData::m_lucrodID
unsigned int m_lucrodID
Definition: ZdcLucrodData.h:124
ZdcLucrodData::m_trigAvgC
uint16_t m_trigAvgC
Definition: ZdcLucrodData.h:132
skel.it
it
Definition: skel.GENtoEVGEN.py:396
ZdcLucrodData::m_runNumber
unsigned int m_runNumber
Definition: ZdcLucrodData.h:126
FullCPAlgorithmsTest_eljob.sample
sample
Definition: FullCPAlgorithmsTest_eljob.py:116
ZdcLucrodData::m_chanData
std::vector< ZdcLucrodChannel > m_chanData
Definition: ZdcLucrodData.h:135
ZdcLucrodData::m_level1ID
unsigned int m_level1ID
Definition: ZdcLucrodData.h:127
ReadFromCoolCompare.os
os
Definition: ReadFromCoolCompare.py:231
ZdcLucrodData::m_trigData
std::vector< uint16_t > m_trigData
Definition: ZdcLucrodData.h:134
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:220
ZdcLucrodData::m_bcid
unsigned int m_bcid
Definition: ZdcLucrodData.h:125
ADC2MV
#define ADC2MV
Definition: ZdcLucrodData.h:10
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
ZdcLucrodData::m_trigAvgA
uint16_t m_trigAvgA
Definition: ZdcLucrodData.h:131
ZdcLucrodData::m_numBCs
unsigned int m_numBCs
Definition: ZdcLucrodData.h:128
ZdcLucrodData::m_status
unsigned int m_status
Definition: ZdcLucrodData.h:129