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: DPG/Tasks/AOTTrack/qaImpPar.cxx
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -116,6 +116,7 @@ struct QaImpactPar {
116
116
Configurable<int> nCustomMinITShits{"n_customMinITShits", 0, "Minimum number of layers crossed by a track among those in \"customITShitmap\""};
117
117
Configurable<bool> customForceITSTPCmatching{"custom_forceITSTPCmatching", false, "Consider or not only ITS-TPC macthed tracks when using custom ITS hitmap"};
118
118
Configurable<float> downsamplingFraction{"downsamplingFraction", 1.1, "Fraction of tracks to be used to fill the output objects"};
119
+
Configurable<int> eventGeneratorHF{"eventGeneratorHF", -1, "If positive, enable event selection using subGeneratorId information (HF). The value indicates which events to keep (0 = MB, 4 = charm triggered, 5 = beauty triggered)"};
119
120
120
121
/// Custom cut selection objects
121
122
TrackSelection selector_ITShitmap;
@@ -201,6 +202,12 @@ struct QaImpactPar {
201
202
const o2::aod::McCollisions&,
202
203
o2::aod::BCsWithTimestamps const&)
203
204
{
205
+
/// SubgeneratorID check for HF MC
206
+
/// Useful to select MB gap events in HF-dedicated MC productions
207
+
if (eventGeneratorHF >= 0 && collision.mcCollision().getSubGeneratorId() != eventGeneratorHF) {
208
+
return;
209
+
}
210
+
204
211
/// here call the template processReco function
205
212
auto bc = collision.bc_as<o2::aod::BCsWithTimestamps>();
0 commit comments