Skip to content

Commit 3447a9b

Browse files
authored
Set the cut to reject events with nearby events for ITS-TPC m.e. study (#6949)
* Set cut to reject nearby events for ITS-TPC m.e. * Fixed the issue with the data type * Default type for occupancy should be int
1 parent dab4db2 commit 3447a9b

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

DPG/Tasks/AOTTrack/qaMatchEff.cxx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,15 @@ struct qaMatchEff {
8787
Configurable<bool> isPbPb{"isPbPb", false, "Boolean to tag if the data is PbPb collisions. If false, it is pp"};
8888
Configurable<bool> isEnableEventSelection{"isEnableEventSelection", true, "Boolean to switch the event selection on/off."};
8989
Configurable<bool> isCentralityRequired{"isCentralityRequired", false, "Boolean to switch the centrality selection on/off."};
90+
Configurable<bool> isRejectNearByEvent{"isRejectNearByEvent", false, "Boolean to switch the rejection of near by events on/off."};
9091
Configurable<bool> isEnableOccupancyCut{"isEnableOccupancyCut", false, "Boolean to switch the occupancy cut on/off."};
9192
struct : ConfigurableGroup {
9293
Configurable<float> centralityMinCut{"centralityMinCut", 0.0f, "Minimum centrality"};
9394
Configurable<float> centralityMaxCut{"centralityMaxCut", 100.0f, "Maximum centrality"};
9495
} centralityCuts;
9596
struct : ConfigurableGroup {
9697
Configurable<int> minTracksInTimeRange{"minTracksInTimeRange", 0, "Minimum number of tracks in the time range"};
97-
Configurable<int> maxTracksInTimeRange{"maxTracksInTimeRange", 1000, "Maximum number of tracks in the time range"};
98+
Configurable<int> maxTracksInTimeRange{"maxTracksInTimeRange", 999999, "Maximum number of tracks in the time range"};
9899
} occupancyCuts;
99100
//
100101
// Track selections
@@ -3363,6 +3364,13 @@ struct qaMatchEff {
33633364
return;
33643365
}
33653366
}
3367+
if (isRejectNearByEvent) {
3368+
if (!collision.selection_bit(o2::aod::evsel::kNoCollInTimeRangeStandard)) {
3369+
if (doDebug)
3370+
LOGF(info, "Nearby event found, skipping...");
3371+
return;
3372+
}
3373+
}
33663374
if (isEnableOccupancyCut) {
33673375
if (occupancy < occupancyCuts.minTracksInTimeRange || occupancy > occupancyCuts.maxTracksInTimeRange) {
33683376
if (doDebug)

0 commit comments

Comments
 (0)