CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
gem::AMCdata Class Reference

#include <AMCdata.h>

Public Member Functions

void addGEB (GEBdata g)
 Adds GEB data to vector. More...
 
 AMCdata ()
 Constructor for the class. More...
 
 AMCdata (const uint8_t AMCnum_, const uint32_t L1A_, const uint16_t BX_, const uint32_t Dlength_, const uint8_t FV_, const uint8_t Rtype_, const uint8_t Param1_, const uint8_t Param2_, const uint8_t Param3_, const uint16_t Onum_, const uint16_t BID_, const uint32_t GEMDAV_, const uint64_t Bstatus_, const uint8_t GDcount_, const uint8_t Tstate_, const uint32_t ChamT_, const uint8_t OOSG_)
 
uint8_t amcNum () const
 Returns AMC number. More...
 
uint16_t boardId () const
 Returns Board ID. More...
 
uint64_t bStatus () const
 Returns Buffer status. More...
 
uint16_t bx () const
 Returns Bunch Crossing ID. More...
 
uint32_t chamberTimeOut () const
 Return Chamber Timeout. More...
 
uint32_t crc () const
 
uint32_t dlength () const
 Returns Data Length (Overall size of FED event fragment) More...
 
uint32_t dlengthT () const
 
uint8_t fv () const
 Returns Format Version. More...
 
uint8_t gdCount () const
 Returns GEM DAV count (number of chamber blocks) More...
 
const std::vector< GEBdata > * gebs () const
 Returns a vector of GEB data. More...
 
uint32_t gemDAV () const
 Returns GEM DAV list (which chambers have data) More...
 
uint64_t getAMCheader1 () const
 
uint64_t getAMCheader2 () const
 
uint64_t getAMCTrailer () const
 
uint64_t getGEMeventHeader () const
 
uint64_t getGEMeventTrailer () const
 
uint32_t l1A () const
 Returns L1A number. More...
 
uint8_t l1AT () const
 
uint8_t oosGLIB () const
 Return OOS GLIB (if GLIB is out of sync) More...
 
uint16_t orbitNum () const
 Returns Orbit number. More...
 
uint8_t param1 () const
 
uint8_t param2 () const
 
uint8_t param3 () const
 
uint8_t runType () const
 Returns Run Type. More...
 
void setAMCheader1 (uint64_t word)
 Reads the word for AMC Header. More...
 
void setAMCheader2 (uint64_t word)
 Reads the word for the AMC Header 2. More...
 
void setAMCnum (uint8_t n)
 Returns AMC number. More...
 
void setAMCTrailer (uint64_t word)
 Reads the word for the AMC Trailer. More...
 
void setBID (uint16_t n)
 Returns Board ID. More...
 
void setBstatus (uint64_t n)
 Returns Buffer status. More...
 
void setBX (uint16_t n)
 Returns Bunch Crossing ID. More...
 
void setChamT (uint32_t n)
 Return Chamber Timeout. More...
 
void setCRC (uint32_t n)
 
void setDlength (uint32_t n)
 Returns Data Length (Overall size of FED event fragment) More...
 
void setDlengthT (uint32_t n)
 
void setFV (uint8_t n)
 Returns Format Version. More...
 
void setGDcount (uint8_t n)
 Returns GEM DAV count (number of chamber blocks) More...
 
void setGEMDAV (uint32_t n)
 Returns GEM DAV list (which chambers have data) More...
 
void setGEMeventHeader (uint64_t word)
 Reads the word for the GEM Event Header. More...
 
void setGEMeventTrailer (uint64_t word)
 Reads the word for the GEM Event Trailer. More...
 
void setL1A (uint32_t n)
 Returns L1A number. More...
 
void setL1AT (uint8_t n)
 
void setOnum (uint16_t n)
 Returns Orbit number. More...
 
void setOOSG (uint8_t n)
 Return OOS GLIB (if GLIB is out of sync) More...
 
void setParam1 (uint8_t n)
 
void setParam2 (uint8_t n)
 
void setParam3 (uint8_t n)
 
void setRtype (uint8_t n)
 Returns Run Type. More...
 
