440{
441 int it_1 = 0, it_2 = 0;
442
443 std::vector<std::pair<int, float>> cluster_weights_1, cluster_weights_2;
444 int this_index_1 = -1;
445 int this_index_2 = -1;
446
448 {
450 {
452 }
453 else
454 {
455 this_index_1 = -1;
456 }
457
459 {
461 }
462 else
463 {
464 this_index_2 = -1;
465 }
466
467 if (cluster_weights_1.size() == 0)
468 {
470 {
472 ++it_1;
473 }
474 }
475
476 if (cluster_weights_2.size() == 0)
477 {
479 {
481 ++it_2;
482 }
483 }
484
485 if (this_index_1 == this_index_2 and this_index_1 >= 0)
486 {
487 match(this_index_1, cluster_weights_1, cluster_weights_2);
488 cluster_weights_1.clear();
489 cluster_weights_2.clear();
490 }
491 else if ((this_index_1 > this_index_2) and this_index_2 >= 0)
492 {
493 not_match(true, this_index_2, cluster_weights_2);
494 cluster_weights_2.clear();
495 }
496 else if ((this_index_2 > this_index_1) and this_index_1 >= 0 )
497 {
498 not_match(false, this_index_1, cluster_weights_1);
499 cluster_weights_1.clear();
500 }
501 else
502 {
503 cluster_weights_1.clear();
504 cluster_weights_2.clear();
505 }
506 }
507}
bool match(std::string s1, std::string s2)
match the individual directories of two strings
int clusterIndices[2 *NCaloCells]
int indices[2 *NCaloCells]
float cellWeights[2 *NCaloCells]
union CaloRecGPU::ClusterInfoArr::@223264020040143137243361055037275307306030322160 cells