Skip to content

Commit 0ce391a

Browse files
committed
Please consider the following formatting changes
1 parent d6cbe97 commit 0ce391a

File tree

2 files changed

+24
-27
lines changed

2 files changed

+24
-27
lines changed

PWGLF/DataModel/LFKinkDecayTables.h

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ DECLARE_SOA_COLUMN(NSigmaTOFPr, nSigmaTOFPr, float); //! Number of sigmas for th
5555
DECLARE_SOA_COLUMN(NSigmaTOFKa, nSigmaTOFKa, float); //! Number of sigmas for the kaon candidate from Sigma kink in TOF
5656

5757
// MC Columns
58-
DECLARE_SOA_COLUMN(MothPdgCode, mothPdgCode, int); //! PDG code of the Sigma daughter
59-
DECLARE_SOA_COLUMN(DaugPdgCode, daugPdgCode, int); //! PDG code of the kink daughter
60-
DECLARE_SOA_COLUMN(PtMC, ptMC, float); //! pT of the candidate in MC
61-
DECLARE_SOA_COLUMN(MassMC, massMC, float); //! Invariant mass of the candidate in MC
58+
DECLARE_SOA_COLUMN(MothPdgCode, mothPdgCode, int); //! PDG code of the Sigma daughter
59+
DECLARE_SOA_COLUMN(DaugPdgCode, daugPdgCode, int); //! PDG code of the kink daughter
60+
DECLARE_SOA_COLUMN(PtMC, ptMC, float); //! pT of the candidate in MC
61+
DECLARE_SOA_COLUMN(MassMC, massMC, float); //! Invariant mass of the candidate in MC
6262
DECLARE_SOA_COLUMN(DecayRadiusMC, decayRadiusMC, float); //! Decay radius of the candidate in MC
6363

6464
// DYNAMIC COLUMNS
@@ -134,16 +134,16 @@ DECLARE_SOA_TABLE(KinkCandsUnbound, "AOD", "UBKINKCANDS",
134134
kinkcand::MSigmaPlus<kinkcand::PxMoth, kinkcand::PyMoth, kinkcand::PzMoth, kinkcand::PxDaug, kinkcand::PyDaug, kinkcand::PzDaug>,
135135
kinkcand::MXiMinus<kinkcand::PxMoth, kinkcand::PyMoth, kinkcand::PzMoth, kinkcand::PxDaug, kinkcand::PyDaug, kinkcand::PzDaug>);
136136

