27 auto dataROFIt = rofRecordsData.begin();
28 for (
auto pcROFIt = rofRecordsPC.begin(); pcROFIt != rofRecordsPC.end(); ++pcROFIt) {
29 for (
size_t ipc = pcROFIt->firstEntry; ipc < pcROFIt->firstEntry + pcROFIt->nEntries; ++ipc) {
30 for (
size_t idata = dataROFIt->firstEntry; idata < dataROFIt->firstEntry + dataROFIt->nEntries; ++idata) {
31 auto labels = inMCContainer.
getLabels(idata);
32 for (
auto&
label : labels) {
39 int columnId =
label.getColumnId();
45 if ((columnId ==
preClusters[ipc].firstColumn &&
label.getLastStrip() < firstStrip) || (columnId ==
preClusters[ipc].lastColumn &&
label.getFirstStrip() > lastStrip)) {
57bool PreClusterLabeler::isDuplicated(
size_t idx,
const MCLabel&
label)
const
60 if (idx >= mMCContainer.getIndexedSize()) {
64 for (
auto& lb : mMCContainer.getLabels(idx)) {
65 if (
label.compare(lb) == 1) {
73bool PreClusterLabeler::addLabel(
size_t idx,
const MCLabel&
label)
76 if (isDuplicated(idx,
label)) {
80 mMCContainer.addElement(idx, lb);
PreClusterLabeler for MID.
static int getStrip(int strip, int line)
Gets the strip.
void process(gsl::span< const PreCluster > preClusters, const o2::dataformats::MCTruthContainer< MCLabel > &inMCContainer, gsl::span< const ROFRecord > rofRecordsPC, gsl::span< const ROFRecord > rofRecordsData)
GLuint GLsizei const GLchar * label
gsl::span< const PreCluster > preClusters(preClusterizer.getPreClusters().data(), preClusterizer.getPreClusters().size())
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...