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 ()
 
uint8_t amcNum () const
 
uint16_t boardId () const
 
uint32_t buffState () const
 
uint16_t bx () const
 
uint32_t chTimeOut () const
 
uint32_t dataLength () const
 
uint8_t davCnt () const
 
uint32_t davList () const
 
uint8_t formatVer () const
 
const std::vector< GEBdata > * gebs () const
 Returns a vector of GEB 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
 
uint8_t oosGlib () const
 
uint16_t orbitNum () const
 
uint8_t param1 () const
 
uint8_t param2 () const
 
uint8_t param3 () const
 
uint8_t runType () const
 
void setAMCheader1 (uint64_t word)
 
void setAMCheader1 (uint32_t dataLength, uint16_t bxID, uint32_t l1AID, uint8_t AMCnum)
 
void setAMCheader2 (uint64_t word)
 
void setAMCheader2 (uint16_t boardID, uint16_t orbitNum, uint8_t runType)
 
void setAMCTrailer (uint64_t word)
 
void setGEMeventHeader (uint64_t word)
 
void setGEMeventHeader (uint8_t davCnt, uint32_t davList)
 
void setGEMeventTrailer (uint64_t word)
 
uint16_t ttsState () const
 
 ~AMCdata ()
 

Private Attributes

uint64_t amch1_
 
uint64_t amch2_
 
uint64_t amct_
 
uint64_t eh_
 
uint64_t et_
 
std::vector< GEBdatagebd_
 Vector of GEB data. More...
 

Detailed Description

Definition at line 55 of file AMCdata.h.

Constructor & Destructor Documentation

gem::AMCdata::AMCdata ( )
inline

Definition at line 59 of file AMCdata.h.

59 {};
gem::AMCdata::~AMCdata ( )
inline

Definition at line 60 of file AMCdata.h.

60 {gebd_.clear();}
std::vector< GEBdata > gebd_
Vector of GEB data.
Definition: AMCdata.h:114

Member Function Documentation

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

Adds GEB data to vector.

Definition at line 102 of file AMCdata.h.