void setTstate (uint8_t n)
 Returns TTS state. More...
 
uint8_t ttsState () const
 Returns TTS state. More...
 
 ~AMCdata ()
 Destructor for the class. More...
 

Private Attributes

std::vector< GEBdatagebd
 Vector of GEB data. More...
 
uint8_t m_AMCnum
 0000:4 AMC#:4 More...
 
uint16_t m_BID
 Board ID:16. More...
 
uint64_t m_Bstatus
 (30 zeroes):30 Buffer Status:34 More...
 
uint16_t m_BX
 0000:4 BX ID:12 More...
 
uint32_t m_ChamT
 (8 zeroes):8 Chamber timeout:24 More...
 
uint32_t m_CRC
 
uint32_t m_Dlength
 (12 zeroes):12 Data length:20 More...
 
uint32_t m_DlengthT
 
uint8_t m_FV
 
uint8_t m_GDcount
 000:3 GEM DAV count:5 More...
 
uint32_t m_GEMDAV
 (8 zeroes):8 GEM DAV list:24 More...
 
uint32_t m_L1A
 (8 zeroes):8 L1A ID:24 More...
 
uint8_t m_L1AT
 
uint16_t m_Onum
 
uint8_t m_OOSG
 (7 zeroes):7 OOS GLIB:1 More...
 
uint8_t m_Param1
 Run param1:8. More...
 
uint8_t m_Param2
 Run param2:8. More...
 
uint8_t m_Param3
 Run param3:8. More...
 
uint8_t m_Rtype
 0000:4 Run Type:4 More...
 
uint8_t m_Tstate
 0000:4 TTS state:4 More...
 

Detailed Description

Definition at line 10 of file AMCdata.h.

Constructor & Destructor Documentation

gem::AMCdata::AMCdata ( )
inline

Constructor for the class.

Definition at line 14 of file AMCdata.h.

14 {};
gem::AMCdata::AMCdata ( const uint8_t  AMCnum_,
const uint32_t  L1A_,
const uint16_t  BX_,
const uint32_t  Dlength_,
const uint8_t  FV_,
const uint8_t  Rtype_,
const uint8_t  Param1_,
const uint8_t  Param2_,
const uint8_t  Param3_,
const uint16_t  Onum_,
const uint16_t  BID_,
const uint32_t  GEMDAV_,
const uint64_t  Bstatus_,
const uint8_t  GDcount_,
const uint8_t  Tstate_,
const uint32_t  ChamT_,
const uint8_t  OOSG_ 
)
inline

Definition at line 15 of file AMCdata.h.

31  :
32  m_AMCnum(AMCnum_),
33  m_L1A(L1A_),
34  m_BX(BX_),
35  m_Dlength(Dlength_),
36  m_FV(FV_),
37  m_Rtype(Rtype_),
38  m_Param1(Param1_),
39  m_Param2(Param2_),
40  m_Param3(Param3_),
41  m_Onum(Onum_),
42  m_BID(BID_),
43  m_GEMDAV(GEMDAV_),
44  m_Bstatus(Bstatus_),
45  m_GDcount(GDcount_),
46  m_Tstate(Tstate_),
47  m_ChamT(ChamT_),
48  m_OOSG(OOSG_){}
uint32_t m_Dlength
(12 zeroes):12 Data length:20
Definition: AMCdata.h:211
uint8_t m_AMCnum
0000:4 AMC#:4
Definition: AMCdata.h:202
uint32_t m_ChamT
(8 zeroes):8 Chamber timeout:24
Definition: AMCdata.h:246
uint16_t m_Onum
Definition: AMCdata.h:222
uint32_t m_L1A
(8 zeroes):8 L1A ID:24
Definition: AMCdata.h:205
uint8_t m_OOSG
(7 zeroes):7 OOS GLIB:1
Definition: AMCdata.h:249
uint8_t m_Param1
Run param1:8.
Definition: AMCdata.h:219
uint32_t m_GEMDAV
(8 zeroes):8 GEM DAV list:24
Definition: AMCdata.h:231
uint8_t m_Param2
Run param2:8.
Definition: AMCdata.h:220
uint8_t m_FV
Definition: AMCdata.h:215
uint8_t m_Rtype
0000:4 Run Type:4
Definition: AMCdata.h:218
uint64_t m_Bstatus
(30 zeroes):30 Buffer Status:34
Definition: AMCdata.h:234
uint16_t m_BID
Board ID:16.
Definition: AMCdata.h:225
uint8_t m_Param3
Run param3:8.
Definition: AMCdata.h:221
uint8_t m_GDcount
000:3 GEM DAV count:5
Definition: AMCdata.h:237
uint8_t m_Tstate
0000:4 TTS state:4
Definition: AMCdata.h:240
uint16_t m_BX
0000:4 BX ID:12
Definition: AMCdata.h:208
gem::AMCdata::~AMCdata ( )
inline

