16#ifndef TRACKINGITSU_INCLUDE_EVENTLOADER_H_
17#define TRACKINGITSU_INCLUDE_EVENTLOADER_H_
21#include <unordered_map>
65 gsl::span<const unsigned char>::iterator& pattIt,
75std::vector<std::unordered_map<int, Label>>
loadLabels(
const int,
const std::string&);
77 const std::unordered_map<int, Label>&);
79template <
class iterator,
typename T>
82 auto pattID =
c.getPatternID();
101template <
class iterator,
typename T>
104 auto pattID =
c.getPatternID();
Definition of the ITSMFT compact cluster.
Definition of the SegmentationAlpide class.
static constexpr unsigned short InvalidPatternID
static constexpr float PitchCol
static constexpr float PitchRow
std::array< T, 3 > getClusterCoordinatesA(const CompCluster &cl) const
Returns the local position of a compact cluster.
math_utils::Point3D< T > getClusterCoordinates(const CompCluster &cl) const
float getErr2X(int n) const
Returns the error^2 on the x position of the COG for the n_th element.
bool isGroup(int n) const
Returns true if the element corresponds to a group of rare topologies.
float getErr2Z(int n) const
Returns the error^2 on the z position of the COG for the n_th element.
std::array< T, 3 > extractClusterDataA(const itsmft::CompClusterExt &c, iterator &iter, const itsmft::TopologyDictionary *dict, T &sig2y, T &sig2z)
void convertCompactClusters(gsl::span< const itsmft::CompClusterExt > clusters, gsl::span< const unsigned char >::iterator &pattIt, std::vector< o2::BaseCluster< float > > &output, const itsmft::TopologyDictionary *dict)
convert compact clusters to 3D spacepoints
void writeRoadsReport(std::ofstream &, std::ofstream &, std::ofstream &, const std::vector< std::vector< Road< 5 > > > &, const std::unordered_map< int, Label > &)
o2::math_utils::Point3D< T > extractClusterData(const itsmft::CompClusterExt &c, iterator &iter, const itsmft::TopologyDictionary *dict, T &sig2y, T &sig2z)
constexpr float DefClusErrorCol
void loadEventData(ROframe &events, gsl::span< const itsmft::CompClusterExt > clusters, gsl::span< const unsigned char >::iterator &pattIt, const itsmft::TopologyDictionary *dict, const dataformats::MCTruthContainer< MCCompLabel > *clsLabels=nullptr)
constexpr float DefClusErrorRow
constexpr float DefClusError2Col
constexpr float DefClusError2Row
int loadROFrameData(const o2::itsmft::ROFRecord &rof, ROframe &events, gsl::span< const itsmft::CompClusterExt > clusters, gsl::span< const unsigned char >::iterator &pattIt, const itsmft::TopologyDictionary *dict, const dataformats::MCTruthContainer< MCCompLabel > *mClsLabels=nullptr)
std::vector< std::unordered_map< int, Label > > loadLabels(const int, const std::string &)
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
std::vector< Cluster > clusters