Skip to content

Commit 913605e

Browse files
committed
add event consistency flag
1 parent d616170 commit 913605e

File tree

1 file changed

+32
-22
lines changed

1 file changed

+32
-22
lines changed

PWGUD/Tasks/flowCumulantsUpc.cxx

Lines changed: 32 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,41 +14,51 @@
1414
/// \since Mar/2025
1515
/// \brief jira: , task to measure flow observables with cumulant method
1616

17-
#include "FlowContainer.h"
18-
#include "GFW.h"
19-
#include "GFWCumulant.h"
20-
#include "GFWPowerArray.h"
21-
#include "GFWWeights.h"
22-
2317
#include "PWGUD/Core/SGSelector.h"
24-
#include "PWGUD/DataModel/SGTables.h"
2518
#include "PWGUD/DataModel/UDTables.h"
19+
//
20+
#include "PWGCF/GenericFramework/Core/FlowContainer.h"
21+
#include "PWGCF/GenericFramework/Core/GFW.h"
22+
#include "PWGCF/GenericFramework/Core/GFWWeights.h"
2623

2724
#include "Common/CCDB/ctpRateFetcher.h"
2825
#include "Common/Core/RecoDecay.h"
2926
#include "Common/Core/TrackSelection.h"
3027
#include "Common/Core/TrackSelectionDefaults.h"
31-
#include "Common/DataModel/Centrality.h"
32-
#include "Common/DataModel/EventSelection.h"
33-
#include "Common/DataModel/Multiplicity.h"
34-
#include "Common/DataModel/TrackSelectionTables.h"
35-
36-
#include "Framework/ASoAHelpers.h"
37-
#include "Framework/AnalysisTask.h"
38-
#include "Framework/HistogramRegistry.h"
39-
#include "Framework/RunningWorkflowInfo.h"
40-
#include "Framework/runDataProcessing.h"
41-
#include <CCDB/BasicCCDBManager.h>
4228

43-
#include "TList.h"
44-
#include "TVector3.h"
29+
#include <CCDB/BasicCCDBManager.h>
30+
#include <CommonConstants/MathConstants.h>
31+
#include <CommonConstants/PhysicsConstants.h>
32+
#include <Framework/ASoA.h>
33+
#include <Framework/AnalysisDataModel.h>
34+
#include <Framework/AnalysisHelpers.h>
35+
#include <Framework/AnalysisTask.h>
36+
#include <Framework/Configurable.h>
37+
#include <Framework/HistogramRegistry.h>
38+
#include <Framework/HistogramSpec.h>
39+
#include <Framework/InitContext.h>
40+
#include <Framework/StringHelpers.h>
41+
#include <Framework/runDataProcessing.h>
42+
43+
#include <Math/GenVector/LorentzVector.h>
44+
#include <Math/GenVector/PxPyPzE4D.h>
4545
#include <TF1.h>
46+
#include <TH1.h>
47+
#include <TH2.h>
48+
#include <TNamed.h>
4649
#include <TObjArray.h>
4750
#include <TProfile.h>
4851
#include <TRandom3.h>
52+
#include <TString.h>
53+
54+
#include <sys/types.h>
55+
56+
#include <RtypesCore.h>
4957

5058
#include <array>
59+
#include <chrono>
5160
#include <cmath>
61+
#include <cstdint>
5262
#include <memory>
5363
#include <string>
5464
#include <unordered_map>
@@ -116,6 +126,7 @@ struct FlowCumulantsUpc {
116126
O2_DEFINE_CONFIGURABLE(cfgItsClusterSize, unsigned int, 5, "ITS cluster size")
117127
O2_DEFINE_CONFIGURABLE(cfgMaxTPCChi2NCl, int, 4, "tpcchi2")
118128
O2_DEFINE_CONFIGURABLE(cfgConsistentEventFlag, int, 0, "Flag to select consistent events - 0: off, 1: v2{2} gap calculable, 2: v2{4} full calculable, 4: v2{4} gap calculable, 8: v2{4} 3sub calculable")
129+
119130
Configurable<std::vector<std::string>> cfgUserDefineGFWCorr{"cfgUserDefineGFWCorr", std::vector<std::string>{"refN02 {2} refP02 {-2}", "refN12 {2} refP12 {-2}"}, "User defined GFW CorrelatorConfig"};
120131
Configurable<std::vector<std::string>> cfgUserDefineGFWName{"cfgUserDefineGFWName", std::vector<std::string>{"Ch02Gap22", "Ch12Gap22"}, "User defined GFW Name"};
121132
Configurable<std::vector<int>> cfgRunRemoveList{"cfgRunRemoveList", std::vector<int>{-1}, "excluded run numbers"};
@@ -222,6 +233,7 @@ struct FlowCumulantsUpc {
222233
registry.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(4, "after pt selection");
223234
registry.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(5, "after occupancy");
224235
registry.get<TH1>(HIST("hEventCount"))->GetXaxis()->SetBinLabel(6, "after consistency check");
236+
225237
registry.add("hTrackCount", "Number of tracks;; Count", {HistType::kTH1D, {{7, 0, 7}}});
226238
registry.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(1, "after event selection");
227239
registry.get<TH1>(HIST("hTrackCount"))->GetXaxis()->SetBinLabel(2, "PVContributor");
@@ -1007,7 +1019,6 @@ struct FlowCumulantsUpc {
10071019
if (eta > consistentEventVector[4] && eta < consistentEventVector[5])
10081020
acceptedTracks.nPos += 1;
10091021
}
1010-
10111022
if (withinPtRef) {
10121023
registry.fill(HIST("hPhi"), phi);
10131024
registry.fill(HIST("hPhiWeighted"), phi, wacc);
@@ -1029,7 +1040,6 @@ struct FlowCumulantsUpc {
10291040
registry.fill(HIST("hEtaNch2D"), eta, tracks.size());
10301041
}
10311042
registry.fill(HIST("hTrackCorrection2d"), tracks.size(), nTracksCorrected);
1032-
10331043
if (cfgConsistentEventFlag) {
10341044
if (cfgConsistentEventFlag & 1) {
10351045
if (!acceptedTracks.nPos || !acceptedTracks.nNeg)

0 commit comments

Comments
 (0)