Skip to content

TADCBoard

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

Board ID

UChar_t  GetBoardId()

ID of this ADC board (0 to 28). Current ADC board map is:

  • Board 0-9: ECal right (door) side
  • Board 10-12: PVETO
  • Board 13: HEPVETO
  • Board 14-23: ECal left (wall) side
  • Board 24-26: EVETO
  • Board 27: SAC
  • Board 28: Target

Board serial number

UInt_t GetBoardSN()

Serial number of CAEN board V1742. This is directly obtained from the board when DAQ is started.


Board LVDS pattern

UShort_t GetLVDSPattern()

16 bit pattern latched on the V1742 LVDS I/O connector when trigger arrives.

This connector is currently not used and this word is always 0.


Board Status

UInt_t  GetBoardStatus()
UChar_t GetStatus()	Old status pattern (do not use). Kept for backward compatibility.

Board status 10 bit pattern.

  • Bit 0: Event data content [0=is empty|1=has data]
  • Bit 1: DRS4 corrections staus [0=not applied|1=applied]
  • Bit 2: Zero suppression mode [0=rejection, 1=flagging]
  • Bit 3: Board fail (BF) flag
  • Bit 4: Event auto-pass flag [0=auto-pass OFF, 1= auto-pass ON]
  • Bit 5-9: Reserved

When autopass is ON, zero suppression is forced to flagging mode (Bit 2 = 1).  


Board Group Mask

UChar_t GetGroupMask()

4 bit pattern, 1 bit per group.

If 1, the group is active and contains active channels.

If 0, the group is either not active or does not contain active channels.


Board Group Error Mask (not implemented yet)

UChar_t GetGroupErrorMask()
Bool_t  GetGroupError(UChar_t);

4 bit pattern, 1 bit per group.

If 1, group StartIndexCell is not coherent with the other groups.

Other error conditions might be added in future.


Board Event Counter

UInt_t GetEventCounter()

22 bit counter with progressive number of event (number of triggers) within the run.


Board Time Tag

UInt_t GetEventTimeTag()

Event Time Tag: time of event since last reset (counter incremented at each sampling clock hit).

WARNING: this time is related to the digitizing process of the event and is not precise. Use Trigger Time Tag instead (see Trigger Time Tag in TADCTrigger).


Board Zero Suppression Algorithm

UChar_t Get0SuppAlgrtm()

4 bit (0-15) code of algorithm used for zero suppression.

  • 0: no zero suppression algorithm applied
  • 1: event is accepted if a group of consecutive samples above a given threshold is found
  • 2: event is accepted if RMS of the samples is above a given threshold
  • 3-15: reserved

Active Channel Mask

UInt_t GetActiveChannelMask()

32 bit mask encoding which channels were active (i.e. DAQ read them) in current event.


Accepted Channel Mask

UInt_t GetAcceptedChannelMask()

32 bit mask encoding which channels were accepted (i.e. passed the zero suppression algorithm) in current event.


ADC Channels Information

UChar_t GetNADCChannels()
TADCChannel* ADCChannel(Int_t)

Get handle to ADC channels information (see TADCChannel documentation). Use GetNADCChannels to get the number of ADC channels (0 to 32) available for this board.


ADC Triggers Information

UChar_t GetNADCTriggers()
TADCTrigger* ADCTrigger(Int_t)

Get handle to ADC triggers information (see TADCTrigger documentation). Use GetNADCTriggers to get the number of ADC triggers (0 to 4) available for this board.

Clone this wiki locally