Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions EventFiltering/PWGEM/HeavyNeutralMesonFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ struct HeavyNeutralMesonFilter {
false,
"Evt sel: check for offline selection"};

Configurable<bool> ConfDoEMCShift{"ConfDoEMCShift", false, "Apply SM-wise shift in eta and phi to EMCal clusters to align with TPC tracks"};
Configurable<std::vector<float>> ConfEMCEtaShift{"ConfEMCEtaShift", {0.f}, "values for SM-wise shift in eta to be added to EMCal clusters to align with TPC tracks"};
Configurable<std::vector<float>> ConfEMCPhiShift{"ConfEMCPhiShift", {0.f}, "values for SM-wise shift in phi to be added to EMCal clusters to align with TPC tracks"};
std::array<float, 20> EMCEtaShift = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
std::array<float, 20> EMCPhiShift = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};

template <typename T>
bool isSelectedTrack(T const& track, CFTrigger::FemtoPartners partSpecies)
{
Expand Down Expand Up @@ -760,6 +766,14 @@ struct HeavyNeutralMesonFilter {
mHistManager.add("etaprimep/fetaprimePtVskstar_EMC", "Same Event distribution", HistType::kTH1F, {{8000, 0, 8}});
mHistManager.add("etaprimep/fProtonPtVskstar_EMC", "Same Event distribution", HistType::kTH1F, {{8000, 0, 8}});
mHistManager.add("etaprimep/fAntiProtonPtVskstar_EMC", "Same Event distribution", HistType::kTH1F, {{8000, 0, 8}});

if (ConfDoEMCShift.value) {
for (unsigned short iSM = 0; iSM < 20; iSM++) {
EMCEtaShift[iSM] = ConfEMCEtaShift.value[iSM];
EMCPhiShift[iSM] = ConfEMCPhiShift.value[iSM];
LOG(info) << "SM-wise shift in eta/phi for SM " << iSM << ": " << EMCEtaShift[iSM] << " / " << EMCPhiShift[iSM];
}
}
}
Preslice<aod::V0PhotonsKF> perCollision_pcm = aod::v0photonkf::collisionId;
Preslice<aod::SkimEMCClusters> perCollision_emc = aod::skimmedcluster::collisionId;
Expand Down Expand Up @@ -817,10 +831,11 @@ struct HeavyNeutralMesonFilter {
mHistManager.fill(HIST("Event/nClustersVsV0s"), clustersInThisCollision.size(), v0sInThisCollision.size());
mHistManager.fill(HIST("Event/nTracks"), tracksWithItsPid.size());

hnmutilities::reconstructGGs(clustersInThisCollision, v0sInThisCollision, vGGs);
std::vector<hnmutilities::Photon> vGammas;
hnmutilities::storeGammasInVector(clustersInThisCollision, v0sInThisCollision, vGammas, EMCEtaShift, EMCPhiShift);
hnmutilities::reconstructGGs(vGammas, vGGs);
vGammas.clear();
processGGs(vGGs);
// hnmutilities::reconstructHeavyNeutralMesons(tracks, vGGs, vHNMs);
// processHNMs(vHNMs);

bool isProton = false;
bool isDeuteron = false;
Expand Down
5 changes: 5 additions & 0 deletions PWGEM/PhotonMeson/Tasks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ o2physics_add_dpl_workflow(emcal-qc
PUBLIC_LINK_LIBRARIES O2::Framework O2::DetectorsBase O2Physics::AnalysisCore O2Physics::PWGEMPhotonMesonCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(heavy-neutral-meson
SOURCES HeavyNeutralMeson.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2::EMCALBase O2::EMCALCalib O2Physics::AnalysisCore O2Physics::PWGEMPhotonMesonCore
COMPONENT_NAME Analysis)

o2physics_add_dpl_workflow(phos-qc
SOURCES phosQC.cxx
PUBLIC_LINK_LIBRARIES O2::Framework O2::DetectorsBase O2Physics::AnalysisCore O2Physics::PWGEMPhotonMesonCore
Expand Down
Loading