Skip to content

Commit bb72bf8

Browse files
authored
Merge branch 'master' into master
2 parents 68dadb5 + fae2966 commit bb72bf8

28 files changed

Lines changed: 1992 additions & 346 deletions

Common/Tasks/qaMuon.cxx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ struct muonQa {
223223
Configurable<double> fChamberResolutionX{"cfgChamberResolutionX", 0.4, "Chamber resolution along X configuration for refit"}; // 0.4cm pp, 0.2cm PbPb
224224
Configurable<double> fChamberResolutionY{"cfgChamberResolutionY", 0.4, "Chamber resolution along Y configuration for refit"}; // 0.4cm pp, 0.2cm PbPb
225225
Configurable<double> fSigmaCutImprove{"cfgSigmaCutImprove", 6., "Sigma cut for track improvement"};
226+
Configurable<double> fDipoleZcorr{"cfgDipoleZcorr", 0.0f, "Correction to the dipole z position"};
226227
} configRealign;
227228

228229
/// Variables to event mixing criteria
@@ -1651,6 +1652,11 @@ struct muonQa {
16511652
fgValues.errorClusters.emplace_back(eCls);
16521653
fgValues.DEIDs.emplace_back(cluster.deId());
16531654

1655+
// subtract the dipole shift correction from the cluster z position
1656+
if (configRealign.fDipoleZcorr != 0) {
1657+
clusterMCH->z -= configRealign.fDipoleZcorr;
1658+
}
1659+
16541660
// Add transformed cluster into temporary variable
16551661
convertedTrack.createParamAtCluster(*clusterMCH);
16561662
}
@@ -1663,6 +1669,12 @@ struct muonQa {
16631669
LOGF(fatal, "Muon track %d has no associated clusters.", muon.globalIndex());
16641670
}
16651671

1672+
// add back the dipole shift correction to the track z
1673+
if (configRealign.fDipoleZcorr != 0) {
1674+
auto& trackParam = *(convertedTrack.begin());
1675+
trackParam.setZ(trackParam.getZ() + configRealign.fDipoleZcorr);
1676+
}
1677+
16661678
for (auto it = convertedTrack.begin(); it != convertedTrack.end(); it++) {
16671679
std::vector<float> pos = {static_cast<float>(it->getNonBendingCoor()), static_cast<float>(it->getBendingCoor()), static_cast<float>(it->getZ())};
16681680
fgValues.posClusters.emplace_back(pos);

PWGCF/Flow/Tasks/flowDirectedFlowTask.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ struct flowDirectedFlowTask {
163163
histos.add("hQxCvscent", "Qx C vs centrality", kTH2F, {{centAxis}, {qAxis}});
164164
histos.add("hQyCvscent", "Qy C vs centrality", kTH2F, {{centAxis}, {qAxis}});
165165

166-
histos.add("hpResCosAC", "cos(#Psi_{A}-#Psi_{C}) vs centrality", kTH2F, {{centAxis}, {resAxis}});
167-
histos.add("hpResDotAC", "Q_{A}#upoint Q_{C} vs centrality", kTH2F, {{centAxis}, {resAxis}});
166+
histos.add("hpResCosAC", "cos(#Psi_{A}-#Psi_{C}) vs centrality", kTH3F, {{centAxis}, {resAxis}, {q1Axis}});
167+
histos.add("hpResDotAC", "Q_{A}#upoint Q_{C} vs centrality", kTH3F, {{centAxis}, {resAxis}, {q1Axis}});
168168
histos.add("hpQxAQxC", "QxA QxC", kTH2F, {{centAxis}, {resAxis}});
169169
histos.add("hpQyAQyC", "QyA QyC", kTH2F, {{centAxis}, {resAxis}});
170170
histos.add("hpQxAQyC", "QxA QyC", kTH2F, {{centAxis}, {resAxis}});
@@ -524,8 +524,8 @@ struct flowDirectedFlowTask {
524524
float dotAC = qxA * qxC + qyA * qyC;
525525
float resDot = dotAC / (magA * magC);
526526

527-
histos.fill(HIST("hpResCosAC"), centrality, std::cos(psiA - psiC));
528-
histos.fill(HIST("hpResDotAC"), centrality, resDot);
527+
histos.fill(HIST("hpResCosAC"), centrality, std::cos(psiA - psiC), q1);
528+
histos.fill(HIST("hpResDotAC"), centrality, resDot, q1);
529529
histos.fill(HIST("hpQxAQxC"), centrality, qxA * qxC);
530530
histos.fill(HIST("hpQyAQyC"), centrality, qyA * qyC);
531531
histos.fill(HIST("hpQxAQyC"), centrality, qxA * qyC);

0 commit comments

Comments
 (0)