Destructor for the class.

Definition at line 50 of file AMCdata.h.

References gebd.

50 {gebd.clear();}
std::vector< GEBdata > gebd
Vector of GEB data.
Definition: AMCdata.h:196

Member Function Documentation

void gem::AMCdata::addGEB ( GEBdata  g)
inline

Adds GEB data to vector.

Definition at line 191 of file AMCdata.h.

References gebd.

191 {gebd.push_back(g);}
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e g
Definition: Activities.doc:4
std::vector< GEBdata > gebd
Vector of GEB data.
Definition: AMCdata.h:196
uint8_t gem::AMCdata::amcNum ( ) const
inline

Returns AMC number.

Definition at line 141 of file AMCdata.h.

References m_AMCnum.

uint16_t gem::AMCdata::boardId ( ) const
inline

Returns Board ID.

Definition at line 152 of file AMCdata.h.

References m_BID.

uint64_t gem::AMCdata::bStatus ( ) const
inline

Returns Buffer status.

Definition at line 155 of file AMCdata.h.

References m_Bstatus.

uint16_t gem::AMCdata::bx ( ) const
inline

Returns Bunch Crossing ID.

Definition at line 143 of file AMCdata.h.

References m_BX.

uint32_t gem::AMCdata::chamberTimeOut ( ) const
inline

Return Chamber Timeout.

Definition at line 159 of file AMCdata.h.

References m_ChamT.

uint32_t gem::AMCdata::crc ( void  ) const
inline

Definition at line 162 of file AMCdata.h.

References m_CRC.

162 {return m_CRC;}
uint32_t m_CRC
Definition: AMCdata.h:253
uint32_t gem::AMCdata::dlength ( ) const
inline

Returns Data Length (Overall size of FED event fragment)

Definition at line 144 of file AMCdata.h.

References m_Dlength.

uint32_t gem::AMCdata::dlengthT ( ) const
inline

Definition at line 164 of file AMCdata.h.

References m_DlengthT.

164 {return m_DlengthT;}
uint32_t m_DlengthT
Definition: AMCdata.h:255
uint8_t gem::AMCdata::fv ( ) const
inline

Returns Format Version.

Definition at line 146 of file AMCdata.h.

References m_FV.

uint8_t gem::AMCdata::gdCount ( ) const
inline

Returns GEM DAV count (number of chamber blocks)

Definition at line 156 of file AMCdata.h.

References m_GDcount.

const std::vector<GEBdata>* gem::AMCdata::gebs ( ) const
inline

Returns a vector of GEB data.

Definition at line 193 of file AMCdata.h.

References gebd.

193 {return &gebd;}
std::vector< GEBdata > gebd
Vector of GEB data.
Definition: AMCdata.h:196
uint32_t gem::AMCdata::gemDAV ( ) const
inline

Returns GEM DAV list (which chambers have data)

Definition at line 154 of file AMCdata.h.

References m_GEMDAV.

uint64_t gem::AMCdata::getAMCheader1 ( ) const
inline

Definition at line 61 of file AMCdata.h.

References m_AMCnum, m_BX, m_Dlength, and m_L1A.

