test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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)
 
 UCTAMCRawData (const 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 7 of file UCTAMCRawData.h.

7  : myDataPtr(d) {
8  }
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:58
tuple d
Definition: ztail.py:151
virtual UCTAMCRawData::~UCTAMCRawData ( )
inlinevirtual

Definition at line 10 of file UCTAMCRawData.h.

10 {;}
UCTAMCRawData::UCTAMCRawData ( const UCTAMCRawData )
private

Member Function Documentation

uint32_t UCTAMCRawData::amcNo ( )
inline

Definition at line 24 of file UCTAMCRawData.h.

References myDataPtr.

Referenced by print().

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

Definition at line 22 of file UCTAMCRawData.h.

References myDataPtr.

Referenced by print().

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

Definition at line 32 of file UCTAMCRawData.h.

References myDataPtr, and trailerOffset().

Referenced by print().

32 {return (myDataPtr[trailerOffset()+1]);}
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:58
uint32_t trailerOffset() const
Definition: UCTAMCRawData.h:28
uint32_t UCTAMCRawData::dataLength ( ) const
inline

Definition at line 20 of file UCTAMCRawData.h.

References myDataPtr.

Referenced by print(), and trailerOffset().

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

Definition at line 30 of file UCTAMCRawData.h.

References myDataPtr, and trailerOffset().

Referenced by print().

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

Definition at line 14 of file UCTAMCRawData.h.

References myDataPtr.

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

Definition at line 16 of file UCTAMCRawData.h.

References myDataPtr.

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

Definition at line 23 of file UCTAMCRawData.h.

References myDataPtr.

Referenced by print().

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

Definition at line 31 of file UCTAMCRawData.h.

References myDataPtr, and trailerOffset().

Referenced by print().

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

Definition at line 25 of file UCTAMCRawData.h.

References myDataPtr.

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

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

Definition at line 26 of file UCTAMCRawData.h.

References myDataPtr.

Referenced by print().

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

Definition at line 17 of file UCTAMCRawData.h.

References myDataPtr.

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

Definition at line 34 of file UCTAMCRawData.h.

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

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

Definition at line 18 of file UCTAMCRawData.h.

References myDataPtr, and trailerOffset().

18 {return &myDataPtr[trailerOffset()];}
const uint32_t * myDataPtr
Definition: UCTAMCRawData.h:58
uint32_t trailerOffset() const
Definition: UCTAMCRawData.h:28
uint32_t UCTAMCRawData::trailerOffset ( ) const
inline

Definition at line 28 of file UCTAMCRawData.h.

References dataLength().

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

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

Member Data Documentation

const uint32_t* UCTAMCRawData::myDataPtr
private