86 int SetTime(
double nsPerTick,
bool useExt=
false);
114 void setData(
size_t nWords,
void* pZCopyData);
121 void copyInData(
size_t nWords,
const void* pData);
bool operator<(const DDASReadout::RawChannel &c1, const DDASReadout::RawChannel &c2)
operator<
Definition: RawChannel.cpp:319
bool operator>(const DDASReadout::RawChannel &c1, const DDASReadout::RawChannel &c2)
operator>
Definition: RawChannel.cpp:329
bool operator==(const DDASReadout::RawChannel &c1, const DDASReadout::RawChannel &c2)
operator==
Definition: RawChannel.cpp:339
Definition: BufferArena.cpp:29
A struct containing a pointer to a hit and its properties.
Definition: RawChannel.h:41
int SetTime()
Set the 48-bit timestamp data from the hit infomration.
Definition: RawChannel.cpp:107
int SetChannel()
Set the channel value from the data.
Definition: RawChannel.cpp:168
bool s_ownData
True if we own s_data.
Definition: RawChannel.h:45
void copyInData(size_t nWords, const void *pData)
Copy in data.
Definition: RawChannel.cpp:227
int Validate(int expecting)
Determine if a channel has the correct amount of data.
Definition: RawChannel.cpp:187
int s_chanid
Channel within module.
Definition: RawChannel.h:44
int s_channelLength
Number of uint32_t in s_data.
Definition: RawChannel.h:47
double s_time
Extracted time, possibly calibrated.
Definition: RawChannel.h:43
void setData(size_t nWords, void *pZCopyData)
Set new data.
Definition: RawChannel.cpp:207
RawChannel & operator=(const RawChannel &rhs)
Assignment operator.
Definition: RawChannel.cpp:264
virtual ~RawChannel()
Destructor.
Definition: RawChannel.cpp:90
int s_ownDataSize
If we own data, how many uint32_t's.
Definition: RawChannel.h:46
static uint32_t channelLength(void *pData)
Extract the number of words in a hit.
Definition: RawChannel.cpp:283
RawChannel()
Default constructor.
Definition: RawChannel.cpp:48
static double moduleCalibration(uint32_t moduleType)
Returns the multiplier used to convert the module raw timestamp into nanoseconds.
Definition: RawChannel.cpp:297
uint32_t s_moduleType
Type of module this comes from.
Definition: RawChannel.h:42
int SetLength()
Set the event length from the data.
Definition: RawChannel.cpp:161
uint32_t * s_data
Pointer to the hit data.
Definition: RawChannel.h:48