62  {
63  return
64  (static_cast<uint64_t>(m_AMCnum & 0x0f) << 56) |
65  (static_cast<uint64_t>(m_L1A & 0x00ffffff) << 32) |
66  (static_cast<uint64_t>(m_BX & 0x0fff) << 20) |
67  (static_cast<uint64_t>(m_Dlength & 0x000fffff));
68  }
uint32_t m_Dlength
(12 zeroes):12 Data length:20
Definition: AMCdata.h:211
uint8_t m_AMCnum
0000:4 AMC#:4
Definition: AMCdata.h:202
uint32_t m_L1A
(8 zeroes):8 L1A ID:24
Definition: AMCdata.h:205
unsigned long long uint64_t
Definition: Time.h:15
uint16_t m_BX
0000:4 BX ID:12
Definition: AMCdata.h:208
uint64_t gem::AMCdata::getAMCheader2 ( ) const
inline

Definition at line 82 of file AMCdata.h.

References m_BID, m_FV, m_Onum, m_Param1, m_Param2, m_Param3, and m_Rtype.

83  {
84  return
85  (static_cast<uint64_t>(m_FV & 0x0f) << 60) |
86  (static_cast<uint64_t>(m_Rtype & 0x0f) << 56) |
87  (static_cast<uint64_t>(m_Param1) << 48) |
88  (static_cast<uint64_t>(m_Param2) << 40) |
89  (static_cast<uint64_t>(m_Param3) << 32) |
90  (static_cast<uint64_t>(m_Onum) << 16) |
91  (static_cast<uint64_t>(m_BID));
92  }
uint16_t m_Onum
Definition: AMCdata.h:222
uint8_t m_Param1
Run param1:8.
Definition: AMCdata.h:219
uint8_t m_Param2
Run param2:8.
Definition: AMCdata.h:220
uint8_t m_FV
Definition: AMCdata.h:215
uint8_t m_Rtype
0000:4 Run Type:4
Definition: AMCdata.h:218
unsigned long long uint64_t
Definition: Time.h:15
uint16_t m_BID
Board ID:16.
Definition: AMCdata.h:225
uint8_t m_Param3
Run param3:8.
Definition: AMCdata.h:221
uint64_t gem::AMCdata::getAMCTrailer ( ) const
inline

Definition at line 133 of file AMCdata.h.

References m_CRC, m_DlengthT, and m_L1AT.

134  {
135  return
136  (static_cast<uint64_t>(m_CRC) << 32) |
137  (static_cast<uint64_t>(m_L1AT) << 24) |
138  (static_cast<uint64_t>(m_DlengthT & 0x000fffff));
139  }
uint8_t m_L1AT
Definition: AMCdata.h:254
unsigned long long uint64_t
Definition: Time.h:15
uint32_t m_CRC
Definition: AMCdata.h:253
uint32_t m_DlengthT
Definition: AMCdata.h:255
uint64_t gem::AMCdata::getGEMeventHeader ( ) const
inline

Definition at line 103 of file AMCdata.h.

References m_Bstatus, m_GDcount, m_GEMDAV, and m_Tstate.

104  {
105  return
106  (static_cast<uint64_t>(m_GEMDAV & 0x00ffffff) << 40) |
107  (static_cast<uint64_t>(m_Bstatus & 0x00ffffff) << 16) |
108  (static_cast<uint64_t>(m_GDcount & 0b00011111) << 11) |
109  (static_cast<uint64_t>(m_Tstate & 0b00000111));
110  }
uint32_t m_GEMDAV
(8 zeroes):8 GEM DAV list:24
Definition: AMCdata.h:231
uint64_t m_Bstatus
(30 zeroes):30 Buffer Status:34
Definition: AMCdata.h:234
unsigned long long uint64_t
Definition: Time.h:15
uint8_t m_GDcount
000:3 GEM DAV count:5
Definition: AMCdata.h:237
uint8_t m_Tstate
0000:4 TTS state:4
Definition: AMCdata.h:240
uint64_t gem::AMCdata::getGEMeventTrailer ( ) const
inline

Definition at line 119 of file AMCdata.h.

References m_ChamT, and m_OOSG.

