CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
UCTAMCRawData Class Reference

#include <UCTAMCRawData.h>

Public Member Functions

uint32_t amcNo ()
 
uint32_t BXID ()
 
uint32_t crc32 ()
 
uint32_t dataLength () const
 
uint32_t dataLengthTrailer ()
 
const uint32_t * dataPtr () const
 
const uint32_t * header () const
 
uint32_t L1ID ()
 
uint32_t L1IDTrailer ()
 
uint32_t layer1Phi ()
 
uint32_t orbitNo ()
 
const uint32_t * payload () const
 
void print ()
 
const uint32_t * trailer () const
 
uint32_t trailerOffset () const
 
 UCTAMCRawData (const uint32_t *d)
 
virtual ~UCTAMCRawData ()
 

Private Member Functions

const UCTAMCRawDataoperator= (const UCTAMCRawData &i)=delete
 
 UCTAMCRawData (const UCTAMCRawData &)=delete
 

Private Attributes

const uint32_t * myDataPtr
 

Detailed Description

Definition at line 4 of file UCTAMCRawData.h.

Constructor & Destructor Documentation

◆ UCTAMCRawData() [1/2]

UCTAMCRawData::UCTAMCRawData ( const uint32_t *  d)
inline

Definition at line 6 of file UCTAMCRawData.h.

6 : myDataPtr(d) {}

◆ ~UCTAMCRawData()

virtual UCTAMCRawData::~UCTAMCRawData ( )
inlinevirtual

Definition at line 8 of file UCTAMCRawData.h.

8 { ; }

◆ UCTAMCRawData() [2/2]

UCTAMCRawData::UCTAMCRawData ( const UCTAMCRawData )
privatedelete

Member Function Documentation

◆ amcNo()

uint32_t UCTAMCRawData::amcNo ( )
inline

Definition at line 22 of file UCTAMCRawData.h.

22 { return ((myDataPtr[1] & 0x0F000000) >> 24); }

References myDataPtr.

Referenced by print().

◆ BXID()

uint32_t UCTAMCRawData::BXID ( )
inline

Definition at line 20 of file UCTAMCRawData.h.

20 { return ((myDataPtr[0] & 0xFFF00000) >> 20); }

References myDataPtr.

Referenced by print().

◆ crc32()

uint32_t UCTAMCRawData::crc32 ( )
inline

Definition at line 30 of file UCTAMCRawData.h.

30 { return (myDataPtr[trailerOffset() + 1]); }

References myDataPtr, and trailerOffset().

Referenced by print().

◆ dataLength()

uint32_t UCTAMCRawData::dataLength ( ) const
inline

Definition at line 18 of file UCTAMCRawData.h.

18 { return (myDataPtr[0] & 0x000FFFFF); }

References myDataPtr.

Referenced by print(), and trailerOffset().

◆ dataLengthTrailer()

uint32_t UCTAMCRawData::dataLengthTrailer ( )
inline

Definition at line 28 of file UCTAMCRawData.h.

28 { return (myDataPtr[trailerOffset()] & 0x000FFFFF); }

References myDataPtr, and trailerOffset().

Referenced by print().

◆ dataPtr()

const uint32_t* UCTAMCRawData::dataPtr ( ) const
inline

Definition at line 12 of file UCTAMCRawData.h.

12 { return myDataPtr; }

References myDataPtr.

◆ header()

const uint32_t* UCTAMCRawData::header ( void  ) const
inline

Definition at line 14 of file UCTAMCRawData.h.

14 { return &myDataPtr[0]; }

References myDataPtr.

◆ L1ID()

uint32_t UCTAMCRawData::L1ID ( )
inline

Definition at line 21 of file UCTAMCRawData.h.

21 { return (myDataPtr[1] & 0x00FFFFFF); }

References myDataPtr.

Referenced by print().

◆ L1IDTrailer()

uint32_t UCTAMCRawData::L1IDTrailer ( )
inline

Definition at line 29 of file UCTAMCRawData.h.

29 { return ((myDataPtr[trailerOffset()] & 0xFF000000) >> 24); }

References myDataPtr, and trailerOffset().

Referenced by print().

◆ layer1Phi()

uint32_t UCTAMCRawData::layer1Phi ( )
inline

Definition at line 23 of file UCTAMCRawData.h.

