Skip to content

Commit 6b41d73

Browse files
authored
add kIsGoodITSLayer0123 flag
1 parent 4ac64ac commit 6b41d73

1 file changed

Lines changed: 28 additions & 40 deletions

File tree

PWGCF/Flow/Tasks/flowMc.cxx

Lines changed: 28 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -14,51 +14,34 @@
1414
/// \since Feb/5/2025
1515
/// \brief QC of synthetic flow exercise
1616

17-
#include "PWGCF/GenericFramework/Core/FlowContainer.h"
18-
#include "PWGCF/GenericFramework/Core/GFW.h"
19-
#include "PWGCF/GenericFramework/Core/GFWWeights.h"
20-
#include "PWGMM/Mult/DataModel/Index.h" // for Particles2Tracks table
21-
22-
#include "Common/CCDB/EventSelectionParams.h"
17+
#include <CCDB/BasicCCDBManager.h>
18+
#include <vector>
19+
#include <string>
20+
#include "Framework/AnalysisDataModel.h"
21+
#include "Framework/AnalysisTask.h"
22+
#include "Framework/HistogramRegistry.h"
23+
#include "Framework/runDataProcessing.h"
24+
#include "Framework/ASoAHelpers.h"
25+
#include "Framework/RunningWorkflowInfo.h"
26+
#include "Common/DataModel/TrackSelectionTables.h"
2327
#include "Common/Core/RecoDecay.h"
2428
#include "Common/Core/TrackSelection.h"
2529
#include "Common/Core/TrackSelectionDefaults.h"
26-
#include "Common/DataModel/EventSelection.h"
27-
#include "Common/DataModel/TrackSelectionTables.h"
28-
29-
#include <CCDB/BasicCCDBManager.h>
30-
#include <CommonConstants/MathConstants.h>
31-
#include <Framework/AnalysisDataModel.h>
32-
#include <Framework/AnalysisHelpers.h>
33-
#include <Framework/AnalysisTask.h>
34-
#include <Framework/Configurable.h>
35-
#include <Framework/HistogramRegistry.h>
36-
#include <Framework/HistogramSpec.h>
37-
#include <Framework/InitContext.h>
38-
#include <Framework/OutputObjHeader.h>
39-
#include <Framework/runDataProcessing.h>
40-
41-
#include <TF1.h>
42-
#include <TH1.h>
43-
#include <TH2.h>
44-
#include <TH3.h>
45-
#include <TNamed.h>
46-
#include <TObjArray.h>
47-
#include <TPDGCode.h>
30+
#include "Common/Core/trackUtilities.h"
31+
#include "ReconstructionDataFormats/Track.h"
32+
#include "DataFormatsParameters/GRPObject.h"
33+
#include "DataFormatsParameters/GRPMagField.h"
34+
#include "PWGLF/DataModel/LFStrangenessTables.h"
35+
#include "PWGMM/Mult/DataModel/Index.h" // for Particles2Tracks table
36+
#include "GFWPowerArray.h"
37+
#include "GFW.h"
38+
#include "GFWCumulant.h"
39+
#include "GFWWeights.h"
40+
#include "FlowContainer.h"
4841
#include <TProfile.h>
4942
#include <TRandom3.h>
50-
#include <TString.h>
51-
52-
#include <sys/types.h>
53-
54-
#include <RtypesCore.h>
55-
56-
#include <chrono>
57-
#include <cmath>
58-
#include <cstdint>
59-
#include <cstdlib>
60-
#include <string>
61-
#include <vector>
43+
#include <TPDGCode.h>
44+
#include <TF1.h>
6245

6346
using namespace o2;
6447
using namespace o2::framework;
@@ -103,6 +86,7 @@ struct FlowMc {
10386
O2_DEFINE_CONFIGURABLE(cfgRecoEvRejectMC, bool, false, "reject both MC and Reco events when reco do not pass")
10487
O2_DEFINE_CONFIGURABLE(cfgRecoEvSel8, bool, false, "require sel8 for reconstruction events")
10588
O2_DEFINE_CONFIGURABLE(cfgRecoEvkIsGoodITSLayersAll, bool, false, "require kIsGoodITSLayersAll for reconstruction events")
89+
O2_DEFINE_CONFIGURABLE(cfgRecoEvkIsGoodITSLayer0123, bool, false, "require kIsGoodITSLayer0123 for reconstruction events")
10690
O2_DEFINE_CONFIGURABLE(cfgRecoEvkNoSameBunchPileup, bool, false, "require kNoSameBunchPileup for reconstruction events")
10791
O2_DEFINE_CONFIGURABLE(cfgRecoEvSelkIsGoodZvtxFT0vsPV, bool, false, "removes collisions with large differences between z of PV by tracks and z of PV from FT0 A-C time difference, use this cut at low multiplicities with caution")
10892
O2_DEFINE_CONFIGURABLE(cfgRecoEvSelkNoITSROFrameBorder, bool, false, "reject events at ITS ROF border")
@@ -431,6 +415,10 @@ struct FlowMc {
431415
// cut time intervals with dead ITS staves
432416
return 0;
433417
}
418+
if (cfgRecoEvkIsGoodITSLayer0123 && !collision.selection_bit(o2::aod::evsel::kIsGoodITSLayer0123)) {
419+
// cut time intervals with dead ITS staves
420+
return 0;
421+
}
434422
if (cfgRecoEvSelkIsGoodZvtxFT0vsPV && !collision.selection_bit(o2::aod::evsel::kIsGoodZvtxFT0vsPV)) {
435423
// removes collisions with large differences between z of PV by tracks and z of PV from FT0 A-C time difference
436424
// use this cut at low multiplicities with caution

0 commit comments

Comments
 (0)