120  {
121  return
122  (static_cast<uint64_t>(m_ChamT & 0x00ffffff) << 40) |
123  (static_cast<uint64_t>(m_OOSG & 0b00000001) << 39);
124  }
uint32_t m_ChamT
(8 zeroes):8 Chamber timeout:24
Definition: AMCdata.h:246
uint8_t m_OOSG
(7 zeroes):7 OOS GLIB:1
Definition: AMCdata.h:249
unsigned long long uint64_t
Definition: Time.h:15
uint32_t gem::AMCdata::l1A ( ) const
inline

Returns L1A number.

Definition at line 142 of file AMCdata.h.

References m_L1A.

uint8_t gem::AMCdata::l1AT ( ) const
inline

Definition at line 163 of file AMCdata.h.

References m_L1AT.

163 {return m_L1AT;}
uint8_t m_L1AT
Definition: AMCdata.h:254
uint8_t gem::AMCdata::oosGLIB ( ) const
inline

Return OOS GLIB (if GLIB is out of sync)

Definition at line 160 of file AMCdata.h.

References m_OOSG.

uint16_t gem::AMCdata::orbitNum ( ) const
inline

Returns Orbit number.

Definition at line 151 of file AMCdata.h.

References m_Onum.

uint8_t gem::AMCdata::param1 ( ) const
inline

Definition at line 148 of file AMCdata.h.

References m_Param1.

148 {return m_Param1;}
uint8_t m_Param1
Run param1:8.
Definition: AMCdata.h:219
uint8_t gem::AMCdata::param2 ( ) const
inline

Definition at line 149 of file AMCdata.h.

References m_Param2.

149 {return m_Param2;}
uint8_t m_Param2
Run param2:8.
Definition: AMCdata.h:220
uint8_t gem::AMCdata::param3 ( ) const
inline

Definition at line 150 of file AMCdata.h.

References m_Param3.

150 {return m_Param3;}
uint8_t m_Param3
Run param3:8.
Definition: AMCdata.h:221
uint8_t gem::AMCdata::runType ( ) const
inline

Returns Run Type.

Definition at line 147 of file AMCdata.h.

References m_Rtype.

void gem::AMCdata::setAMCheader1 ( uint64_t  word)
inline

Reads the word for AMC Header.

<AMC number

<L1A ID

<BX ID

<Data Length

Definition at line 54 of file AMCdata.h.

References m_AMCnum, m_BX, m_Dlength, and m_L1A.

55  {
56  m_AMCnum = 0x0f & (word >> 56);
57  m_L1A = 0x00ffffff & (word >> 32);
58  m_BX = 0x0fff & (word >> 20);
59  m_Dlength = 0x000fffff & word;
60  }
uint32_t m_Dlength
(12 zeroes):12 Data length:20
Definition: AMCdata.h:211
uint8_t m_AMCnum
0000:4 AMC#:4
Definition: AMCdata.h:202
uint32_t m_L1A
(8 zeroes):8 L1A ID:24
Definition: AMCdata.h:205
uint16_t m_BX
0000:4 BX ID:12
Definition: AMCdata.h:208
void gem::AMCdata::setAMCheader2 ( uint64_t  word)
inline

Reads the word for the AMC Header 2.

<Format Version

<Run Type

<Run Param 1

<Run Param 2

<Run Param 3

<Orbit Number

Board ID

Definition at line 72 of file AMCdata.h.

References m_BID, m_FV, m_Onum, m_Param1, m_Param2, m_Param3, and m_Rtype.

73  {
74  m_FV = 0x0f & (word >> 60);
75  m_Rtype = 0x0f & (word >> 56);
76  m_Param1 = word >> 48;
77  m_Param2 = word >> 40;
78  m_Param3 = word >> 32;
79  m_Onum = word >> 16;
80  m_BID = word;
81  }
uint16_t m_Onum
Definition: AMCdata.h:222
uint8_t m_Param1
Run param1:8.
Definition: AMCdata.h:219
uint8_t m_Param2
Run param2:8.
Definition: AMCdata.h:220
uint8_t m_FV
Definition: AMCdata.h:215
uint8_t m_Rtype
0000:4 Run Type:4
Definition: AMCdata.h:218
uint16_t m_BID
Board ID:16.
Definition: AMCdata.h:225
uint8_t m_Param3
Run param3:8.
Definition: AMCdata.h:221
void gem::AMCdata::setAMCnum ( uint8_t  n)
inline

