Skip to content

Commit fa9d24e

Browse files
authored
[PWGLF,Trigger] new event selection criteria (#11696)
1 parent 490435d commit fa9d24e

File tree

1 file changed

+27
-12
lines changed

1 file changed

+27
-12
lines changed

EventFiltering/PWGMM/multFilter.cxx

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,23 @@
88
// In applying this license CERN does not waive the privileges and immunities
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
11-
#include <cmath>
12-
#include <string>
13-
14-
#include "Framework/runDataProcessing.h"
15-
#include "Framework/AnalysisTask.h"
16-
#include "Framework/AnalysisDataModel.h"
17-
#include "Framework/HistogramRegistry.h"
18-
#include "Framework/StaticFor.h"
19-
11+
#include "Common/Core/TrackSelection.h"
12+
#include "Common/DataModel/EventSelection.h"
13+
#include "Common/DataModel/TrackSelectionTables.h"
2014
#include "EventFiltering/filterTables.h"
2115

2216
#include "CCDB/BasicCCDBManager.h"
2317
#include "CCDB/CcdbApi.h"
2418
#include "DataFormatsFT0/Digit.h"
19+
#include "Framework/AnalysisDataModel.h"
20+
#include "Framework/AnalysisTask.h"
21+
#include "Framework/HistogramRegistry.h"
22+
#include "Framework/StaticFor.h"
23+
#include "Framework/runDataProcessing.h"
2524
#include "ReconstructionDataFormats/Track.h"
26-
#include "Common/DataModel/EventSelection.h"
27-
#include "Common/DataModel/TrackSelectionTables.h"
28-
#include "Common/Core/TrackSelection.h"
25+
26+
#include <cmath>
27+
#include <string>
2928

3029
using namespace o2;
3130
using namespace o2::framework;
@@ -58,6 +57,9 @@ struct multFilter {
5857
Configurable<bool> sel8{"sel8", 1, "apply sel8 event selection"};
5958
Configurable<bool> selt0time{"selt0time", 0, "apply 1ns cut T0A and T0C"};
6059
Configurable<bool> selt0vtx{"selt0vtx", 0, "apply T0 vertext trigger"};
60+
Configurable<bool> isTimeFrameBorderCut{"isTimeFrameBorderCut", 1, "apply timeframe border cut"};
61+
Configurable<bool> isSameBunchPileup{"isSameBunchPileup", 1, "apply same bunch pileup cut"};
62+
Configurable<bool> isGoodZvtxFT0vsPV{"isGoodZvtxFT0vsPV", 1, "apply good vtx FT0vsPV cut"};
6163

6264
Configurable<float> avPyT0A{"avPyT0A", 8.16, "nch from pythia T0A"};
6365
Configurable<float> avPyT0C{"avPyT0C", 8.83, "nch from pythia T0C"};
@@ -358,6 +360,19 @@ struct multFilter {
358360
return;
359361
}
360362

363+
if (isTimeFrameBorderCut && !collision.selection_bit(o2::aod::evsel::kNoTimeFrameBorder)) {
364+
tags(false, false, false, false, false, false, false);
365+
return;
366+
}
367+
if (isSameBunchPileup && !collision.selection_bit(o2::aod::evsel::kNoSameBunchPileup)) {
368+
tags(false, false, false, false, false, false, false);
369+
return;
370+
}
371+
if (isGoodZvtxFT0vsPV && !collision.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV)) {
372+
tags(false, false, false, false, false, false, false);
373+
return;
374+
}
375+
361376
multiplicity.fill(HIST("hMultFV0sel"), sumAmpFV0);
362377
multiplicity.fill(HIST("hMultFV01to4Ringsel"), sumAmpFV01to4Ring);
363378
multiplicity.fill(HIST("hMultFV05Ringsel"), sumAmpFV05Ring);

0 commit comments

Comments
 (0)