Skip to content

Commit f893a0a

Browse files
authored
Please consider the following formatting changes (#493)
1 parent 5720f82 commit f893a0a

File tree

2 files changed

+37
-38
lines changed

2 files changed

+37
-38
lines changed

PWGLF/DataModel/LFStrangenessPIDTables.h

Lines changed: 32 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
//**********************************************************************
1616

1717
//**********************************************************************
18-
// Nota bene: when using, do not check track.hasTOF! That conditional may not match
19-
// the calculation of strangeness TOF, which requires e.g. a successful calculation
18+
// Nota bene: when using, do not check track.hasTOF! That conditional may not match
19+
// the calculation of strangeness TOF, which requires e.g. a successful calculation
2020
// of the collision time for the reassociated collision
2121
//**********************************************************************
2222

@@ -213,21 +213,21 @@ DECLARE_SOA_COLUMN(TOFNSigmaK0PiMinus, tofNSigmaK0PiMinus, float); //! negative
213213

214214
// dynamics to replace hasTOF (note: that condition does not match track hasTOF!)
215215
// note: only single hypothesis check necessary; other hypotheses will always be valid
216-
DECLARE_SOA_DYNAMIC_COLUMN(PositiveHasTOF, positiveHasTOF, //! positive daughter TOF calculation valid
216+
DECLARE_SOA_DYNAMIC_COLUMN(PositiveHasTOF, positiveHasTOF, //! positive daughter TOF calculation valid
217217
[](float TOFNSigmaLaPr) -> bool {
218-
bool returnStatus = true;
219-
if(std::abs(TOFNSigmaLaPr - kNoTOFValue) < kEpsilon){
220-
returnStatus = false;
221-
}
222-
return returnStatus;
218+
bool returnStatus = true;
219+
if (std::abs(TOFNSigmaLaPr - kNoTOFValue) < kEpsilon) {
220+
returnStatus = false;
221+
}
222+
return returnStatus;
223223
});
224-
DECLARE_SOA_DYNAMIC_COLUMN(NegativeHasTOF, negativeHasTOF, //! negative daughter TOF calculation valid
224+
DECLARE_SOA_DYNAMIC_COLUMN(NegativeHasTOF, negativeHasTOF, //! negative daughter TOF calculation valid
225225
[](float TOFNSigmaALaPr) -> bool {
226-
bool returnStatus = true;
227-
if(std::abs(TOFNSigmaALaPr - kNoTOFValue) < kEpsilon){
228-
returnStatus = false;
229-
}
230-
return returnStatus;
226+
bool returnStatus = true;
227+
if (std::abs(TOFNSigmaALaPr - kNoTOFValue) < kEpsilon) {
228+
returnStatus = false;
229+
}
230+
return returnStatus;
231231
});
232232

233233
// dynamics based on n-sigmas with use-only-if-tof-present logic
@@ -356,31 +356,30 @@ DECLARE_SOA_COLUMN(TOFNSigmaOmKa, tofNSigmaOmKa, float); //! bachelor track
356356

357357
// dynamics to replace hasTOF (note: that condition does not match track hasTOF!)
358358
// note: only single hypothesis check necessary; other hypotheses will always be valid
359-
DECLARE_SOA_DYNAMIC_COLUMN(PositiveHasTOF, positiveHasTOF, //! positive daughter TOF calculation valid
359+
DECLARE_SOA_DYNAMIC_COLUMN(PositiveHasTOF, positiveHasTOF, //! positive daughter TOF calculation valid
360360
[](float PosTOFDeltaTXiPr) -> bool {
361-
bool returnStatus = true;
362-
if(std::abs(PosTOFDeltaTXiPr - kNoTOFValue) < kEpsilon){
363-
returnStatus = false;
364-
}
365-
return returnStatus;
361+
bool returnStatus = true;
362+
if (std::abs(PosTOFDeltaTXiPr - kNoTOFValue) < kEpsilon) {
363+
returnStatus = false;
364+
}
365+
return returnStatus;
366366
});
367-
DECLARE_SOA_DYNAMIC_COLUMN(NegativeHasTOF, negativeHasTOF, //! positive daughter TOF calculation valid
367+
DECLARE_SOA_DYNAMIC_COLUMN(NegativeHasTOF, negativeHasTOF, //! positive daughter TOF calculation valid
368368
[](float NegTOFDeltaTXiPr) -> bool {
369-
bool returnStatus = true;
370-
if(std::abs(NegTOFDeltaTXiPr - kNoTOFValue) < kEpsilon){
371-
returnStatus = false;
372-
}
373-
return returnStatus;
369+
bool returnStatus = true;
370+
if (std::abs(NegTOFDeltaTXiPr - kNoTOFValue) < kEpsilon) {
371+
returnStatus = false;
372+
}
373+
return returnStatus;
374374
});
375-
DECLARE_SOA_DYNAMIC_COLUMN(BachelorHasTOF, bachelorHasTOF, //! bachelor daughter TOF calculation valid
375+
DECLARE_SOA_DYNAMIC_COLUMN(BachelorHasTOF, bachelorHasTOF, //! bachelor daughter TOF calculation valid
376376
[](float BachTOFDeltaTXiPi) -> bool {
377-
bool returnStatus = true;
378-
if(std::abs(BachTOFDeltaTXiPi - kNoTOFValue) < kEpsilon){
379-
returnStatus = false;
380-
}
381-
return returnStatus;
377+
bool returnStatus = true;
378+
if (std::abs(BachTOFDeltaTXiPi - kNoTOFValue) < kEpsilon) {
379+
returnStatus = false;
380+
}
381+
return returnStatus;
382382
});
383-
384383

385384
// dynamics based on n-sigmas with use-only-if-tof-present logic
386385
DECLARE_SOA_DYNAMIC_COLUMN(TofXiCompatibility, tofXiCompatibility, //! compatibility with being lambda, checked only if TOF present. Argument: number of sigmas

PWGLF/TableProducer/Strangeness/strangenesstofpid.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ struct strangenesstofpid {
823823
const o2::math_utils::Point3D<float> trackVertex{trackCollision.posX(), trackCollision.posY(), trackCollision.posZ()};
824824
o2::track::TrackLTIntegral ltIntegral;
825825
bool successPropag = o2::base::Propagator::Instance()->propagateToDCA(trackVertex, posTrack, d_bz, 2.f, o2::base::Propagator::MatCorrType::USEMatCorrNONE, nullptr, &ltIntegral);
826-
if(doQA){
826+
if (doQA) {
827827
histos.fill(HIST("hPropagationBookkeeping"), kPropagPosV0, static_cast<float>(successPropag));
828828
}
829829
if (successPropag) {
@@ -901,7 +901,7 @@ struct strangenesstofpid {
901901
const o2::math_utils::Point3D<float> trackVertex{trackCollision.posX(), trackCollision.posY(), trackCollision.posZ()};
902902
o2::track::TrackLTIntegral ltIntegral;
903903
bool successPropag = o2::base::Propagator::Instance()->propagateToDCA(trackVertex, negTrack, d_bz, 2.f, o2::base::Propagator::MatCorrType::USEMatCorrNONE, nullptr, &ltIntegral);
904-
if(doQA){
904+
if (doQA) {
905905
histos.fill(HIST("hPropagationBookkeeping"), kPropagNegV0, static_cast<float>(successPropag));
906906
}
907907
if (successPropag) {
@@ -1096,7 +1096,7 @@ struct strangenesstofpid {
10961096
const o2::math_utils::Point3D<float> trackVertex{trackCollision.posX(), trackCollision.posY(), trackCollision.posZ()};
10971097
o2::track::TrackLTIntegral ltIntegral;
10981098
bool successPropag = o2::base::Propagator::Instance()->propagateToDCA(trackVertex, posTrack, d_bz, 2.f, o2::base::Propagator::MatCorrType::USEMatCorrNONE, nullptr, &ltIntegral);
1099-
if(doQA){
1099+
if (doQA) {
11001100
histos.fill(HIST("hPropagationBookkeeping"), kPropagPosCasc, static_cast<float>(successPropag));
11011101
}
11021102
if (successPropag) {
@@ -1188,7 +1188,7 @@ struct strangenesstofpid {
11881188
const o2::math_utils::Point3D<float> trackVertex{trackCollision.posX(), trackCollision.posY(), trackCollision.posZ()};
11891189
o2::track::TrackLTIntegral ltIntegral;
11901190
bool successPropag = o2::base::Propagator::Instance()->propagateToDCA(trackVertex, negTrack, d_bz, 2.f, o2::base::Propagator::MatCorrType::USEMatCorrNONE, nullptr, &ltIntegral);
1191-
if(doQA){
1191+
if (doQA) {
11921192
histos.fill(HIST("hPropagationBookkeeping"), kPropagNegCasc, static_cast<float>(successPropag));
11931193
}
11941194
if (successPropag) {
@@ -1280,7 +1280,7 @@ struct strangenesstofpid {
12801280
const o2::math_utils::Point3D<float> trackVertex{trackCollision.posX(), trackCollision.posY(), trackCollision.posZ()};
12811281
o2::track::TrackLTIntegral ltIntegral;
12821282
bool successPropag = o2::base::Propagator::Instance()->propagateToDCA(trackVertex, bachTrack, d_bz, 2.f, o2::base::Propagator::MatCorrType::USEMatCorrNONE, nullptr, &ltIntegral);
1283-
if(doQA){
1283+
if (doQA) {
12841284
histos.fill(HIST("hPropagationBookkeeping"), kPropagBachCasc, static_cast<float>(successPropag));
12851285
}
12861286
if (successPropag) {

0 commit comments

Comments
 (0)