137-
DECLARE_SOA_TABLE(SlimKinkCands, "AOD", "SLIMKINKCANDS",
137+
DECLARE_SOA_TABLE(SlimKinkCands, "AOD", "SLIMKINKCANDS",
138138
kinkcand::XDecVtx, kinkcand::YDecVtx, kinkcand::ZDecVtx,
139139
kinkcand::PxMoth, kinkcand::PyMoth, kinkcand::PzMoth,
140140
kinkcand::PxDaug, kinkcand::PyDaug, kinkcand::PzDaug,
141141
kinkcand::DcaMothPv, kinkcand::DcaDaugPv, kinkcand::DcaKinkTopo,
142-
kinkcand::MothSign,
142+
kinkcand::MothSign,
143143
kinkcand::NSigmaTPCPi, kinkcand::NSigmaTPCPr, kinkcand::NSigmaTPCKa,
144144
kinkcand::NSigmaTOFPi, kinkcand::NSigmaTOFPr, kinkcand::NSigmaTOFKa);
145145

146-
DECLARE_SOA_TABLE(SlimKinkCandsMC, "AOD", "SLIMKINKCANDSMC",
146+
DECLARE_SOA_TABLE(SlimKinkCandsMC, "AOD", "SLIMKINKCANDSMC",
147147
kinkcand::XDecVtx, kinkcand::YDecVtx, kinkcand::ZDecVtx,
148148
kinkcand::PxMoth, kinkcand::PyMoth, kinkcand::PzMoth,
149149
kinkcand::PxDaug, kinkcand::PyDaug, kinkcand::PzDaug,
@@ -154,8 +154,6 @@ DECLARE_SOA_TABLE(SlimKinkCandsMC, "AOD", "SLIMKINKCANDSMC",
154154
kinkcand::MothPdgCode, kinkcand::DaugPdgCode,
155155
kinkcand::PtMC, kinkcand::MassMC, kinkcand::DecayRadiusMC);
156156

157-
158-
159157
} // namespace o2::aod
160158

161159
#endif // PWGLF_DATAMODEL_LFKINKDECAYTABLES_H_

PWGLF/Tasks/Strangeness/sigmaminustask.cxx

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace o2;
2626
using namespace o2::framework;
2727
using namespace o2::framework::expressions;
2828

29-
using TracksFull = soa::Join<aod::TracksIU, aod::TracksExtra, aod::TracksCovIU,
29+
using TracksFull = soa::Join<aod::TracksIU, aod::TracksExtra, aod::TracksCovIU,
3030
aod::pidTPCFullPi, aod::pidTPCFullPr, aod::pidTPCFullKa,
3131
aod::pidTOFFullPi, aod::pidTOFFullPr, aod::pidTOFFullKa>;
3232
using CollisionsFull = soa::Join<aod::Collisions, aod::EvSel>;
@@ -47,7 +47,7 @@ struct sigmaminustask {
4747
Configurable<float> cutNSigmaPi{"cutNSigmaPi", 4, "NSigmaTPCPion"};
4848

4949
Configurable<bool> fillOutputTree{"fillOutputTree", true, "If true, fill the output tree with Kink candidates"};
50-
50+
5151
Preslice<aod::KinkCands> mPerCol = aod::track::collisionId;
5252

5353
void init(InitContext const&)
@@ -62,7 +62,7 @@ struct sigmaminustask {
6262

6363
const AxisSpec ptResolutionAxis{100, -0.5, 0.5, "#it{p}_{T}^{rec} - #it{p}_{T}^{gen} (GeV/#it{c})"};
6464
const AxisSpec massResolutionAxis{100, -0.1, 0.1, "m_{rec} - m_{gen} (GeV/#it{c}^{2})"};
65-
65+
6666
// Event selection
6767
rEventSelection.add("hVertexZRec", "hVertexZRec", {HistType::kTH1F, {vertexZAxis}});
6868
// Sigma-minus reconstruction
@@ -99,17 +99,16 @@ struct sigmaminustask {
9999
rSigmaMinus.fill(HIST("h2MassSigmaMinusPt"), kinkCand.mothSign() * kinkCand.ptMoth(), kinkCand.mSigmaMinus());
100100
rSigmaMinus.fill(HIST("h2SigmaMassVsXiMass"), kinkCand.mXiMinus(), kinkCand.mSigmaMinus());
101101
rSigmaMinus.fill(HIST("h2NSigmaPiPt"), kinkCand.mothSign() * kinkCand.ptMoth(), dauTrack.tpcNSigmaPi());
102-
103-
if(fillOutputTree) {
102+
103+
if (fillOutputTree) {
104104
outputDataTable(kinkCand.xDecVtx(), kinkCand.yDecVtx(), kinkCand.zDecVtx(),
105105
kinkCand.pxMoth(), kinkCand.pyMoth(), kinkCand.pzMoth(),
106106
kinkCand.pxDaug(), kinkCand.pyDaug(), kinkCand.pzDaug(),
107107
kinkCand.dcaMothPv(), kinkCand.dcaDaugPv(), kinkCand.dcaKinkTopo(),
108-
kinkCand.mothSign(),
108+
kinkCand.mothSign(),
109109
dauTrack.tpcNSigmaPi(), dauTrack.tpcNSigmaPr(), dauTrack.tpcNSigmaKa(),
110110
dauTrack.tofNSigmaPi(), dauTrack.tofNSigmaPr(), dauTrack.tofNSigmaKa());
111111
}
112-
113112
}
114113
}
115114
PROCESS_SWITCH(sigmaminustask, processData, "Data processing", true);
@@ -139,7 +138,7 @@ struct sigmaminustask {
139138
rSigmaMinus.fill(HIST("h2MassSigmaMinusPt"), kinkCand.mothSign() * kinkCand.ptMoth(), kinkCand.mSigmaMinus());
140139
rSigmaMinus.fill(HIST("h2SigmaMassVsXiMass"), kinkCand.mXiMinus(), kinkCand.mSigmaMinus());
141140
rSigmaMinus.fill(HIST("h2NSigmaPiPt"), kinkCand.mothSign() * kinkCand.ptMoth(), dauTrack.tpcNSigmaPi());
142-
141+
143142
// do MC association
144143
auto mcLabSigma = trackLabelsMC.rawIteratorAt(mothTrack.globalIndex());
145144
auto mcLabPiDau = trackLabelsMC.rawIteratorAt(dauTrack.globalIndex());
@@ -159,7 +158,7 @@ struct sigmaminustask {
159158
if (std::abs(mcTrackPiDau.pdgCode()) != 211 && std::abs(mcTrackPiDau.pdgCode()) != 2212) {
160159
continue;
161160
}
162-
161+
163162
float MotherMassMC = std::sqrt(piMother.e() * piMother.e() - piMother.p() * piMother.p());
164163
float MotherpTMC = piMother.pt();
165164
float decayRadiusMC = std::sqrt(mcTrackPiDau.vx() * mcTrackPiDau.vx() + mcTrackPiDau.vy() * mcTrackPiDau.vy());
@@ -176,14 +175,14 @@ struct sigmaminustask {
176175
// fill the output table with Mc information
177176
if (fillOutputTree) {
178177
outputDataTableMC(kinkCand.xDecVtx(), kinkCand.yDecVtx(), kinkCand.zDecVtx(),
179-
kinkCand.pxMoth(), kinkCand.pyMoth(), kinkCand.pzMoth(),
180-
kinkCand.pxDaug(), kinkCand.pyDaug(), kinkCand.pzDaug(),
181-
kinkCand.dcaMothPv(), kinkCand.dcaDaugPv(), kinkCand.dcaKinkTopo(),
182-
kinkCand.mothSign(),
183-
dauTrack.tpcNSigmaPi(), dauTrack.tpcNSigmaPr(), dauTrack.tpcNSigmaKa(),
184-
dauTrack.tofNSigmaPi(), dauTrack.tofNSigmaPr(), dauTrack.tofNSigmaKa(),
185-
mcTrackSigma.pdgCode(), mcTrackPiDau.pdgCode(),
186-
MotherpTMC, MotherMassMC, decayRadiusMC);
178+
kinkCand.pxMoth(), kinkCand.pyMoth(), kinkCand.pzMoth(),
179+
kinkCand.pxDaug(), kinkCand.pyDaug(), kinkCand.pzDaug(),
180+
kinkCand.dcaMothPv(), kinkCand.dcaDaugPv(), kinkCand.dcaKinkTopo(),
181+
kinkCand.mothSign(),
182+
dauTrack.tpcNSigmaPi(), dauTrack.tpcNSigmaPr(), dauTrack.tpcNSigmaKa(),
183+
dauTrack.tofNSigmaPi(), dauTrack.tofNSigmaPr(), dauTrack.tofNSigmaKa(),
184+
mcTrackSigma.pdgCode(), mcTrackPiDau.pdgCode(),
185+
MotherpTMC, MotherMassMC, decayRadiusMC);
187186
}
188187
}
189188
} // MC association and selection
@@ -224,7 +223,7 @@ struct sigmaminustask {
224223
outputDataTableMC(-999, -999, -999,
225224
-999, -999, -999,
226225
-999, -999, -999,
227-
-999, -999, -999,
226+
-999, -999, -999,
228227
sigmaSign,
229228
-999, -999, -999,
230229
-999, -999, -999,

0 commit comments

Comments
 (0)