CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public 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 ()
 
const UCTAMCRawDataoperator= (const UCTAMCRawData &i)=delete
 
uint32_t orbitNo ()
 
const uint32_t * payload () const
 
void print ()
 
const uint32_t * trailer () const
 
uint32_t trailerOffset () const
 
 UCTAMCRawData (const uint32_t *d)
 
 UCTAMCRawData (const UCTAMCRawData &)=delete
 
virtual ~UCTAMCRawData ()
 

Private Attributes

const uint32_t * myDataPtr
 

Detailed Description

Definition at line 4 of file UCTAMCRawData.h.

Constructor & Destructor Documentation

UCTAMCRawData::UCTAMCRawData ( const uint32_t *  d)
inline

Definition at line 6 of file UCTAMCRawData.h.

6 : myDataPtr(d) {}
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:54
tuple d
Definition: ztail.py:151
UCTAMCRawData::UCTAMCRawData ( const UCTAMCRawData )
delete
virtual UCTAMCRawData::~UCTAMCRawData ( )
inlinevirtual

Definition at line 12 of file UCTAMCRawData.h.

12 { ; }

Member Function Documentation

uint32_t UCTAMCRawData::amcNo ( )
inline

Definition at line 26 of file UCTAMCRawData.h.

References myDataPtr.

Referenced by print().

26 { return ((myDataPtr[1] & 0x0F000000) >> 24); }
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:54
uint32_t UCTAMCRawData::BXID ( )
inline

Definition at line 24 of file UCTAMCRawData.h.

References myDataPtr.

Referenced by print().

24 { return ((myDataPtr[0] & 0xFFF00000) >> 20); }
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:54
uint32_t UCTAMCRawData::crc32 ( )
inline

Definition at line 34 of file UCTAMCRawData.h.

References myDataPtr, and trailerOffset().

Referenced by print().

34 { return (myDataPtr[trailerOffset() + 1]); }
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:54
uint32_t trailerOffset() const
Definition: UCTAMCRawData.h:30
uint32_t UCTAMCRawData::dataLength ( ) const
inline

Definition at line 22 of file UCTAMCRawData.h.

References myDataPtr.

Referenced by print(), and trailerOffset().

22 { return (myDataPtr[0] & 0x000FFFFF); }
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:54
uint32_t UCTAMCRawData::dataLengthTrailer ( )
inline

Definition at line 32 of file UCTAMCRawData.h.

References myDataPtr, and trailerOffset().

Referenced by print().

32 { return (myDataPtr[trailerOffset()] & 0x000FFFFF); }
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:54
uint32_t trailerOffset() const
Definition: UCTAMCRawData.h:30
const uint32_t* UCTAMCRawData::dataPtr ( ) const
inline

Definition at line 16 of file UCTAMCRawData.h.

References myDataPtr.

16 { return myDataPtr; }
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:54
const uint32_t* UCTAMCRawData::header ( void  ) const
inline

Definition at line 18 of file UCTAMCRawData.h.

References myDataPtr.

18 { return &myDataPtr[0]; }
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:54
uint32_t UCTAMCRawData::L1ID ( )
inline

Definition at line 25 of file UCTAMCRawData.h.

References myDataPtr.

Referenced by print().

25 { return (myDataPtr[1] & 0x00FFFFFF); }
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:54
uint32_t UCTAMCRawData::L1IDTrailer ( )
inline

Definition at line 33 of file UCTAMCRawData.h.

References myDataPtr, and trailerOffset().

Referenced by print().

33 { return ((myDataPtr[trailerOffset()] & 0xFF000000) >> 24); }
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:54
uint32_t trailerOffset() const
Definition: UCTAMCRawData.h:30
uint32_t UCTAMCRawData::layer1Phi ( )
inline

Definition at line 27 of file UCTAMCRawData.h.

References myDataPtr.

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

27 { return (myDataPtr[2] & 0x0000FFFF); }
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:54
const UCTAMCRawData& UCTAMCRawData::operator= ( const UCTAMCRawData i)
delete
uint32_t UCTAMCRawData::orbitNo ( )
inline

Definition at line 28 of file UCTAMCRawData.h.

References myDataPtr.

Referenced by print().

28 { return ((myDataPtr[2] & 0xFFFF0000) >> 16); }
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:54
const uint32_t* UCTAMCRawData::payload ( ) const
inline

Definition at line 19 of file UCTAMCRawData.h.

References myDataPtr.

19 { return &myDataPtr[4]; }
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:54
void UCTAMCRawData::print ( void  )
inline

Definition at line 36 of file UCTAMCRawData.h.

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

36  {
37  using namespace std;
38  cout << "AMC Payload Header:" << endl;
39  cout << "Data Length.. = " << dec << dataLength() << endl;
40  cout << "BXID......... = " << dec << BXID() << endl;
41  cout << "L1ID......... = " << internal << setfill('0') << setw(8) << hex << L1ID() << endl;
42  cout << "AMC No ...... = " << dec << amcNo() << endl;
43  cout << "Layer-1 Phi.. = " << dec << layer1Phi() << endl;
44  cout << "Orbit No..... = " << dec << orbitNo() << endl;
45  cout << "AMC Payload Trailer:" << endl;
46  cout << "Data Length.. = " << dec << dataLengthTrailer() << endl;
47  cout << "L1ID......... = " << internal << setfill('0') << setw(8) << hex << L1IDTrailer() << endl;
48  cout << "CRC32........ = " << internal << setfill('0') << setw(10) << hex << crc32() << endl;
49  }
uint32_t dataLength() const
Definition: UCTAMCRawData.h:22
uint32_t amcNo()
Definition: UCTAMCRawData.h:26
uint32_t BXID()
Definition: UCTAMCRawData.h:24
uint32_t dataLengthTrailer()
Definition: UCTAMCRawData.h:32
uint32_t crc32()
Definition: UCTAMCRawData.h:34
uint32_t orbitNo()
Definition: UCTAMCRawData.h:28
tuple cout
Definition: gather_cfg.py:144
uint32_t L1ID()
Definition: UCTAMCRawData.h:25
uint32_t L1IDTrailer()
Definition: UCTAMCRawData.h:33
uint32_t layer1Phi()
Definition: UCTAMCRawData.h:27
const uint32_t* UCTAMCRawData::trailer ( void  ) const
inline

Definition at line 20 of file UCTAMCRawData.h.

References myDataPtr, and trailerOffset().

20 { return &myDataPtr[trailerOffset()]; }
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:54
uint32_t trailerOffset() const
Definition: UCTAMCRawData.h:30
uint32_t UCTAMCRawData::trailerOffset ( ) const
inline

Definition at line 30 of file UCTAMCRawData.h.

References dataLength().

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

30 { return (dataLength() - 1) * 2; }
uint32_t dataLength() const
Definition: UCTAMCRawData.h:22

Member Data Documentation

const uint32_t* UCTAMCRawData::myDataPtr
private