Returns AMC number.

Definition at line 167 of file AMCdata.h.

References m_AMCnum, and gen::n.

void gem::AMCdata::setAMCTrailer ( uint64_t  word)
inline

Reads the word for the AMC Trailer.

Definition at line 127 of file AMCdata.h.

References m_CRC, m_DlengthT, and m_L1AT.

128  {
129  m_CRC = word >> 32;
130  m_L1AT = word >> 24;
131  m_DlengthT = 0x000fffff & word;
132  }
uint8_t m_L1AT
Definition: AMCdata.h:254
uint32_t m_CRC
Definition: AMCdata.h:253
uint32_t m_DlengthT
Definition: AMCdata.h:255
void gem::AMCdata::setBID ( uint16_t  n)
inline

Returns Board ID.

Definition at line 178 of file AMCdata.h.

References m_BID, and gen::n.

void gem::AMCdata::setBstatus ( uint64_t  n)
inline

Returns Buffer status.

Definition at line 181 of file AMCdata.h.

References m_Bstatus, and gen::n.

void gem::AMCdata::setBX ( uint16_t  n)
inline

Returns Bunch Crossing ID.

Definition at line 169 of file AMCdata.h.

References m_BX, and gen::n.

void gem::AMCdata::setChamT ( uint32_t  n)
inline

Return Chamber Timeout.

Definition at line 184 of file AMCdata.h.

References m_ChamT, and gen::n.

void gem::AMCdata::setCRC ( uint32_t  n)
inline

Definition at line 186 of file AMCdata.h.

References m_CRC, and gen::n.

186 {m_CRC = n;}
uint32_t m_CRC
Definition: AMCdata.h:253
void gem::AMCdata::setDlength ( uint32_t  n)
inline

Returns Data Length (Overall size of FED event fragment)

Definition at line 170 of file AMCdata.h.

References m_Dlength, and gen::n.

void gem::AMCdata::setDlengthT ( uint32_t  n)
inline

Definition at line 188 of file AMCdata.h.

References m_DlengthT, and gen::n.

188 {m_DlengthT = n;}
uint32_t m_DlengthT
Definition: AMCdata.h:255
void gem::AMCdata::setFV ( uint8_t  n)
inline

Returns Format Version.

Definition at line 172 of file AMCdata.h.

References m_FV, and gen::n.

void gem::AMCdata::setGDcount ( uint8_t  n)
inline

Returns GEM DAV count (number of chamber blocks)

Definition at line 182 of file AMCdata.h.

References m_GDcount, and gen::n.

void gem::AMCdata::setGEMDAV ( uint32_t  n)
inline

Returns GEM DAV list (which chambers have data)

Definition at line 180 of file AMCdata.h.

References m_GEMDAV, and gen::n.

void gem::AMCdata::setGEMeventHeader ( uint64_t  word)
inline

Reads the word for the GEM Event Header.

<GEM DAV list

<Buffer Status

<GEM DAV count

<TTS state

Definition at line 96 of file AMCdata.h.

References m_Bstatus, m_GDcount, m_GEMDAV, and m_Tstate.

97  {
98  m_GEMDAV = 0x00ffffff & (word >> 40);
99  m_Bstatus = 0x00ffffff & (word >> 16);
100  m_GDcount = 0b00011111 & (word >> 11);
101  m_Tstate = 0b00000111 & word;
102  }
uint32_t m_GEMDAV
(8 zeroes):8 GEM DAV list:24
Definition: AMCdata.h:231
uint64_t m_Bstatus
(30 zeroes):30 Buffer Status:34
Definition: AMCdata.h:234
uint8_t m_GDcount
000:3 GEM DAV count:5
Definition: AMCdata.h:237
uint8_t m_Tstate
0000:4 TTS state:4
Definition: AMCdata.h:240
void gem::AMCdata::setGEMeventTrailer ( uint64_t  word)
inline

Reads the word for the GEM Event Trailer.

