Skip to content

Commit 3b97758

Browse files
committed
[PWGJE] adding EMCal event selection for charged jets
1 parent 75bfed1 commit 3b97758

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

PWGJE/JetFinders/jetFinder.cxx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ struct JetFinderTask {
6565
Configurable<float> clusterTimeMin{"clusterTimeMin", -25., "minimum Cluster time (ns)"};
6666
Configurable<float> clusterTimeMax{"clusterTimeMax", 25., "maximum Cluster time (ns)"};
6767
Configurable<bool> clusterRejectExotics{"clusterRejectExotics", true, "Reject exotic clusters"};
68-
Configurable<bool> doEMCALEventSelection{"doEMCALEventSelection", true, "apply the selection to the event alias_bit"};
68+
Configurable<bool> doEMCALEventSelection{"doEMCALEventSelection", true, "apply the selection to the event alias_bit for full and neutral jets"};
69+
Configurable<bool> doEMCALEventSelectionChargedJets{"doEMCALEventSelectionChargedJets", false, "apply the selection to the event alias_bit for charged jets"};
6970

7071
// jet level configurables
7172
Configurable<std::vector<double>> jetRadius{"jetRadius", {0.4}, "jet resolution parameters"};
@@ -150,6 +151,9 @@ struct JetFinderTask {
150151
void processChargedJets(soa::Filtered<aod::JetCollisions>::iterator const& collision,
151152
soa::Filtered<aod::JetTracks> const& tracks)
152153
{
154+
if (doEMCALEventSelectionChargedJets && !jetderiveddatautilities::eventEMCAL(collision)) {
155+
return;
156+
}
153157
if (!jetderiveddatautilities::selectCollision(collision, eventSelection) || !jetderiveddatautilities::selectTrigger(collision, triggerMaskBits)) {
154158
return;
155159
}
@@ -163,6 +167,9 @@ struct JetFinderTask {
163167
void processChargedEvtWiseSubJets(soa::Filtered<aod::JetCollisions>::iterator const& collision,
164168
soa::Filtered<aod::JetTracksSub> const& tracks)
165169
{
170+
if (doEMCALEventSelectionChargedJets && !jetderiveddatautilities::eventEMCAL(collision)) {
171+
return;
172+
}
166173
if (!jetderiveddatautilities::selectCollision(collision, eventSelection) || !jetderiveddatautilities::selectTrigger(collision, triggerMaskBits)) {
167174
return;
168175
}

0 commit comments

Comments
 (0)