Skip to content

Commit b5cdcb4

Browse files
authored
Please consider the following formatting changes (AliceO2Group#245)
1 parent 68aef3f commit b5cdcb4

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

PWGLF/DataModel/LFStrangenessTables.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,12 @@ DECLARE_SOA_COLUMN(ZPosAtDCA, zPosAtDCA, float); //! decay position Z
159159
DECLARE_SOA_COLUMN(XNegAtDCA, xNegAtDCA, float); //! decay position X
160160
DECLARE_SOA_COLUMN(YNegAtDCA, yNegAtDCA, float); //! decay position Y
161161
DECLARE_SOA_COLUMN(ZNegAtDCA, zNegAtDCA, float); //! decay position Z
162-
DECLARE_SOA_COLUMN(XPosAtIU, xPosAtIU, float); //! decay position X
163-
DECLARE_SOA_COLUMN(YPosAtIU, yPosAtIU, float); //! decay position Y
164-
DECLARE_SOA_COLUMN(ZPosAtIU, zPosAtIU, float); //! decay position Z
165-
DECLARE_SOA_COLUMN(XNegAtIU, xNegAtIU, float); //! decay position X
166-
DECLARE_SOA_COLUMN(YNegAtIU, yNegAtIU, float); //! decay position Y
167-
DECLARE_SOA_COLUMN(ZNegAtIU, zNegAtIU, float); //! decay position Z
162+
DECLARE_SOA_COLUMN(XPosAtIU, xPosAtIU, float); //! decay position X
163+
DECLARE_SOA_COLUMN(YPosAtIU, yPosAtIU, float); //! decay position Y
164+
DECLARE_SOA_COLUMN(ZPosAtIU, zPosAtIU, float); //! decay position Z
165+
DECLARE_SOA_COLUMN(XNegAtIU, xNegAtIU, float); //! decay position X
166+
DECLARE_SOA_COLUMN(YNegAtIU, yNegAtIU, float); //! decay position Y
167+
DECLARE_SOA_COLUMN(ZNegAtIU, zNegAtIU, float); //! decay position Z
168168

169169
// Saved from finding: DCAs
170170
DECLARE_SOA_COLUMN(DCAV0Daughters, dcaV0daughters, float); //! DCA between V0 daughters
@@ -181,8 +181,8 @@ DECLARE_SOA_COLUMN(PositionCovMat, positionCovMat, float[6]); //! covariance mat
181181
DECLARE_SOA_COLUMN(MomentumCovMat, momentumCovMat, float[6]); //! covariance matrix elements
182182
DECLARE_SOA_COLUMN(CovMatPosDau, covMatPosDau, float[21]); //! covariance matrix elements positive daughter track
183183
DECLARE_SOA_COLUMN(CovMatNegDau, covMatNegDau, float[21]); //! covariance matrix elements negative daughter track
184-
DECLARE_SOA_COLUMN(CovMatPosDauIU, covMatPosDauIU, float[21]); //! covariance matrix elements positive daughter track
185-
DECLARE_SOA_COLUMN(CovMatNegDauIU, covMatNegDauIU, float[21]); //! covariance matrix elements negative daughter track
184+
DECLARE_SOA_COLUMN(CovMatPosDauIU, covMatPosDauIU, float[21]); //! covariance matrix elements positive daughter track
185+
DECLARE_SOA_COLUMN(CovMatNegDauIU, covMatNegDauIU, float[21]); //! covariance matrix elements negative daughter track
186186

187187
// Saved from KF particle fit for specic table
188188
DECLARE_SOA_COLUMN(KFV0Chi2, kfV0Chi2, float); //!

PWGLF/TableProducer/lambdakzerobuilder.cxx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ struct lambdakzeroBuilder {
295295

296296
// +-~-+-~-+-~-+-~-+-~-+-~-+-~-+-~-+-~-+-~-+-~-+-~-+-~-+-~-+-~-+-~-+
297297
// tools for downsampling (Marian)
298-
float TsallisCharged(float pt) {
298+
float TsallisCharged(float pt)
299+
{
299300
const float a = 6.81, b = 59.24;
300301
const float c = 0.082, d = 0.151;
301302
float mt = TMath::Sqrt(downscale_mass * downscale_mass + pt * pt);
@@ -307,7 +308,8 @@ struct lambdakzeroBuilder {
307308
return result;
308309
}
309310

310-
int DownsampleTsallisCharged(float pt) {
311+
int DownsampleTsallisCharged(float pt)
312+
{
311313
float prob = TsallisCharged(pt);
312314
float probNorm = TsallisCharged(1.);
313315
int triggerMask = 0;
@@ -967,11 +969,12 @@ struct lambdakzeroBuilder {
967969
continue; // doesn't pass selections
968970
}
969971

970-
if (downscale_adaptive){
972+
if (downscale_adaptive) {
971973
float pt = RecoDecay::sqrtSumOfSquares(v0candidate.posP[0] + v0candidate.negP[0], v0candidate.posP[1] + v0candidate.negP[1]);
972974
int mask = TsallisCharged(pt);
973975
bool pass = (mask & downscale_triggerMaskSelection) == downscale_triggerMaskSelection;
974-
if(!pass) continue; // skip this V0
976+
if (!pass)
977+
continue; // skip this V0
975978
}
976979

977980
// round the DCA variables to a certain precision if asked
@@ -1000,7 +1003,7 @@ struct lambdakzeroBuilder {
10001003
if (createV0PosAtDCAs)
10011004
v0dauPositions(v0candidate.posPosition[0], v0candidate.posPosition[1], v0candidate.posPosition[2],
10021005
v0candidate.negPosition[0], v0candidate.negPosition[1], v0candidate.negPosition[2]);
1003-
if (createV0PosAtDCAs){
1006+
if (createV0PosAtDCAs) {
10041007
std::array<float, 3> posPositionIU;
10051008
std::array<float, 3> negPositionIU;
10061009
lPositiveTrackIU.getXYZGlo(posPositionIU);

0 commit comments

Comments
 (0)