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
 
uint8_t backPressure () const
 
uint8_t bc0locked () const
 
uint16_t boardId () const
 
uint32_t buffState () const
 
uint16_t bx () const
 
uint8_t daqClockLocked () const
 
uint8_t daqReady () 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
 
uint32_t linkTo () const
 
uint8_t mmcmLocked () 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 66 of file AMCdata.h.

Constructor & Destructor Documentation

gem::AMCdata::AMCdata ( )
inline

Definition at line 68 of file AMCdata.h.

68 : amch1_(0), amch2_(0), amct_(0), eh_(0), et_(0){};
uint64_t amch2_
Definition: AMCdata.h:122
uint64_t et_
Definition: AMCdata.h:125
uint64_t amct_
Definition: AMCdata.h:123
uint64_t eh_
Definition: AMCdata.h:124
uint64_t amch1_
Definition: AMCdata.h:121
gem::AMCdata::~AMCdata ( )
inline

Definition at line 69 of file AMCdata.h.

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

Member Function Documentation

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

Adds GEB data to vector.

Definition at line 116 of file AMCdata.h.

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

Definition at line 92 of file AMCdata.h.

References gem::AMCheader1::AMCnum.

92 { return AMCheader1{amch1_}.AMCnum; }
uint64_t amch1_
Definition: AMCdata.h:121
uint8_t gem::AMCdata::backPressure ( ) const
inline

Definition at line 111 of file AMCdata.h.

References gem::EventTrailer::BP.

111 { return EventTrailer{et_}.BP; }
uint64_t et_
Definition: AMCdata.h:125
uint8_t gem::AMCdata::bc0locked ( ) const
inline

Definition at line 107 of file AMCdata.h.

References gem::EventTrailer::BCL.

107 { return EventTrailer{et_}.BCL; }
uint64_t et_
Definition: AMCdata.h:125
uint16_t gem::AMCdata::boardId ( ) const
inline

Definition at line 94 of file AMCdata.h.

References gem::AMCheader2::boardID.

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

Definition at line 104 of file AMCdata.h.

References gem::EventHeader::buffState.

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

Definition at line 90 of file AMCdata.h.

References gem::AMCheader1::bxID.

90 { return AMCheader1{amch1_}.bxID; }
uint64_t amch1_
Definition: AMCdata.h:121
uint8_t gem::AMCdata::daqClockLocked ( ) const
inline

Definition at line 109 of file AMCdata.h.

References gem::EventTrailer::CL.

109 { return EventTrailer{et_}.CL; }
uint64_t et_
Definition: AMCdata.h:125
uint8_t gem::AMCdata::daqReady ( ) const
inline

Definition at line 108 of file AMCdata.h.

References gem::EventTrailer::DR.

108 { return EventTrailer{et_}.DR; }
uint64_t et_
Definition: AMCdata.h:125
uint32_t gem::AMCdata::dataLength ( ) const
inline

Definition at line 89 of file AMCdata.h.

References gem::AMCTrailer::dataLength.

Referenced by setAMCheader1().

89 { return AMCTrailer{amct_}.dataLength; }
uint64_t amct_
Definition: AMCdata.h:123
uint8_t gem::AMCdata::davCnt ( ) const
inline

Definition at line 103 of file AMCdata.h.

References gem::EventHeader::davCnt.

Referenced by setGEMeventHeader().

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

Definition at line 105 of file AMCdata.h.

References gem::EventHeader::davList.

Referenced by setGEMeventHeader().

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

Definition at line 100 of file AMCdata.h.

References gem::AMCheader2::formatVer.

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

Returns a vector of GEB data.

Definition at line 118 of file AMCdata.h.

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

Definition at line 73 of file AMCdata.h.

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

Definition at line 77 of file AMCdata.h.

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

Definition at line 80 of file AMCdata.h.

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

Definition at line 84 of file AMCdata.h.

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

Definition at line 87 of file AMCdata.h.

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

Definition at line 91 of file AMCdata.h.

References gem::AMCheader1::l1AID.

91 { return AMCheader1{amch1_}.l1AID; }
uint64_t amch1_
Definition: AMCdata.h:121
uint32_t gem::AMCdata::linkTo ( ) const
inline

Definition at line 113 of file AMCdata.h.

References gem::EventTrailer::linkTo.

113 { return EventTrailer{et_}.linkTo; }
uint64_t et_
Definition: AMCdata.h:125
uint8_t gem::AMCdata::mmcmLocked ( ) const
inline

Definition at line 110 of file AMCdata.h.

References gem::EventTrailer::ML.

