15#ifndef ALICEO2_TPC_HARDWARECLUSTERDECODER_H_
16#define ALICEO2_TPC_HARDWARECLUSTERDECODER_H_
28class ClusterHardwareContainer;
32template <
typename TruthElement>
34template <
typename TruthElement>
80 int decodeClusters(std::vector<std::pair<const o2::tpc::ClusterHardwareContainer*, std::size_t>>& inputClusters,
92 std::unique_ptr<DigitalCurrentClusterIntegrator> mIntegrator;
Helper class to read the binary format of TPC ClusterNative.
Class of a TPC cluster in TPC-native coordinates (row, time)
Decoder to convert TPC ClusterHardware to ClusterNative.
Class to convert a list of input buffers containing TPC clusters of type ClusterHardware to type Clus...
~HardwareClusterDecoder()=default
static void sortClustersAndMC(ClusterNative *clusters, size_t nClusters, o2::dataformats::MCTruthContainer< o2::MCCompLabel > &mcTruth)
Sort clusters and MC labels in place ClusterNative defines the smaller-than relation used in the sort...
HardwareClusterDecoder()=default
std::function< char *(size_t)> OutputAllocator
Allocator function object to provide the output buffer.
int decodeClusters(std::vector< std::pair< const o2::tpc::ClusterHardwareContainer *, std::size_t > > &inputClusters, OutputAllocator outputAllocator, const std::vector< o2::dataformats::ConstMCTruthContainerView< o2::MCCompLabel > > *inMCLabels=nullptr, o2::dataformats::MCTruthContainer< o2::MCCompLabel > *outMCLabels=nullptr)
Decode clusters provided in raw pages The function uses an allocator object to request a raw char buf...
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::vector< Cluster > clusters