All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
icarus::crt::CRTData Struct Reference

Single hit (self trigger) of a CRT board. More...

#include <CRTData.hh>

Public Member Functions

bool IsOverflow_TS0 () const
 
bool IsOverflow_TS1 () const
 
bool IsReference_TS0 () const
 
bool IsReference_TS1 () const
 

Public Attributes

uint8_t fMac5 { 0 }
 FEB address following numbering convention common for both data and MC. More...
 
uint32_t fEntry
 Hit index for given FEB in an event (starts from 0 for each event). More...
 
uint64_t fTs0 { 0 }
 Absolute hit timestamp [ns]. More...
 
uint64_t fTs1 { 0 }
 Trigger time, not well defined as of Apr 14, 2021. More...
 
uint16_t fAdc [64] {}
 ADC readout for each channel. CAEN (Bern) CRT FEBs use only indices 0-31. More...
 
uint32_t fFlags { 0 }
 DAQ uses 8 bits, remaining bits reserved for future use. More...
 
uint64_t fThisPollStart { 0 }
 Absolute timestamp [ns] of the start of the data transfer from FEB. More...
 
uint64_t fLastPollStart { 0 }
 Absolute timestamp [ns] of the start of the previous data transfer from FEB. More...
 
uint32_t fHitsInPoll { 0 }
 Total number of hits in the data transfer (including hits omitted by FEB) More...
 
uint32_t fCoinc { 0 }
 Top CRT coincidence bit map. More...
 
uint64_t fLastAcceptedTimestamp { 0 }
 Timestamp of the previous measured hit. More...
 
uint16_t fLostHits { 0 }
 Number of hits omitted by FEB since the previous measured hit. More...
 

Detailed Description

Single hit (self trigger) of a CRT board.

The structure contains data related to a single (self-triggered) hit in CRT FEB. The MAC address corresponds to a Monte Carlo mapping of FEBs. All timestamps are absolute Unix timestamps with 1 ns step.

Definition at line 26 of file ICARUS/CRT/CRTData.hh.

Member Function Documentation

bool icarus::crt::CRTData::IsOverflow_TS0 ( ) const
inline

Definition at line 45 of file ICARUS/CRT/CRTData.hh.

45 { return !(fFlags & CRTDataFlags::TS0Present); }
static constexpr uint32_t TS0Present
TS0 counter was restarted in time.
uint32_t fFlags
DAQ uses 8 bits, remaining bits reserved for future use.
bool icarus::crt::CRTData::IsOverflow_TS1 ( ) const
inline

Definition at line 46 of file ICARUS/CRT/CRTData.hh.

46 { return !(fFlags & CRTDataFlags::TS1Present); }
static constexpr uint32_t TS1Present
TS1 counter was restarted in time.
uint32_t fFlags
DAQ uses 8 bits, remaining bits reserved for future use.
bool icarus::crt::CRTData::IsReference_TS0 ( ) const
inline

Definition at line 47 of file ICARUS/CRT/CRTData.hh.

static constexpr uint32_t TS0Reference
This hit is a T0 reference signal.
uint32_t fFlags
DAQ uses 8 bits, remaining bits reserved for future use.
bool icarus::crt::CRTData::IsReference_TS1 ( ) const
inline

Definition at line 48 of file ICARUS/CRT/CRTData.hh.

static constexpr uint32_t TS1Reference
This hit is a T1 reference signal.
uint32_t fFlags
DAQ uses 8 bits, remaining bits reserved for future use.

Member Data Documentation

uint16_t icarus::crt::CRTData::fAdc[64] {}

ADC readout for each channel. CAEN (Bern) CRT FEBs use only indices 0-31.

Definition at line 32 of file ICARUS/CRT/CRTData.hh.

uint32_t icarus::crt::CRTData::fCoinc { 0 }

Top CRT coincidence bit map.

Definition at line 39 of file ICARUS/CRT/CRTData.hh.

uint32_t icarus::crt::CRTData::fEntry

Hit index for given FEB in an event (starts from 0 for each event).

Definition at line 29 of file ICARUS/CRT/CRTData.hh.

uint32_t icarus::crt::CRTData::fFlags { 0 }

DAQ uses 8 bits, remaining bits reserved for future use.

Definition at line 34 of file ICARUS/CRT/CRTData.hh.

uint32_t icarus::crt::CRTData::fHitsInPoll { 0 }

Total number of hits in the data transfer (including hits omitted by FEB)

Definition at line 37 of file ICARUS/CRT/CRTData.hh.

uint64_t icarus::crt::CRTData::fLastAcceptedTimestamp { 0 }

Timestamp of the previous measured hit.

Definition at line 41 of file ICARUS/CRT/CRTData.hh.

uint64_t icarus::crt::CRTData::fLastPollStart { 0 }

Absolute timestamp [ns] of the start of the previous data transfer from FEB.

Definition at line 36 of file ICARUS/CRT/CRTData.hh.

uint16_t icarus::crt::CRTData::fLostHits { 0 }

Number of hits omitted by FEB since the previous measured hit.

Definition at line 42 of file ICARUS/CRT/CRTData.hh.

uint8_t icarus::crt::CRTData::fMac5 { 0 }

FEB address following numbering convention common for both data and MC.

Definition at line 28 of file ICARUS/CRT/CRTData.hh.

uint64_t icarus::crt::CRTData::fThisPollStart { 0 }

Absolute timestamp [ns] of the start of the data transfer from FEB.

Definition at line 35 of file ICARUS/CRT/CRTData.hh.

uint64_t icarus::crt::CRTData::fTs0 { 0 }

Absolute hit timestamp [ns].

Definition at line 30 of file ICARUS/CRT/CRTData.hh.

uint64_t icarus::crt::CRTData::fTs1 { 0 }

Trigger time, not well defined as of Apr 14, 2021.

Definition at line 31 of file ICARUS/CRT/CRTData.hh.


The documentation for this struct was generated from the following file: