16#ifndef O2_ZDC_CTF_HELPER_H
17#define O2_ZDC_CTF_HELPER_H
36 const gsl::span<const ChannelData>& chanData,
37 const gsl::span<const OrbitData>& pedData)
38 : mTrigData(trgData), mChanData(chanData), mEOData(pedData) {}
43 uint32_t(mTrigData.size()), uint32_t(mChanData.size()), uint32_t(mEOData.size()), 0, 0, 0};
44 if (mTrigData.size()) {
45 h.firstOrbit = mTrigData[0].ir.orbit;
46 h.firstBC = mTrigData[0].ir.bc;
49 h.firstOrbitEOData = mEOData[0].ir.orbit;
50 h.firstScaler = mEOData[0].scaler;
59 template <
typename I,
typename D,
typename T,
int M = 1>
75 return static_cast<I&
>(*this);
80 I
res = *(
static_cast<I*
>(
this));
88 return static_cast<I&
>(*this);
93 I
res = *(
static_cast<I*
>(
this));
101 return static_cast<I&
>(*this);
106 I
res = *(
const_cast<I*
>(
static_cast<const I*
>(
this)));
113 return static_cast<I&
>(*this);
118 I
res = *(
const_cast<I*
>(
static_cast<const I*
>(
this)));
223 return uint16_t(
id & 0x1 ?
mData[
id / 2].triggers :
mData[
id / 2].triggers >> 16);
358 const gsl::span<const o2::zdc::BCData> mTrigData;
359 const gsl::span<const o2::zdc::ChannelData> mChanData;
360 const gsl::span<const o2::zdc::OrbitData> mEOData;
Class for time synchronization of RawReader instances.
value_type operator*() const
value_type operator[](difference_type i) const
value_type operator*() const
value_type operator[](difference_type i) const
value_type operator*() const
value_type operator[](difference_type i) const
value_type operator[](difference_type i) const
value_type operator*() const
value_type operator*() const
value_type operator[](difference_type i) const
value_type operator[](difference_type i) const
value_type operator*() const
value_type operator*() const
value_type operator[](difference_type i) const
value_type operator*() const
value_type operator[](difference_type i) const
value_type operator*() const
value_type operator[](difference_type i) const
value_type operator[](difference_type i) const
value_type operator*() const
value_type operator[](difference_type i) const
value_type operator*() const
value_type operator[](difference_type i) const
value_type operator*() const
friend I operator+(difference_type i, const I &iter)
bool operator>=(const I &other) const noexcept
bool operator<(const I &other) const noexcept
difference_type operator-(const I &other) const noexcept
bool operator>(const I &other) const noexcept
I operator-(difference_type i) const
I & operator+=(difference_type i) noexcept
bool operator!=(const I &other) const noexcept
I & operator++() noexcept
_Iter(const gsl::span< const D > &data, bool end=false)
bool operator==(const I &other) const noexcept
bool operator<=(const I &other) const noexcept
std::random_access_iterator_tag iterator_category
I & operator--() noexcept
gsl::span< const D > mData
I & operator-=(difference_type i) noexcept
std::ptrdiff_t difference_type
I operator+(difference_type i) const
Iter_sclInc end_sclInc() const
Iter_extTriggers end_extTriggers() const
Iter_bcIncTrig end_bcIncTrig() const
Iter_triggersHL end_triggersHL() const
Iter_chanID begin_chanID() const
CTFHelper(const gsl::span< const BCData > &trgData, const gsl::span< const ChannelData > &chanData, const gsl::span< const OrbitData > &pedData)
Iter_moduleTrig begin_moduleTrig() const
Iter_bcIncTrig begin_bcIncTrig() const
Iter_pedData end_pedData() const
Iter_orbitIncEOD end_orbitIncEOD() const
Iter_moduleTrig end_moduleTrig() const
Iter_channelsHL end_channelsHL() const
Iter_orbitIncTrig begin_orbitIncTrig() const
Iter_orbitIncTrig end_orbitIncTrig() const
Iter_triggersHL begin_triggersHL() const
Iter_nchanTrig begin_nchanTrig() const
Iter_sclInc begin_sclInc() const
Iter_chanData end_chanData() const
Iter_orbitIncEOD begin_orbitIncEOD() const
Iter_pedData begin_pedData() const
Iter_channelsHL begin_channelsHL() const
Iter_chanID end_chanID() const
Iter_extTriggers begin_extTriggers() const
Iter_chanData begin_chanData() const
Iter_nchanTrig end_nchanTrig() const
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
constexpr int NTimeBinsPerBC
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
uint16_t bc
bunch crossing ID of interaction
VectorOfTObjectPtrs other
o2::InteractionRecord ir(0, 0)
std::vector< ChannelData > channels