ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::BCMRawData_v1 Class Reference

Class describing the BCM raw data. More...

#include <BCMRawData_v1.h>

Inheritance diagram for xAOD::BCMRawData_v1:
Collaboration diagram for xAOD::BCMRawData_v1:

Public Member Functions

 BCMRawData_v1 ()
 Default constructor.
The actual raw data payload
uint32_t bcmWord1 () const
 The first raw word.
void setBcmWord1 (uint32_t value)
 Set the first raw word.
uint32_t bcmWord2 () const
 The second raw word.
void setBcmWord2 (uint32_t value)
 Set the second raw word.
Conveninence accessors to certain bits of the raw data
int channel () const
 Channel identifier [0-15].
int pulse1Position () const
 Position of first pulse [0-63].
int pulse1Width () const
 Width of first pulse [0-31].
int pulse2Position () const
 Position of second pulse [0-63].
int pulse2Width () const
 Width of second pulse [0-31].
int lvl1a () const
 Level-1 Accept [0-63].
int bcid () const
 Bunch crossing ID [0-4095].
int lvl1id () const
 Level-1 ID [0-65535].
int error () const
 Error bits [0-15].

Detailed Description

Class describing the BCM raw data.

This is pretty much a literal translation of the old BCM_RawData class for the xAOD EDM.

Author
Attila Krasznahorkay Attil.nosp@m.a.Kr.nosp@m.aszna.nosp@m.hork.nosp@m.ay@ce.nosp@m.rn.c.nosp@m.h
Revision
652111
Date
2015-03-06 11:13:22 +0100 (Fri, 06 Mar 2015)

Definition at line 31 of file BCMRawData_v1.h.

Constructor & Destructor Documentation

◆ BCMRawData_v1()

xAOD::BCMRawData_v1::BCMRawData_v1 ( )

Default constructor.

Definition at line 15 of file BCMRawData_v1.cxx.

16 : SG::AuxElement() {
17
18 }
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.

Member Function Documentation

◆ bcid()

int xAOD::BCMRawData_v1::bcid ( ) const

Bunch crossing ID [0-4095].

Definition at line 68 of file BCMRawData_v1.cxx.

68 {
69
70 return ( bcmWord2() & 0xfff );
71 }
uint32_t bcmWord2() const
The second raw word.

◆ bcmWord1()

uint32_t xAOD::BCMRawData_v1::bcmWord1 ( ) const

The first raw word.

◆ bcmWord2()

uint32_t xAOD::BCMRawData_v1::bcmWord2 ( ) const

The second raw word.

◆ channel()

setBcmWord2 int xAOD::BCMRawData_v1::channel ( ) const

Channel identifier [0-15].

Definition at line 38 of file BCMRawData_v1.cxx.

38 {
39
40 return ( bcmWord1() & 0xf );
41 }
uint32_t bcmWord1() const
The first raw word.

◆ error()

int xAOD::BCMRawData_v1::error ( ) const

Error bits [0-15].

Definition at line 78 of file BCMRawData_v1.cxx.

78 {
79
80 return ( ( bcmWord2() >> 28 ) & 0xf );
81 }

◆ lvl1a()

int xAOD::BCMRawData_v1::lvl1a ( ) const

Level-1 Accept [0-63].

Definition at line 63 of file BCMRawData_v1.cxx.

63 {
64
65 return ( ( bcmWord1() >> 26 ) & 0x3f );
66 }

◆ lvl1id()

int xAOD::BCMRawData_v1::lvl1id ( ) const

Level-1 ID [0-65535].

Definition at line 73 of file BCMRawData_v1.cxx.

73 {
74
75 return ( ( bcmWord2() >> 12 ) & 0xffff );
76 }

◆ pulse1Position()

int xAOD::BCMRawData_v1::pulse1Position ( ) const

Position of first pulse [0-63].

Definition at line 43 of file BCMRawData_v1.cxx.

43 {
44
45 return ( ( bcmWord1() >> 4 ) & 0x3f );
46 }

◆ pulse1Width()

int xAOD::BCMRawData_v1::pulse1Width ( ) const

Width of first pulse [0-31].

Definition at line 48 of file BCMRawData_v1.cxx.

48 {
49
50 return ( ( bcmWord1() >> 10 ) & 0x1f );
51 }

◆ pulse2Position()

int xAOD::BCMRawData_v1::pulse2Position ( ) const

Position of second pulse [0-63].

Definition at line 53 of file BCMRawData_v1.cxx.

53 {
54
55 return ( ( bcmWord1() >> 15 ) & 0x3f );
56 }

◆ pulse2Width()

int xAOD::BCMRawData_v1::pulse2Width ( ) const

Width of second pulse [0-31].

Definition at line 58 of file BCMRawData_v1.cxx.

58 {
59
60 return ( ( bcmWord1() >> 21 ) & 0x1f );
61 }

◆ setBcmWord1()

void xAOD::BCMRawData_v1::setBcmWord1 ( uint32_t value)

Set the first raw word.

◆ setBcmWord2()

void xAOD::BCMRawData_v1::setBcmWord2 ( uint32_t value)

Set the second raw word.


The documentation for this class was generated from the following files: