Skip to content

Commit 7cbad57

Browse files
committed
[PWGEM,Photon] Add new task: task-photon-flow
- Add new task task-photon-flow to analyse photon flow with PCM via Kappa or EMCal via M02 as function of pT and centrality - Add Kappa histograms to pcmQC - Add new function to obtain Kappa from two legs - Replace all `typename` with concepts in `pcmQC.cxx` - Add two new functions: `fillKappaRec` and `fillKappaMC` which fill the Kappa histograms - Remove Preslice template argument by reducing Preslice definition to the most basic type `Preslice<aod::V0KFEMEventIds>` - Replace `o2::math_utils::bringTo02Pi` with `RecoDecay::constrainAngle` in `pcmQC.cxx` - Rename function `process` to `processRec` just to make sure the Framework does not make anything funny because of the name of the function being just `process`
1 parent 2a689ff commit 7cbad57

6 files changed

Lines changed: 900 additions & 62 deletions

File tree

PWGEM/PhotonMeson/Core/V0PhotonCandidate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ struct V0PhotonCandidate {
8989
dcaXYV0ToPV = RecoDecay::sqrtSumOfSquares(dcaXV0ToPV, dcaYV0ToPV) * tmpSign;
9090
dcaZV0ToPV = (v0DecayVtx.GetZ() - v0DecayVtx.GetPz() * cospa_ * length / v0mom) - collision.posZ();
9191

92-
alpha = v0_alpha(posPx, posPy, posPz, elePx, elePy, elePz);
93-
qt = v0_qt(posPx, posPy, posPz, elePx, elePy, elePz);
92+
alpha = v0Alpha(posPx, posPy, posPz, elePx, elePy, elePz);
93+
qt = v0Qt(posPx, posPy, posPz, elePx, elePy, elePz);
9494

9595
cospa = cospa_;
9696
cospaRZ = cospaRZ_;

PWGEM/PhotonMeson/TableProducer/skimmerGammaCalo.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ struct SkimmerGammaCalo {
7575
Configurable<float> minE{"minE", 0.5, "Minimum energy for energy cut"};
7676
Configurable<float> maxE{"maxE", std::numeric_limits<uint16_t>::max(), "Maximum energy for energy cut"};
7777
Configurable<bool> removeExotic{"removeExotic", false, "Flag to enable the removal of exotic clusters."};
78-
Configurable<std::vector<int>> clusterDefinitions{"clusterDefinitions", {0, 1, 2, 10, 11, 12, 13, 20, 21, 22, 30, 40, 41, 42, 43, 44, 45}, "Cluster definitions to be accepted (e.g. 13 for kV3MostSplitLowSeed)"};
78+
Configurable<std::vector<int>> clusterDefinitions{"clusterDefinitions", {0, 1, 2, 10, 11, 12, 13, 20, 21, 22, 30, 40, 41, 42, 43, 44, 45}, "Cluster definitions storageID to be accepted (see O2Physics/PWGJE/DataModel/EMCALClusters.h for the storageID)"};
7979
Configurable<float> maxdEta{"maxdEta", 0.1, "Set a maximum difference in eta for tracks and cluster to still count as matched"};
8080
Configurable<float> maxdPhi{"maxdPhi", 0.1, "Set a maximum difference in phi for tracks and cluster to still count as matched"};
8181
Configurable<float> maxEoverP{"maxEoverP", 1.5, "Set a maximum for cluster E / track p for track matching."};
@@ -93,8 +93,8 @@ struct SkimmerGammaCalo {
9393
<< "cluster table and must not be enabled together — this doubles MinClusters rows "
9494
<< "relative to EMCClusterMCLabels_001.";
9595
}
96-
historeg.add("DefinitionIn", "Cluster definitions before cuts;#bf{Cluster definition};#bf{#it{N}_{clusters}}", HistType::kTH1F, {{51, -0.5, 50.5}});
97-
historeg.add("DefinitionOut", "Cluster definitions after cuts;#bf{Cluster definition};#bf{#it{N}_{clusters}}", HistType::kTH1F, {{51, -0.5, 50.5}});
96+
historeg.add("DefinitionIn", "Cluster definitions before cuts;#bf{Cluster definition};#bf{#it{N}_{clusters}}", HistType::kTH1F, {{53, -0.5, 52.5}});
97+
historeg.add("DefinitionOut", "Cluster definitions after cuts;#bf{Cluster definition};#bf{#it{N}_{clusters}}", HistType::kTH1F, {{53, -0.5, 52.5}});
9898
historeg.add("EIn", "Energy of clusters before cuts", gHistoSpecClusterE);
9999
historeg.add("EOut", "Energy of clusters after cuts", gHistoSpecClusterE);
100100
historeg.add("MTEtaPhiBeforeTM", "Eta phi of matched tracks before TM cuts", gHistoSpecClusterTMdEtadPhi);

PWGEM/PhotonMeson/Tasks/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,11 @@ o2physics_add_dpl_workflow(check-mc-v0
126126
PUBLIC_LINK_LIBRARIES O2::Framework O2::DCAFitter O2Physics::AnalysisCore
127127
COMPONENT_NAME Analysis)
128128

129+
o2physics_add_dpl_workflow(task-photon-flow
130+
SOURCES taskPhotonFlow.cxx
131+
PUBLIC_LINK_LIBRARIES O2::Framework O2::EMCALBase O2::EMCALCalib O2Physics::AnalysisCore O2Physics::PWGEMPhotonMesonCore
132+
COMPONENT_NAME Analysis)
133+
129134
o2physics_add_dpl_workflow(pi0-flow-emc
130135
SOURCES taskPi0FlowEMC.cxx
131136
PUBLIC_LINK_LIBRARIES O2::Framework O2::EMCALBase O2::EMCALCalib O2Physics::AnalysisCore O2Physics::PWGEMPhotonMesonCore

0 commit comments

Comments
 (0)