<Chamber Timeout

<OOS GLIB

Definition at line 114 of file AMCdata.h.

References m_ChamT, and m_OOSG.

115  {
116  m_ChamT = 0x00ffffff & (word >> 40);
117  m_OOSG = 0b00000001 & (word >> 39);
118  }
uint32_t m_ChamT
(8 zeroes):8 Chamber timeout:24
Definition: AMCdata.h:246
uint8_t m_OOSG
(7 zeroes):7 OOS GLIB:1
Definition: AMCdata.h:249
void gem::AMCdata::setL1A ( uint32_t  n)
inline

Returns L1A number.

Definition at line 168 of file AMCdata.h.

References m_L1A, and gen::n.

void gem::AMCdata::setL1AT ( uint8_t  n)
inline

Definition at line 187 of file AMCdata.h.

References m_L1AT, and gen::n.

187 {m_L1AT = n;}
uint8_t m_L1AT
Definition: AMCdata.h:254
void gem::AMCdata::setOnum ( uint16_t  n)
inline

Returns Orbit number.

Definition at line 177 of file AMCdata.h.

References m_Onum, and gen::n.

void gem::AMCdata::setOOSG ( uint8_t  n)
inline

Return OOS GLIB (if GLIB is out of sync)

Definition at line 185 of file AMCdata.h.

References m_OOSG, and gen::n.

void gem::AMCdata::setParam1 ( uint8_t  n)
inline

Definition at line 174 of file AMCdata.h.

References m_Param1, and gen::n.

174 {m_Param1 = n;}
uint8_t m_Param1
Run param1:8.
Definition: AMCdata.h:219
void gem::AMCdata::setParam2 ( uint8_t  n)
inline

Definition at line 175 of file AMCdata.h.

References m_Param2, and gen::n.

175 {m_Param2 = n;}
uint8_t m_Param2
Run param2:8.
Definition: AMCdata.h:220
void gem::AMCdata::setParam3 ( uint8_t  n)
inline

Definition at line 176 of file AMCdata.h.

References m_Param3, and gen::n.

176 {m_Param3 = n;}
uint8_t m_Param3
Run param3:8.
Definition: AMCdata.h:221
void gem::AMCdata::setRtype ( uint8_t  n)
inline

Returns Run Type.

Definition at line 173 of file AMCdata.h.

References m_Rtype, and gen::n.

void gem::AMCdata::setTstate ( uint8_t  n)
inline

Returns TTS state.

Definition at line 183 of file AMCdata.h.

References m_Tstate, and gen::n.

uint8_t gem::AMCdata::ttsState ( ) const
inline

Returns TTS state.

Definition at line 157 of file AMCdata.h.

References m_Tstate.

Member Data Documentation

std::vector<GEBdata> gem::AMCdata::gebd
private

Vector of GEB data.

Definition at line 196 of file AMCdata.h.

Referenced by addGEB(), gebs(), and ~AMCdata().

uint8_t gem::AMCdata::m_AMCnum
private

0000:4 AMC#:4

Slot number of AMC(GLIB/MP7/EC7, etc.)

Definition at line 202 of file AMCdata.h.

Referenced by amcNum(), getAMCheader1(), setAMCheader1(), and setAMCnum().

uint16_t gem::AMCdata::m_BID
private

Board ID:16.

This is currently filled with 8bit long GLIB serial number

Definition at line 225 of file AMCdata.h.

Referenced by boardId(), getAMCheader2(), setAMCheader2(), and setBID().

uint64_t gem::AMCdata::m_Bstatus
private

(30 zeroes):30 Buffer Status:34

Bitmask indicating buffer error in given inputs

Definition at line 234 of file AMCdata.h.

Referenced by bStatus(), getGEMeventHeader(), setBstatus(), and setGEMeventHeader().

uint16_t gem::AMCdata::m_BX
private

0000:4 BX ID:12

Bunch crossing ID

Definition at line 208 of file AMCdata.h.

Referenced by bx(), getAMCheader1(), setAMCheader1(), and setBX().

uint32_t gem::AMCdata::m_ChamT
private

