#include <EBFevent.h>
Inheritance diagram for EBFevent:
Public Types | |
enum | { ID_1 = LATidentity_(LATprimaryId::Id_EBF, LATsecondaryId::Id_EBF_1), ID_2 = LATidentity_(LATprimaryId::Id_EBF, LATsecondaryId::Id_EBF_2), ID_3 = LATidentity_(LATprimaryId::Id_EBF, LATsecondaryId::Id_EBF_3), ID = LATidentity_(LATprimaryId::Id_EBF, LATsecondaryId::Id_EBF), ID_MC = LATidentity_(LATprimaryId::Id_EBF_MC, LATsecondaryId::Id_EBF_MC) } |
Public Member Functions | |
unsigned | status () const |
Return the event's status word as generated by the hardware. | |
unsigned | summary () const |
Return the event's summary word. | |
unsigned | payloadSize () const |
Return the size of the event's data payload. | |
EBFcontribution * | payload () const |
Return a pointer to the first contribution to the event. | |
unsigned char * | string (bool swap=!DFC_BIG_ENDIAN) |
Return this EBFevent in string form. | |
Static Public Member Functions | |
EBFevent * | create (unsigned char *buffer, unsigned size, bool swap=!DFC_BIG_ENDIAN) |
Create an EBFevent from a Python string. |
EBF stands for Event Builder Format and is the format that is generated by the LAT hardware. Events in this format are the input to the FSW filter algorithm.
Copyright: Copyright 2004 by The Board of Trustees of the Leland Stanford Junior University. All rights reserved.
|
Create an EBFevent from a Python string. This method is here to support the Python interface. A Python string is casted to an EBFevent. If this class had anything but a no-op constructor this would not work and we would have to use placement new. The reason this wasn't done right off the bat is that it isn't entirely clear that we know how to do this correctly vis a vis the Python object reference counting. Sometimes a Python crash is observed that complains about an object already being marked for garbage collection. I have not beeg able to narrow this down to a particular class, but think it might have to do with the placement new used in the LATdatagram class.
|
|
Return a pointer to the first contribution to the event.
|
|
Return the size of the event's data payload.
|
|
Return the event's status word as generated by the hardware.
|
|
Return this EBFevent in string form. This method is here to support the Python interface.
Reimplemented from LATcontribution. |
|
Return the event's summary word. This word really doesn't belong with the event, but with the first contributor to the event. However, all contributors are expected to generate the same summary word, so we let the first contributor's version speak for the whole event.
|