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
+23-3Lines changed: 23 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ using namespace o2::framework::expressions;
77
77
usingnamespaceo2::emccrosstalk;
78
78
usingnamespacetmemcutilities;
79
79
using MyGlobTracks = o2::soa::Join<o2::aod::FullTracks, o2::aod::TrackSelection>;
80
-
using BcEvSels = o2::soa::Join<o2::aod::BCs, o2::aod::BcSels>;
80
+
using BcEvSels = soa::Join<aod::BCs, aod::Timestamps, aod::BcSels>;
81
81
using CollEventSels = o2::soa::Join<o2::aod::Collisions, o2::aod::EvSels>;
82
82
using FilteredCells = o2::soa::Filtered<aod::Calos>;
83
83
using McCells = o2::soa::Join<aod::Calos, aod::McCaloLabels_001>;
@@ -497,6 +497,11 @@ struct EmcalCorrectionTask {
497
497
498
498
// Loop through all collisions and fill emcalcollisionmatch with a boolean stating, whether the collision was ambiguous (not the only collision in its BC)
499
499
for (constauto& collision : collisions) {
500
+
if (applySoftwareTriggerSelection) {
501
+
if (!zorro.isSelected(collision.foundBC_as<BcEvSels>().globalBC())) {
502
+
continue;
503
+
}
504
+
}
500
505
auto globalbcid = collision.foundBC_as<BcEvSels>().globalIndex();
501
506
auto foundColls = numberCollsInBC.find(globalbcid);
502
507
auto foundCells = numberCellsInBC.find(globalbcid);
@@ -637,6 +642,11 @@ struct EmcalCorrectionTask {
637
642
638
643
// Loop through all collisions and fill emcalcollisionmatch with a boolean stating, whether the collision was ambiguous (not the only collision in its BC)
639
644
for (constauto& collision : collisions) {
645
+
if (applySoftwareTriggerSelection) {
646
+
if (!zorro.isSelected(collision.foundBC_as<BcEvSels>().globalBC())) {
647
+
continue;
648
+
}
649
+
}
640
650
auto globalbcid = collision.foundBC_as<BcEvSels>().globalIndex();
641
651
auto foundColls = numberCollsInBC.find(globalbcid);
642
652
auto foundCells = numberCellsInBC.find(globalbcid);
@@ -805,6 +815,11 @@ struct EmcalCorrectionTask {
805
815
806
816
// Loop through all collisions and fill emcalcollisionmatch with a boolean stating, whether the collision was ambiguous (not the only collision in its BC)
807
817
for (constauto& collision : collisions) {
818
+
if (applySoftwareTriggerSelection) {
819
+
if (!zorro.isSelected(collision.foundBC_as<BcEvSels>().globalBC())) {
820
+
continue;
821
+
}
822
+
}
808
823
auto globalbcid = collision.foundBC_as<BcEvSels>().globalIndex();
809
824
auto foundColls = numberCollsInBC.find(globalbcid);
810
825
auto foundCells = numberCellsInBC.find(globalbcid);
@@ -977,6 +992,11 @@ struct EmcalCorrectionTask {
977
992
978
993
// Loop through all collisions and fill emcalcollisionmatch with a boolean stating, whether the collision was ambiguous (not the only collision in its BC)
979
994
for (constauto& collision : collisions) {
995
+
if (applySoftwareTriggerSelection) {
996
+
if (!zorro.isSelected(collision.foundBC_as<BcEvSels>().globalBC())) {
997
+
continue;
998
+
}
999
+
}
980
1000
auto globalbcid = collision.foundBC_as<BcEvSels>().globalIndex();
981
1001
auto foundColls = numberCollsInBC.find(globalbcid);
982
1002
auto foundCells = numberCellsInBC.find(globalbcid);
@@ -991,7 +1011,7 @@ struct EmcalCorrectionTask {
991
1011
}
992
1012
PROCESS_SWITCH(EmcalCorrectionTask, processMCWithSecondaries, "run full analysis with MC info", false);
int previousCollisionId = 0; // Collision ID of the last unique BC. Needed to skip unordered collisions to ensure ordered collisionIds in the cluster table
0 commit comments