102 {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:114
uint8_t gem::AMCdata::amcNum ( ) const
inline

Definition at line 83 of file AMCdata.h.

References gem::AMCheader1::AMCnum.

83 {return AMCheader1{amch1_}.AMCnum;}
uint64_t amch1_
Definition: AMCdata.h:108
uint16_t gem::AMCdata::boardId ( ) const
inline

Definition at line 85 of file AMCdata.h.

References gem::AMCheader2::boardID.

85 {return AMCheader2{amch2_}.boardID;}
uint64_t amch2_
Definition: AMCdata.h:109
uint32_t gem::AMCdata::buffState ( ) const
inline

Definition at line 95 of file AMCdata.h.

References gem::EventHeader::buffState.

95 {return EventHeader{eh_}.buffState;}
uint64_t eh_
Definition: AMCdata.h:111
uint16_t gem::AMCdata::bx ( ) const
inline

Definition at line 81 of file AMCdata.h.

References gem::AMCheader1::bxID.

81 {return AMCheader1{amch1_}.bxID;}
uint64_t amch1_
Definition: AMCdata.h:108
uint32_t gem::AMCdata::chTimeOut ( ) const
inline

Definition at line 99 of file AMCdata.h.

References gem::EventTrailer::chTimeOut.

99 {return EventTrailer{et_}.chTimeOut;}
uint64_t et_
Definition: AMCdata.h:112
uint32_t gem::AMCdata::dataLength ( ) const
inline

Definition at line 80 of file AMCdata.h.

References gem::AMCheader1::dataLength.

Referenced by setAMCheader1().

80 {return AMCheader1{amch1_}.dataLength;}
uint64_t amch1_
Definition: AMCdata.h:108
uint8_t gem::AMCdata::davCnt ( ) const
inline

Definition at line 94 of file AMCdata.h.

References gem::EventHeader::davCnt.

Referenced by setGEMeventHeader().

94 {return EventHeader{eh_}.davCnt;}
uint64_t eh_
Definition: AMCdata.h:111
uint32_t gem::AMCdata::davList ( ) const
inline

Definition at line 96 of file AMCdata.h.

References gem::EventHeader::davList.

Referenced by setGEMeventHeader().

96 {return EventHeader{eh_}.davList;}
uint64_t eh_
Definition: AMCdata.h:111
uint8_t gem::AMCdata::formatVer ( ) const
inline

Definition at line 91 of file AMCdata.h.

References gem::AMCheader2::formatVer.

91 {return AMCheader2{amch2_}.formatVer;}
uint64_t amch2_
Definition: AMCdata.h:109
const std::vector<GEBdata>* gem::AMCdata::gebs ( ) const
inline

Returns a vector of GEB data.

Definition at line 104 of file AMCdata.h.

104 {return &gebd_;}
std::vector< GEBdata > gebd_
Vector of GEB data.
Definition: AMCdata.h:114
uint64_t gem::AMCdata::getAMCheader1 ( ) const
inline

Definition at line 64 of file AMCdata.h.

64 { return amch1_;}
uint64_t amch1_
Definition: AMCdata.h:108
uint64_t gem::AMCdata::getAMCheader2 ( ) const
inline

Definition at line 68 of file AMCdata.h.

68 { return amch2_;}
uint64_t amch2_
Definition: AMCdata.h:109
uint64_t gem::AMCdata::getAMCTrailer ( ) const
inline

Definition at line 71 of file AMCdata.h.

71 { return amct_;}
uint64_t amct_
Definition: AMCdata.h:110
uint64_t gem::AMCdata::getGEMeventHeader ( ) const
inline

Definition at line 75 of file AMCdata.h.

75 { return eh_;}
uint64_t eh_
Definition: AMCdata.h:111
uint64_t gem::AMCdata::getGEMeventTrailer ( ) const
inline

Definition at line 78 of file AMCdata.h.

78 { return et_;}
uint64_t et_
Definition: AMCdata.h:112
uint32_t gem::AMCdata::l1A ( ) const
inline

Definition at line 82 of file AMCdata.h.

References gem::AMCheader1::l1AID.

82 {return AMCheader1{amch1_}.l1AID;}
uint64_t amch1_
Definition: AMCdata.h:108
uint8_t gem::AMCdata::oosGlib ( ) const
inline

Definition at line 98 of file AMCdata.h.

References gem::EventTrailer::oosGlib.

98 {return EventTrailer{et_}.oosGlib;}
uint64_t et_
Definition: AMCdata.h:112
uint16_t gem::AMCdata::orbitNum ( ) const
inline

Definition at line 86 of file AMCdata.h.

References gem::AMCheader2::orbitNum.

Referenced by setAMCheader2().

86 {return AMCheader2{amch2_}.orbitNum;}
uint64_t amch2_
Definition: AMCdata.h:109
uint8_t gem::AMCdata::param1 ( ) const
inline

Definition at line 89 of file AMCdata.h.

References gem::AMCheader2::param1.

89 {return AMCheader2{amch2_}.param1;}
uint64_t amch2_
Definition: AMCdata.h:109
uint8_t gem::AMCdata::param2 ( ) const
inline

Definition at line 88 of file AMCdata.h.

References gem::AMCheader2::param2.

88 {return AMCheader2{amch2_}.param2;}
uint64_t amch2_
Definition: AMCdata.h:109
uint8_t gem::AMCdata::param3 ( ) const
inline

Definition at line 87 of file AMCdata.h.

References gem::AMCheader2::param3.

87 {return AMCheader2{amch2_}.param3;}
uint64_t amch2_
Definition: AMCdata.h:109
uint8_t gem::AMCdata::runType ( ) const
inline

Definition at line 90 of file AMCdata.h.

References gem::AMCheader2::runType.

Referenced by setAMCheader2().

90 {return AMCheader2{amch2_}.runType;}
uint64_t amch2_
Definition: AMCdata.h:109
void gem::AMCdata::setAMCheader1 ( uint64_t  word)
inline
void AMCdata::setAMCheader1 ( uint32_t  dataLength,
uint16_t  bxID,
uint32_t  l1AID,
uint8_t  AMCnum 
)

Definition at line 6 of file AMCdata.cc.

References amch1_, gem::AMCheader1::AMCnum, gem::AMCheader1::bxID, gem::AMCheader1::dataLength, dataLength(), gem::AMCheader1::l1AID, and gem::AMCheader1::word.

7 {
8  AMCheader1 u;
10  u.bxID = bxID;
11  u.l1AID = l1AID;
12  u.AMCnum = AMCnum;
13  amch1_ = u.word;
14 }
uint64_t bxID
Definition: AMCdata.h:12
uint32_t dataLength() const
Definition: AMCdata.h:80
uint64_t amch1_
Definition: AMCdata.h:108
uint64_t dataLength
Definition: AMCdata.h:11
uint64_t word
Definition: AMCdata.h:9
uint64_t l1AID
Definition: AMCdata.h:13
uint64_t AMCnum
Definition: AMCdata.h:14
void gem::AMCdata::setAMCheader2 ( uint64_t  word)
inline

Definition at line 66 of file AMCdata.h.

References gem::AMCheader1::word.

66 { amch2_ = word;}
uint64_t amch2_
Definition: AMCdata.h:109
void AMCdata::setAMCheader2 ( uint16_t  boardID,
uint16_t  orbitNum,
uint8_t  runType 
)

Definition at line 16 of file AMCdata.cc.

References amch2_, gem::AMCheader2::boardID, gem::AMCheader2::orbitNum, orbitNum(), gem::AMCheader2::runType, runType(), and gem::AMCheader2::word.

17 {
18  AMCheader2 u;
19  u.boardID = boardID;
20  u.orbitNum = orbitNum;
21  u.runType = runType;
22  amch2_ = u.word;
23 }
uint16_t orbitNum() const
Definition: AMCdata.h:86
uint64_t word
Definition: AMCdata.h:19
uint64_t amch2_
Definition: AMCdata.h:109
uint8_t runType() const
Definition: AMCdata.h:90
uint64_t runType
Definition: AMCdata.h:26
uint64_t orbitNum
Definition: AMCdata.h:22
uint64_t boardID
Definition: AMCdata.h:21
void gem::AMCdata::setAMCTrailer ( uint64_t  word)
inline

Definition at line 70 of file AMCdata.h.

References gem::AMCheader1::word.

70 { amct_ = word;}
uint64_t amct_
Definition: AMCdata.h:110
void gem::AMCdata::setGEMeventHeader ( uint64_t  word)
inline

Definition at line 73 of file AMCdata.h.

References gem::AMCheader1::word.

73 { eh_ = word;}
uint64_t eh_
Definition: AMCdata.h:111
void AMCdata::setGEMeventHeader ( uint8_t  davCnt,
uint32_t  davList 
)

Definition at line 25 of file AMCdata.cc.

References gem::EventHeader::davCnt, davCnt(), gem::EventHeader::davList, davList(), eh_, and gem::EventHeader::word.

26 {
27  EventHeader u;
28  u.davCnt = davCnt;
29  u.davList = davList;
30  eh_ = u.word;
31 }
uint64_t davList
Definition: AMCdata.h:44
uint64_t eh_
Definition: AMCdata.h:111
uint32_t davList() const
Definition: AMCdata.h:96
uint8_t davCnt() const
Definition: AMCdata.h:94
uint64_t davCnt
Definition: AMCdata.h:42
uint64_t word
Definition: AMCdata.h:39
void gem::AMCdata::setGEMeventTrailer ( uint64_t  word)
inline

Definition at line 77 of file AMCdata.h.

References gem::AMCheader1::word.

77 { et_ = word;}
uint64_t et_
Definition: AMCdata.h:112
uint16_t gem::AMCdata::ttsState ( ) const
inline

Definition at line 93 of file AMCdata.h.

References gem::EventHeader::ttsState.

93 {return EventHeader{eh_}.ttsState;}
uint64_t eh_
Definition: AMCdata.h:111

Member Data Documentation

uint64_t gem::AMCdata::amch1_
private

Definition at line 108 of file AMCdata.h.

Referenced by setAMCheader1().

uint64_t gem::AMCdata::amch2_
private

Definition at line 109 of file AMCdata.h.

Referenced by setAMCheader2().

uint64_t gem::AMCdata::amct_
private

Definition at line 110 of file AMCdata.h.

uint64_t gem::AMCdata::eh_
private

Definition at line 111 of file AMCdata.h.

Referenced by setGEMeventHeader().

uint64_t gem::AMCdata::et_
private

Definition at line 112 of file AMCdata.h.

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

Vector of GEB data.

Definition at line 114 of file AMCdata.h.