LDMX Software
Public Member Functions | Public Attributes | List of all members
packing::FiberTrackerEvent Struct Reference

A spill of events from a FiberTracker station. More...

Public Member Functions

 FiberTrackerEvent (const std::vector< uint32_t > &spill_data, std::size_t i_word)
 

Public Attributes

int trigger_timestamp_lsb
 
int trigger_timestamp_msb
 
int event_timestamp_lsb
 
int event_timestamp_msb
 
std::vector< uint32_t > channel_hits
 

Detailed Description

A spill of events from a FiberTracker station.

Each event is 10 32-bit words where

Word 0: Timestamp LSB in 8 ns ticks since the last whole second, for the trigger signal Word 1: Timestamp MSB in UNIX epoch seconds for the trigger signal (in international atomic time)

Word 2: Timestamp LSB in 8 ns ticks since the last whole second, for the "event" Word 3: Timestamp MSB in UNIX epoch seconds for the "event" (honestly don't know what they mean by "event", so I ignore this timestamp)

Word 4-9: Hit information, the fiber tracker has 6*32=192 fibers, a 1 means a hit and a 0 means no hit.

There are 192 bits to make the system compatible with the samll and big detectors. In T9 we have small detectors (only 96 channels) so we have lots of zeros. Only channels 48-144 have detector data, the other channels are empty (all zeros).

Definition at line 135 of file FiberTrackerRawDecoder.cxx.

Constructor & Destructor Documentation

◆ FiberTrackerEvent()

packing::FiberTrackerEvent::FiberTrackerEvent ( const std::vector< uint32_t > &  spill_data,
std::size_t  i_word 
)
inline

Definition at line 142 of file FiberTrackerRawDecoder.cxx.

143 {
144 trigger_timestamp_lsb = spill_data.at(i_word);
145 trigger_timestamp_msb = spill_data.at(i_word + 1);
146 event_timestamp_lsb = spill_data.at(i_word + 2);
147 event_timestamp_msb = spill_data.at(i_word + 3);
148 channel_hits.clear();
149 channel_hits.reserve(6);
150 for (std::size_t i{i_word + 4}; i < i_word + 10 and i < spill_data.size();
151 i++)
152 channel_hits.push_back(spill_data.at(i));
153 }

Member Data Documentation

◆ channel_hits

std::vector<uint32_t> packing::FiberTrackerEvent::channel_hits

Definition at line 138 of file FiberTrackerRawDecoder.cxx.

◆ event_timestamp_lsb

int packing::FiberTrackerEvent::event_timestamp_lsb

Definition at line 136 of file FiberTrackerRawDecoder.cxx.

◆ event_timestamp_msb

int packing::FiberTrackerEvent::event_timestamp_msb

Definition at line 137 of file FiberTrackerRawDecoder.cxx.

◆ trigger_timestamp_lsb

int packing::FiberTrackerEvent::trigger_timestamp_lsb

Definition at line 136 of file FiberTrackerRawDecoder.cxx.

◆ trigger_timestamp_msb

int packing::FiberTrackerEvent::trigger_timestamp_msb

Definition at line 136 of file FiberTrackerRawDecoder.cxx.


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