110 { return EventTrailer{et_}.ML; }
uint64_t et_
Definition: AMCdata.h:125
uint8_t gem::AMCdata::oosGlib ( ) const
inline

Definition at line 112 of file AMCdata.h.

References gem::EventTrailer::oosGlib.

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

Definition at line 95 of file AMCdata.h.

References gem::AMCheader2::orbitNum.

Referenced by setAMCheader2().

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

Definition at line 98 of file AMCdata.h.

References gem::AMCheader2::param1.

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

Definition at line 97 of file AMCdata.h.

References gem::AMCheader2::param2.

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

Definition at line 96 of file AMCdata.h.

References gem::AMCheader2::param3.

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

Definition at line 99 of file AMCdata.h.

References gem::AMCheader2::runType.

Referenced by setAMCheader2().

99 { return AMCheader2{amch2_}.runType; }
uint64_t amch2_
Definition: AMCdata.h:122
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_, amct_, gem::AMCheader1::dataLength, gem::AMCTrailer::dataLength, and dataLength().

6  {
7  AMCheader1 u{0};
9  u.bxID = bxID;
10  u.l1AID = l1AID;
11  u.AMCnum = AMCnum;
12  amch1_ = u.word;
13 
14  AMCTrailer ut{0};
16  ut.l1AIDT = l1AID;
17  amct_ = ut.word;
18 }
uint32_t dataLength() const
Definition: AMCdata.h:89
uint64_t dataLength
Definition: AMCdata.h:33
uint64_t amct_
Definition: AMCdata.h:123
uint64_t amch1_
Definition: AMCdata.h:121
uint64_t dataLength
Definition: AMCdata.h:11
void gem::AMCdata::setAMCheader2 ( uint64_t  word)
inline

Definition at line 75 of file AMCdata.h.

References EcalCondDBWriter_cfi::runType, and gem::AMCheader1::word.

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

Definition at line 20 of file AMCdata.cc.

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

20  {
21  AMCheader2 u{0};
22  u.boardID = boardID;
23  u.orbitNum = orbitNum;
24  u.runType = runType;
25  amch2_ = u.word;
26 }
uint16_t orbitNum() const
Definition: AMCdata.h:95
uint64_t amch2_
Definition: AMCdata.h:122
uint8_t runType() const
Definition: AMCdata.h:99
uint64_t boardID
Definition: AMCdata.h:21
void gem::AMCdata::setAMCTrailer ( uint64_t  word)
inline

Definition at line 79 of file AMCdata.h.

References gem::AMCheader1::word.

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

Definition at line 82 of file AMCdata.h.

References gem::AMCheader1::word.

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

Definition at line 28 of file AMCdata.cc.

References gem::EventTrailer::BCL, gem::EventHeader::davCnt, davCnt(), davList(), eh_, and et_.

28  {
29  EventHeader u{0};
30  u.davCnt = davCnt;
31  u.davList = davList;
32  eh_ = u.word;
33 
34  EventTrailer ut{0};
35  ut.BCL = 1;
36  ut.DR = 1;
37  ut.CL = 1;
38  ut.ML = 1;
39  et_ = ut.word;
40 }
uint64_t et_
Definition: AMCdata.h:125
uint64_t eh_
Definition: AMCdata.h:124
uint32_t davList() const
Definition: AMCdata.h:105
uint8_t davCnt() const
Definition: AMCdata.h:103
uint64_t davCnt
Definition: AMCdata.h:46
uint64_t BCL
Definition: AMCdata.h:54
void gem::AMCdata::setGEMeventTrailer ( uint64_t  word)
inline

Definition at line 86 of file AMCdata.h.

References gem::AMCheader1::word.

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

Definition at line 102 of file AMCdata.h.

References gem::EventHeader::ttsState.

102 { return EventHeader{eh_}.ttsState; }
uint64_t eh_
Definition: AMCdata.h:124

Member Data Documentation

uint64_t gem::AMCdata::amch1_
private

Definition at line 121 of file AMCdata.h.

Referenced by setAMCheader1().

uint64_t gem::AMCdata::amch2_
private

Definition at line 122 of file AMCdata.h.

Referenced by setAMCheader2().

uint64_t gem::AMCdata::amct_
private

Definition at line 123 of file AMCdata.h.

Referenced by setAMCheader1().

uint64_t gem::AMCdata::eh_
private

Definition at line 124 of file AMCdata.h.

Referenced by setGEMeventHeader().

uint64_t gem::AMCdata::et_
private

Definition at line 125 of file AMCdata.h.

Referenced by setGEMeventHeader().

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

Vector of GEB data.

Definition at line 127 of file AMCdata.h.