You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PWGJE/TableProducer/emcalCorrectionTask.cxx
+33-44Lines changed: 33 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -410,12 +410,6 @@ struct EmcalCorrectionTask {
410
410
411
411
initZorroCCDB(bc);
412
412
413
-
if (applySoftwareTriggerSelection) {
414
-
if (!zorro.isSelected(bc.globalBC())) {
415
-
continue;
416
-
}
417
-
}
418
-
419
413
// get run number
420
414
runNumber = bc.runNumber();
421
415
@@ -441,6 +435,14 @@ struct EmcalCorrectionTask {
441
435
}
442
436
// Counters for BCs with matched collisions
443
437
countBC(collisionsInFoundBC.size(), true);
438
+
439
+
// do not do the next part if we do not fulfill the software trigger selection
440
+
if (applySoftwareTriggerSelection) {
441
+
if (!zorro.isSelected(bc.globalBC())) {
442
+
continue;
443
+
}
444
+
}
445
+
444
446
std::vector<o2::emcal::Cell> cellsBC;
445
447
std::vector<int64_t> cellIndicesBC;
446
448
for (constauto& cell : cellsInBC) {
@@ -525,12 +527,8 @@ struct EmcalCorrectionTask {
525
527
} // end of bc loop
526
528
527
529
// Loop through all collisions and fill emcalcollisionmatch with a boolean stating, whether the collision was ambiguous (not the only collision in its BC)
530
+
// NOTE: we can not do zorro selection here since emcalcollisionmatch needs to alway be filled to be joinable with collision table
528
531
for (constauto& collision : collisions) {
529
-
if (applySoftwareTriggerSelection) {
530
-
if (!zorro.isSelected(collision.foundBC_as<BcEvSels>().globalBC())) {
531
-
continue;
532
-
}
533
-
}
534
532
auto globalbcid = collision.foundBC_as<BcEvSels>().globalIndex();
535
533
auto foundColls = numberCollsInBC.find(globalbcid);
536
534
auto foundCells = numberCellsInBC.find(globalbcid);
@@ -559,12 +557,6 @@ struct EmcalCorrectionTask {
559
557
560
558
initZorroCCDB(bc);
561
559
562
-
if (applySoftwareTriggerSelection) {
563
-
if (!zorro.isSelected(bc.globalBC())) {
564
-
continue;
565
-
}
566
-
}
567
-
568
560
// get run number
569
561
runNumber = bc.runNumber();
570
562
@@ -590,6 +582,14 @@ struct EmcalCorrectionTask {
590
582
}
591
583
// Counters for BCs with matched collisions
592
584
countBC(collisionsInFoundBC.size(), true);
585
+
586
+
// do not do the next part if we do not fulfill the software trigger selection
587
+
if (applySoftwareTriggerSelection) {
588
+
if (!zorro.isSelected(bc.globalBC())) {
589
+
continue;
590
+
}
591
+
}
592
+
593
593
std::vector<o2::emcal::Cell> cellsBC;
594
594
std::vector<int64_t> cellIndicesBC;
595
595
for (constauto& cell : cellsInBC) {
@@ -678,12 +678,8 @@ struct EmcalCorrectionTask {
678
678
} // end of bc loop
679
679
680
680
// Loop through all collisions and fill emcalcollisionmatch with a boolean stating, whether the collision was ambiguous (not the only collision in its BC)
681
+
// NOTE: we can not do zorro selection here since emcalcollisionmatch needs to alway be filled to be joinable with collision table
681
682
for (constauto& collision : collisions) {
682
-
if (applySoftwareTriggerSelection) {
683
-
if (!zorro.isSelected(collision.foundBC_as<BcEvSels>().globalBC())) {
684
-
continue;
685
-
}
686
-
}
687
683
auto globalbcid = collision.foundBC_as<BcEvSels>().globalIndex();
688
684
auto foundColls = numberCollsInBC.find(globalbcid);
689
685
auto foundCells = numberCellsInBC.find(globalbcid);
@@ -714,12 +710,6 @@ struct EmcalCorrectionTask {
714
710
715
711
initZorroCCDB(bc);
716
712
717
-
if (applySoftwareTriggerSelection) {
718
-
if (!zorro.isSelected(bc.globalBC())) {
719
-
continue;
720
-
}
721
-
}
722
-
723
713
// get run number
724
714
runNumber = bc.runNumber();
725
715
@@ -737,6 +727,14 @@ struct EmcalCorrectionTask {
737
727
}
738
728
// Counters for BCs with matched collisions
739
729
countBC(collisionsInFoundBC.size(), true);
730
+
731
+
// do not do the next part if we do not fulfill the software trigger selection
732
+
if (applySoftwareTriggerSelection) {
733
+
if (!zorro.isSelected(bc.globalBC())) {
734
+
continue;
735
+
}
736
+
}
737
+
740
738
std::vector<o2::emcal::Cell> cellsBC;
741
739
std::vector<int64_t> cellIndicesBC;
742
740
std::vector<o2::emcal::CellLabel> cellLabels;
@@ -860,11 +858,6 @@ struct EmcalCorrectionTask {
860
858
861
859
// Loop through all collisions and fill emcalcollisionmatch with a boolean stating, whether the collision was ambiguous (not the only collision in its BC)
862
860
for (constauto& collision : collisions) {
863
-
if (applySoftwareTriggerSelection) {
864
-
if (!zorro.isSelected(collision.foundBC_as<BcEvSels>().globalBC())) {
865
-
continue;
866
-
}
867
-
}
868
861
auto globalbcid = collision.foundBC_as<BcEvSels>().globalIndex();
869
862
auto foundColls = numberCollsInBC.find(globalbcid);
870
863
auto foundCells = numberCellsInBC.find(globalbcid);
// Loop through all collisions and fill emcalcollisionmatch with a boolean stating, whether the collision was ambiguous (not the only collision in its BC)
1047
1041
for (constauto& collision : collisions) {
1048
-
if (applySoftwareTriggerSelection) {
1049
-
if (!zorro.isSelected(collision.foundBC_as<BcEvSels>().globalBC())) {
1050
-
continue;
1051
-
}
1052
-
}
1053
1042
auto globalbcid = collision.foundBC_as<BcEvSels>().globalIndex();
1054
1043
auto foundColls = numberCollsInBC.find(globalbcid);
1055
1044
auto foundCells = numberCellsInBC.find(globalbcid);
0 commit comments