(8 zeroes):8 Chamber timeout:24

Bitmask indicating if GLIB did not recieve data from particular input for this L1A in X amount of GTX clock cycles

Definition at line 246 of file AMCdata.h.

Referenced by chamberTimeOut(), getGEMeventTrailer(), setChamT(), and setGEMeventTrailer().

uint32_t gem::AMCdata::m_CRC
private

Definition at line 253 of file AMCdata.h.

Referenced by crc(), getAMCTrailer(), setAMCTrailer(), and setCRC().

uint32_t gem::AMCdata::m_Dlength
private

(12 zeroes):12 Data length:20

Overall size of this FED event fragment in 64bit words (including headers and trailers)

Definition at line 211 of file AMCdata.h.

Referenced by dlength(), getAMCheader1(), setAMCheader1(), and setDlength().

uint32_t gem::AMCdata::m_DlengthT
private

Definition at line 255 of file AMCdata.h.

Referenced by dlengthT(), getAMCTrailer(), setAMCTrailer(), and setDlengthT().

uint8_t gem::AMCdata::m_FV
private

0000:4 Format Version:4

Definition at line 215 of file AMCdata.h.

Referenced by fv(), getAMCheader2(), setAMCheader2(), and setFV().

uint8_t gem::AMCdata::m_GDcount
private

000:3 GEM DAV count:5

Number of chamber blocks

Definition at line 237 of file AMCdata.h.

Referenced by gdCount(), getGEMeventHeader(), setGDcount(), and setGEMeventHeader().

uint32_t gem::AMCdata::m_GEMDAV
private

(8 zeroes):8 GEM DAV list:24

Bitmask indicating which inputs/chambers have data

Definition at line 231 of file AMCdata.h.

Referenced by gemDAV(), getGEMeventHeader(), setGEMDAV(), and setGEMeventHeader().

uint32_t gem::AMCdata::m_L1A
private

(8 zeroes):8 L1A ID:24

Basically like event number, but reset by resync

Definition at line 205 of file AMCdata.h.

Referenced by getAMCheader1(), l1A(), setAMCheader1(), and setL1A().

uint8_t gem::AMCdata::m_L1AT
private

Definition at line 254 of file AMCdata.h.

Referenced by getAMCTrailer(), l1AT(), setAMCTrailer(), and setL1AT().

uint16_t gem::AMCdata::m_Onum
private

Orbit number:16

Definition at line 222 of file AMCdata.h.

Referenced by getAMCheader2(), orbitNum(), setAMCheader2(), and setOnum().

uint8_t gem::AMCdata::m_OOSG
private

(7 zeroes):7 OOS GLIB:1

GLIB is out-of-sync (critical): L1A ID is different for different chambers in this event.

Definition at line 249 of file AMCdata.h.

Referenced by getGEMeventTrailer(), oosGLIB(), setGEMeventTrailer(), and setOOSG().

uint8_t gem::AMCdata::m_Param1
private

Run param1:8.

Definition at line 219 of file AMCdata.h.

Referenced by getAMCheader2(), param1(), setAMCheader2(), and setParam1().

uint8_t gem::AMCdata::m_Param2
private

Run param2:8.

Definition at line 220 of file AMCdata.h.

Referenced by getAMCheader2(), param2(), setAMCheader2(), and setParam2().

uint8_t gem::AMCdata::m_Param3
private

Run param3:8.

Definition at line 221 of file AMCdata.h.

Referenced by getAMCheader2(), param3(), setAMCheader2(), and setParam3().

uint8_t gem::AMCdata::m_Rtype
private

0000:4 Run Type:4

Current version = 0x0; Could be used to encode run types like physics, cosmics, threshold scan, etc.

Definition at line 218 of file AMCdata.h.

Referenced by getAMCheader2(), runType(), setAMCheader2(), and setRtype().

uint8_t gem::AMCdata::m_Tstate
private

0000:4 TTS state:4

Debug: GLIB TTS state at the moment when this event was built

Definition at line 240 of file AMCdata.h.

Referenced by getGEMeventHeader(), setGEMeventHeader(), setTstate(), and ttsState().