23 { return (myDataPtr[2] & 0x0000FFFF); }

References myDataPtr.

Referenced by L1TStage2CaloLayer1::dqmAnalyze(), and print().

◆ operator=()

const UCTAMCRawData& UCTAMCRawData::operator= ( const UCTAMCRawData i)
privatedelete

◆ orbitNo()

uint32_t UCTAMCRawData::orbitNo ( )
inline

Definition at line 24 of file UCTAMCRawData.h.

24 { return ((myDataPtr[2] & 0xFFFF0000) >> 16); }

References myDataPtr.

Referenced by print().

◆ payload()

const uint32_t* UCTAMCRawData::payload ( ) const
inline

Definition at line 15 of file UCTAMCRawData.h.

15 { return &myDataPtr[4]; }

References myDataPtr.

◆ print()

void UCTAMCRawData::print ( void  )
inline

Definition at line 32 of file UCTAMCRawData.h.

32  {
33  using namespace std;
34  cout << "AMC Payload Header:" << endl;
35  cout << "Data Length.. = " << dec << dataLength() << endl;
36  cout << "BXID......... = " << dec << BXID() << endl;
37  cout << "L1ID......... = " << internal << setfill('0') << setw(8) << hex << L1ID() << endl;
38  cout << "AMC No ...... = " << dec << amcNo() << endl;
39  cout << "Layer-1 Phi.. = " << dec << layer1Phi() << endl;
40  cout << "Orbit No..... = " << dec << orbitNo() << endl;
41  cout << "AMC Payload Trailer:" << endl;
42  cout << "Data Length.. = " << dec << dataLengthTrailer() << endl;
43  cout << "L1ID......... = " << internal << setfill('0') << setw(8) << hex << L1IDTrailer() << endl;
44  cout << "CRC32........ = " << internal << setfill('0') << setw(10) << hex << crc32() << endl;
45  }

References amcNo(), BXID(), gather_cfg::cout, crc32(), dataLength(), dataLengthTrailer(), TauDecayModes::dec, L1ID(), L1IDTrailer(), layer1Phi(), and orbitNo().

◆ trailer()

const uint32_t* UCTAMCRawData::trailer ( void  ) const
inline

Definition at line 16 of file UCTAMCRawData.h.

16 { return &myDataPtr[trailerOffset()]; }

References myDataPtr, and trailerOffset().

◆ trailerOffset()

uint32_t UCTAMCRawData::trailerOffset ( ) const
inline

Definition at line 26 of file UCTAMCRawData.h.

26 { return (dataLength() - 1) * 2; }

References dataLength().

Referenced by crc32(), dataLengthTrailer(), L1IDTrailer(), and trailer().

Member Data Documentation

◆ myDataPtr

const uint32_t* UCTAMCRawData::myDataPtr
private
gather_cfg.cout
cout
Definition: gather_cfg.py:144
UCTAMCRawData::BXID
uint32_t BXID()
Definition: UCTAMCRawData.h:20
UCTAMCRawData::orbitNo
uint32_t orbitNo()
Definition: UCTAMCRawData.h:24
UCTAMCRawData::L1ID
uint32_t L1ID()
Definition: UCTAMCRawData.h:21
UCTAMCRawData::myDataPtr
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:55
UCTAMCRawData::trailerOffset
uint32_t trailerOffset() const
Definition: UCTAMCRawData.h:26
std
Definition: JetResolutionObject.h:76
UCTAMCRawData::amcNo
uint32_t amcNo()
Definition: UCTAMCRawData.h:22
UCTAMCRawData::dataLengthTrailer
uint32_t dataLengthTrailer()
Definition: UCTAMCRawData.h:28
UCTAMCRawData::L1IDTrailer
uint32_t L1IDTrailer()
Definition: UCTAMCRawData.h:29
UCTAMCRawData::crc32
uint32_t crc32()
Definition: UCTAMCRawData.h:30
UCTAMCRawData::layer1Phi
uint32_t layer1Phi()
Definition: UCTAMCRawData.h:23
ztail.d
d
Definition: ztail.py:151
TauDecayModes.dec
dec
Definition: TauDecayModes.py:143
UCTAMCRawData::dataLength
uint32_t dataLength() const
Definition: UCTAMCRawData.h:18