Skip to content

TRawEvent

Emanuele Leonardi edited this page Apr 6, 2020 · 4 revisions

Run and Event Number

Int_t  GetRunNumber()
UInt_t GetEventNumber()

Run and Event number of this event.

Event Number is assigned by PadmeMerger when the event is assembled.


Event Time

TTimeStamp GetEventAbsTime()
ULong64_t  GetEventRunTime()

EventAbsTime is the wall clock time (UTC) when the event was assembled by PadmeMerger.

EventRunTime is the low level time of the event expressed in number of 80MHz clock ticks since the start of the run, as counted by the Trigger board.


Trigger mask

UInt_t GetEventTrigMask()
Bool_t EventTrigMaskGetBit(UChar_t)

Trigger mask contains the trigger bit pattern of the event (8 bits), i.e. which triggers were active when the event was collected. Bits 0 to 5 correspond to the LEMO plugs 1 to 6 on the Trigger board front panel. Bits 6 and 7 are software triggers generated by the Trigger board itself.

  • Bit 0: BTF trigger
  • Bit 1: Cosmics trigger
  • Bit 2: ECal radioactive source trigger
  • Bit 3: Dual-timer trigger (~50Hz)
  • Bit 4,5: Reserved
  • Bit 6: Delayed (off-beam) software trigger
  • Bit 7: Random software trigger

Event Status

UInt_t GetEventStatus()
Bool_t EventStatusGetBit(UChar_t)

16 bit pattern encoding the status of the event.

  • Bit 0: Event completeness [0: incomplete (one or more ADC boards are missing), 1: complete (all ADC boards were acquired)]
  • Bit 1: Auto-pass [0: inactive, 1: active]
  • Bit 2-15: Reserved

Missing ADC Boards Map

UInt_t GetMissingADCBoards()
Bool_t MissingADCBoardsGetBit(UChar_t)

If event is incomplete (Event Status bit 0 set to 0), store the map of missing boards. Boards 0 to 28 correspond to bits 0 to 28. Bit is set if corresponding board (a) was activated in the DAQ setup and (b) was not found in the final event.


Trigger information

TTriggerInfo* TriggerInfo()

Get handle to Trigger information structure for this event (see TTriggerInfo documentation).


ADC Boards information

UChar_t GetNADCBoards()
TADCBoard* ADCBoard(Int_t)

Get handle to ADC boards information (see TADCBoard documentation). Use GetNADCBoards to get the number of ADC boards available for this event.

Clone this wiki locally