-
Notifications
You must be signed in to change notification settings - Fork 7
Data Formats
All PADME data formats are based on the ROOT framework and need the PadmeRoot library to be accessed.
Top data structure for events coming from the PADME DAQ system.
Run number (0 for dummy runs)
Int_t fRunNumber;
Int_t GetRunNumber() { return fRunNumber; }
void SetRunNumber(Int_t v) { fRunNumber = v; }
Progressive number of event within run. Assigned by Merger.
UInt_t fEventNumber;
UInt_t GetEventNumber() { return fEventNumber; }
void SetEventNumber(UInt_t v) { fEventNumber = v; }
UTC time when event was merged. Assigned by Merger.
TTimeStamp fEventAbsTime;
TTimeStamp GetEventAbsTime() { return fEventAbsTime; }
void SetEventAbsTime(TTimeStamp t) { fEventAbsTime = t; }
Number of 80MHz clock ticks since the first event of the run. Computed from Trigger board internal clock counter status when trigger signal was produced.
N.B. event 0 has EventRunTime=0 by definition
ULong64_t fEventRunTime;
ULong64_t GetEventRunTime() { return fEventRunTime; }
void SetEventRunTime(ULong64_t t) { fEventRunTime = t; }
Event trigger mask. Only lower 8 bits are currently used. Obtained from Trigger board.
bit 0: BTF trigger
bit 1: cosmics trigger
bit 2: unused
bit 3: local trigger (from dual-timer module)
bit 4: unused
bit 5: reserved
bit 6: random trigger
bit 7: delayed trigger
UInt_t fEventTrigMask;
UInt_t GetEventTrigMask() Return current value of trigger mask
void SetEventTrigMask(UInt_t t) Set trigger mask to given value
void EventTrigMaskSetBit(UChar_t b) Set bit <b> (b=0-7) of trigger mask to 1
void EventTrigMaskUnsetBit(UChar_t b) Set bit <b> (b=0-7) of trigger mask to 0
Bool_t EventTrigMaskGetBit(UChar_t b) Return status (1=true, 0=false) of bit <b> (b=0-7) of trigger mask
Event status mask. Only lower 2 bits are currently used. Defined by Merger.
bit 0: event is complete (1=all boards are present, 0=one or more boards are missing)
bit 1: autopass (0=autopass disabled, 1=autopass enabled)
UInt_t fEventStatus; Return current value of event status mask
void SetEventStatus(UInt_t s) Set event status mask to given value
void EventStatusSetBit(UChar_t b) Set bit <b> (b=0-7) of event status mask to 1
void EventStatusUnsetBit(UChar_t b) Set bit <b> (b=0-7) of event status mask to 0
Bool_t EventStatusGetBit(UChar_t b) Return status (1=true, 0=false) of bit <b> (b=0-7) of event status mask
Bit mask of missing ADC boards. Bits 0-28 (we have 29 boards) are set to 1 if corresponding board is missing in this event. Created by Merger.
UInt_t fMissingADCBoards;
UInt_t GetMissingADCBoards() Return map of missing boards
void SetMissingADCBoards(UInt_t m) Set map of missing boards
void MissingADCBoardsSetBit(UChar_t b) Tag board <b> as missing
void MissingADCBoardsUnsetBit(UChar_t b) Tag board <b> as present
Bool_t MissingADCBoardsGetBit(UChar_t b) Check if board <b> is missing (1=missing, 0=not missing)
Pointer to TTriggerInfo data structure (see below) for this event.
TTriggerInfo* fTriggerInfo;
TTriggerInfo* TriggerInfo() Return pointer to Trigger data structure
TClonesArray of pointers to TADCBoard data structures (see below) contained in this event.
UChar_t fNADCBoards;
TClonesArray* fADCBoards;
UChar_t GetNADCBoards() Return number of ADC boards contained in the array
TADCBoard* AddADCBoard(); Add an ADC board to the array and return pointer to its data structure
TADCBoard* ADCBoard(Int_t); Return pointer to ADC board <b> data structure (0 <= b < fNADCBoards)
Information acquired from the Trigger board
8-bit counter. Counts number of triggers produced by the Trigger board.
UInt_t fTriggerCounter;
UInt_t GetTriggerCounter() Return value of TriggerCounter for this event
void SetTriggerCounter(UInt_t v) Set value of TriggerCounter for this event
40-bit counter of 80 MHz clock ticks produced by the Trigger board internal clock.
ULong64_t fTriggerTime;
ULong64_t GetTriggerTime() Return value of TriggerTime for this event
void SetTriggerTime(ULong64_t v) Set value of TriggerTime for this event
8-bit trigger pattern showing which trigger signal(s) produced this trigger. See EventTrigMask for details.
UInt_t fTriggerPattern;
UInt_t GetTriggerPattern() Return value of TriggerPattern for this event
void SetTriggerPattern(UInt_t v) Set value of TriggerPattern for this event
© 2015 PADME Collaboration