Skip to content

Commit b5c8ed5

Browse files
authored
Please consider the following formatting changes (#463)
1 parent 49e8d35 commit b5c8ed5

File tree

3 files changed

+172
-162
lines changed

3 files changed

+172
-162
lines changed

PWGLF/DataModel/LFStrangenessPIDTables.h

Lines changed: 60 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ DECLARE_SOA_TABLE(DauTrackTOFPIDs, "AOD", "DAUTRACKTOFPID", // raw table (for po
4747

4848
namespace v0data
4949
{
50-
// define constants for NSigma operation
51-
const float kNoTOFValue = -1e+6;
50+
// define constants for NSigma operation
51+
const float kNoTOFValue = -1e+6;
5252
const float kEpsilon = 1e-4;
5353

5454
// ==== TOF INFORMATION ===
@@ -85,42 +85,42 @@ DECLARE_SOA_COLUMN(TOFNSigmaK0PiMinus, tofNSigmaK0PiMinus, float); //! negative
8585

8686
// dynamics based on n-sigmas with use-only-if-tof-present logic
8787
DECLARE_SOA_DYNAMIC_COLUMN(TofLambdaCompatibility, tofLambdaCompatibility, //! compatibility with being lambda, checked only if TOF present. Argument: number of sigmas
88-
[](float tofNSigmaLaPr, float tofNSigmaLaPi, float nsigma) -> float {
89-
bool compatible = true;
90-
if(std::abs(tofNSigmaLaPr-kNoTOFValue)>kEpsilon && std::abs(tofNSigmaLaPr)>nsigma){
91-
compatible = false; // reject only if info present and incompatible
92-
}
93-
if(std::abs(tofNSigmaLaPi-kNoTOFValue)>kEpsilon && std::abs(tofNSigmaLaPi)>nsigma){
94-
compatible = false; // reject only if info present and incompatible
95-
}
96-
return compatible;
97-
});
88+
[](float tofNSigmaLaPr, float tofNSigmaLaPi, float nsigma) -> float {
89+
bool compatible = true;
90+
if (std::abs(tofNSigmaLaPr - kNoTOFValue) > kEpsilon && std::abs(tofNSigmaLaPr) > nsigma) {
91+
compatible = false; // reject only if info present and incompatible
92+
}
93+
if (std::abs(tofNSigmaLaPi - kNoTOFValue) > kEpsilon && std::abs(tofNSigmaLaPi) > nsigma) {
94+
compatible = false; // reject only if info present and incompatible
95+
}
96+
return compatible;
97+
});
9898

9999
// dynamics based on n-sigmas with use-only-if-tof-present logic
100100
DECLARE_SOA_DYNAMIC_COLUMN(TofAntiLambdaCompatibility, tofAntiLambdaCompatibility, //! compatibility with being lambda, checked only if TOF present. Argument: number of sigmas
101-
[](float tofNSigmaALaPr, float tofNSigmaALaPi, float nsigma) -> float {
102-
bool compatible = true;
103-
if(std::abs(tofNSigmaALaPr-kNoTOFValue)>kEpsilon && std::abs(tofNSigmaALaPr)>nsigma){
104-
compatible = false; // reject only if info present and incompatible
105-
}
106-
if(std::abs(tofNSigmaALaPi-kNoTOFValue)>kEpsilon && std::abs(tofNSigmaALaPi)>nsigma){
107-
compatible = false; // reject only if info present and incompatible
108-
}
109-
return compatible;
110-
});
101+
[](float tofNSigmaALaPr, float tofNSigmaALaPi, float nsigma) -> float {
102+
bool compatible = true;
103+
if (std::abs(tofNSigmaALaPr - kNoTOFValue) > kEpsilon && std::abs(tofNSigmaALaPr) > nsigma) {
104+
compatible = false; // reject only if info present and incompatible
105+
}
106+
if (std::abs(tofNSigmaALaPi - kNoTOFValue) > kEpsilon && std::abs(tofNSigmaALaPi) > nsigma) {
107+
compatible = false; // reject only if info present and incompatible
108+
}
109+
return compatible;
110+
});
111111

112112
// dynamics based on n-sigmas with use-only-if-tof-present logic
113113
DECLARE_SOA_DYNAMIC_COLUMN(TofK0ShortCompatibility, tofK0ShortCompatibility, //! compatibility with being lambda, checked only if TOF present. Argument: number of sigmas
114-
[](float tofNSigmaK0PiPlus, float tofNSigmaK0PiMinus, float nsigma) -> float {
115-
bool compatible = true;
116-
if(std::abs(tofNSigmaK0PiPlus-kNoTOFValue)>kEpsilon && std::abs(tofNSigmaK0PiPlus)>nsigma){
117-
compatible = false; // reject only if info present and incompatible
118-
}
119-
if(std::abs(tofNSigmaK0PiMinus-kNoTOFValue)>kEpsilon && std::abs(tofNSigmaK0PiMinus)>nsigma){
120-
compatible = false; // reject only if info present and incompatible
121-
}
122-
return compatible;
123-
});
114+
[](float tofNSigmaK0PiPlus, float tofNSigmaK0PiMinus, float nsigma) -> float {
115+
bool compatible = true;
116+
if (std::abs(tofNSigmaK0PiPlus - kNoTOFValue) > kEpsilon && std::abs(tofNSigmaK0PiPlus) > nsigma) {
117+
compatible = false; // reject only if info present and incompatible
118+
}
119+
if (std::abs(tofNSigmaK0PiMinus - kNoTOFValue) > kEpsilon && std::abs(tofNSigmaK0PiMinus) > nsigma) {
120+
compatible = false; // reject only if info present and incompatible
121+
}
122+
return compatible;
123+
});
124124

