15#ifndef ALICEO2_IOTOF_CLUSTERER_H
16#define ALICEO2_IOTOF_CLUSTERER_H
75 gsl::span<const uint32_t> digitIdxs,
76 int maxTimeDiffNSigma,
77 float timeResolution);
79 std::vector<Cluster>* clustersOut, std::vector<unsigned char>* patternsOut,
90 gsl::span<const DigROFRecord> digitROFs,
91 std::vector<o2::iotof::Cluster>&
clusters,
92 std::vector<unsigned char>& patterns,
93 std::vector<o2::itsmft::ROFRecord>& clusterROFs,
96 gsl::span<const DigMC2ROFRecord> digMC2ROFs = {},
97 std::vector<o2::itsmft::MC2ROFRecord>* clusterMC2ROFs =
nullptr);
A const (ready only) version of MCTruthContainer.
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error First event to process
Header to collect LHC related constants.
Definition of a container to keep Monte Carlo truth external to simulation objects.
Definition of the TopologyClassifier class.
Definition of the IOTOF clusterer settings.
static constexpr int MaxLabels
std::vector< int > mSortIdx
reusable per-ROF sort buffer
std::unique_ptr< ClustererThread > mThread
ClustererThread & operator=(const ClustererThread &)=delete
std::array< Label, MaxLabels > mLabelsBuff
MC label buffer for one cluster.
TopologyClassifier mClsTopoClassifier
void processChip(gsl::span< const Digit > digits, int chipFirst, int chipN, std::vector< Cluster > *clustersOut, std::vector< unsigned char > *patternsOut, const ConstDigitTruth *labelsDigPtr, ClusterTruth *labelsClusPtr)
std::vector< std::vector< uint32_t > > buildPreclusters(gsl::span< const Digit > digits, gsl::span< const uint32_t > digitIdxs, int maxTimeDiffNSigma, float timeResolution)
std::vector< Cluster > mClusters
void writeTopologiesToFile(const char *filename)
void findClustersMultipleHits(gsl::span< const Digit > digits, gsl::span< const uint32_t > digitIdxs, const ConstDigitTruth *labelsDigPtr, ClusterTruth *labelsClusPtr)
std::vector< uint16_t > mPatterns
void fetchMCLabels(uint32_t digID, const ConstDigitTruth *labelsDig, int &nFilled)
Convert the cluster topology to the corresponding entry in the dictionary.
void findClustersSingleHit(gsl::span< const Digit > digits, uint32_t digitIdx, const ConstDigitTruth *labelsDigPtr, ClusterTruth *labelsClusPtr)
ClustererThread(Clusterer *par=nullptr)
ClustererThread(const ClustererThread &)=delete
std::vector< Cluster > clusters
std::vector< Digit > digits