125125
// beta values
126126
DECLARE_SOA_COLUMN(TofBetaLambda, tofBetaLambda, float); //! beta value with Lambda hypothesis
@@ -170,8 +170,8 @@ DECLARE_SOA_TABLE(V0TOFNSigmas, "AOD", "V0TOFNSIGMA", // processed NSigma table
170170

171171
namespace cascdata
172172
{
173-
// define constants for NSigma operation
174-
const float kNoTOFValue = -1e+6;
173+
// define constants for NSigma operation
174+
const float kNoTOFValue = -1e+6;
175175
const float kEpsilon = 1e-4;
176176

177177
// lengths as stored in the AO2D for TOF calculations
@@ -207,35 +207,34 @@ DECLARE_SOA_COLUMN(TOFNSigmaOmKa, tofNSigmaOmKa, float); //! bachelor track
207207

208208
// dynamics based on n-sigmas with use-only-if-tof-present logic
209209
DECLARE_SOA_DYNAMIC_COLUMN(TofXiCompatibility, tofXiCompatibility, //! compatibility with being lambda, checked only if TOF present. Argument: number of sigmas
210-
[](float tofNSigmaXiLaPr, float tofNSigmaXiLaPi, float tofNSigmaXiPi, float nsigma) -> float {
211-
bool compatible = true;
212-
if(std::abs(tofNSigmaXiLaPr-kNoTOFValue)>kEpsilon && std::abs(tofNSigmaXiLaPr)>nsigma){
213-
compatible = false; // reject only if info present and incompatible
214-
}
215-
if(std::abs(tofNSigmaXiLaPi-kNoTOFValue)>kEpsilon && std::abs(tofNSigmaXiLaPi)>nsigma){
216-
compatible = false; // reject only if info present and incompatible
217-
}
218-
if(std::abs(tofNSigmaXiPi-kNoTOFValue)>kEpsilon && std::abs(tofNSigmaXiPi)>nsigma){
219-
compatible = false; // reject only if info present and incompatible
220-
}
221-
return compatible;
222-
});
210+
[](float tofNSigmaXiLaPr, float tofNSigmaXiLaPi, float tofNSigmaXiPi, float nsigma) -> float {
211+
bool compatible = true;
212+
if (std::abs(tofNSigmaXiLaPr - kNoTOFValue) > kEpsilon && std::abs(tofNSigmaXiLaPr) > nsigma) {
213+
compatible = false; // reject only if info present and incompatible
214+
}
215+
if (std::abs(tofNSigmaXiLaPi - kNoTOFValue) > kEpsilon && std::abs(tofNSigmaXiLaPi) > nsigma) {
216+
compatible = false; // reject only if info present and incompatible
217+
}
218+
if (std::abs(tofNSigmaXiPi - kNoTOFValue) > kEpsilon && std::abs(tofNSigmaXiPi) > nsigma) {
219+
compatible = false; // reject only if info present and incompatible
220+
}
221+
return compatible;
222+
});
223223

224224
DECLARE_SOA_DYNAMIC_COLUMN(TofOmegaCompatibility, tofOmegaCompatibility, //! compatibility with being lambda, checked only if TOF present. Argument: number of sigmas
225-
[](float tofNSigmaOmLaPr, float tofNSigmaOmLaPi, float tofNSigmaOmKa, float nsigma) -> float {
226-
bool compatible = true;
227-
if(std::abs(tofNSigmaOmLaPr-kNoTOFValue)>kEpsilon && std::abs(tofNSigmaOmLaPr)>nsigma){
228-
compatible = false; // reject only if info present and incompatible
229-
}
230-
if(std::abs(tofNSigmaOmLaPi-kNoTOFValue)>kEpsilon && std::abs(tofNSigmaOmLaPi)>nsigma){
231-
compatible = false; // reject only if info present and incompatible
232-
}
233-
if(std::abs(tofNSigmaOmKa-kNoTOFValue)>kEpsilon && std::abs(tofNSigmaOmKa)>nsigma){
234-
compatible = false; // reject only if info present and incompatible
235-
}
236-
return compatible;
237-
});
238-
225+
[](float tofNSigmaOmLaPr, float tofNSigmaOmLaPi, float tofNSigmaOmKa, float nsigma) -> float {
226+
bool compatible = true;
227+
if (std::abs(tofNSigmaOmLaPr - kNoTOFValue) > kEpsilon && std::abs(tofNSigmaOmLaPr) > nsigma) {
228+
compatible = false; // reject only if info present and incompatible
229+
}
230+
if (std::abs(tofNSigmaOmLaPi - kNoTOFValue) > kEpsilon && std::abs(tofNSigmaOmLaPi) > nsigma) {
231+
compatible = false; // reject only if info present and incompatible
232+
}
233+
if (std::abs(tofNSigmaOmKa - kNoTOFValue) > kEpsilon && std::abs(tofNSigmaOmKa) > nsigma) {
234+
compatible = false; // reject only if info present and incompatible
235+
}
236+
return compatible;
237+
});
239238

240239
} // namespace cascdata
241240

0 commit comments

Comments
 (0)