Skip to content

Commit ac95b07

Browse files
committed
Please consider the following formatting changes
1 parent 87d6362 commit ac95b07

3 files changed

Lines changed: 14 additions & 15 deletions

File tree

DPG/Tasks/TPC/tpcSkimsTableCreator.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ struct TreeWriterTpcV0 {
258258
}
259259

260260
/// Apply a track quality selection with a filter!
261-
void processStandard(Colls::iterator const& collision, soa::Filtered<Trks> const& tracks, V0sWithID const& v0s, aod::BCsWithTimestamps const&)
261+
void processStandard(Colls::iterator const& collision, soa::Filtered<Trks> const& tracks, V0sWithID const& v0s, aod::BCsWithTimestamps const&)
262262
{
263263
/// Check event slection
264264
if (!isEventSelected(collision, tracks)) {
@@ -274,7 +274,7 @@ struct TreeWriterTpcV0 {
274274
for (const auto& v0 : v0s) {
275275
auto posTrack = v0.posTrack_as<soa::Filtered<Trks>>();
276276
auto negTrack = v0.negTrack_as<soa::Filtered<Trks>>();
277-
if (v0.v0bit() == -1){
277+
if (v0.v0bit() == -1) {
278278
continue;
279279
}
280280
// gamma
@@ -322,7 +322,7 @@ struct TreeWriterTpcV0 {
322322
PROCESS_SWITCH(TreeWriterTpcV0, processStandard, "Standard V0 Samples for PID", true);
323323

324324
Preslice<Trks> perCollisionTracks = aod::track::collisionId;
325-
//Preslice<aod::V0Datas> perCollisionV0s = aod::v0data::collisionId;
325+
// Preslice<aod::V0Datas> perCollisionV0s = aod::v0data::collisionId;
326326
Preslice<V0sWithID> perCollisionV0s = aod::v0data::collisionId;
327327
void processWithTrQA(Colls const& collisions, Trks const& myTracks, V0sWithID const& myV0s, MyBCTable const&, aod::TracksQA_002 const& tracksQA)
328328
{
@@ -352,7 +352,7 @@ struct TreeWriterTpcV0 {
352352
for (const auto& v0 : v0s) {
353353
auto posTrack = v0.posTrack_as<Trks>();
354354
auto negTrack = v0.negTrack_as<Trks>();
355-
if (v0.v0bit() == -1){
355+
if (v0.v0bit() == -1) {
356356
continue;
357357
}
358358
aod::TracksQA_002::iterator posTrackQA;

PWGDQ/DataModel/ReducedInfoTables.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,13 +1014,12 @@ using V0Bit = V0Bits::iterator;
10141014

10151015
namespace v0mapID
10161016
{
1017-
DECLARE_SOA_COLUMN(V0Bit, v0bit, int64_t); //!
1018-
} //namespace v0mapID
1017+
DECLARE_SOA_COLUMN(V0Bit, v0bit, int64_t); //!
1018+
} // namespace v0mapID
10191019

1020-
DECLARE_SOA_TABLE(V0MapID, "AOD", "V0MAPID",//!
1020+
DECLARE_SOA_TABLE(V0MapID, "AOD", "V0MAPID", //!
10211021
v0mapID::V0Bit);
10221022

1023-
10241023
namespace DalBits
10251024
{
10261025
DECLARE_SOA_COLUMN(DALITZBits, dalitzBits, uint8_t); //!

PWGDQ/Tasks/v0selector.cxx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ struct v0selector {
133133

134134
// Check for K0S candidates
135135
float q = cutAPK0SLow * std::sqrt(std::abs(1.0f - alpha * alpha / (cutAPK0SHigh * cutAPK0SHigh)));
136-
float qtop = cutQTK0SHigh * std::sqrt(std::abs(1.0f - alpha * alpha / (cutAPK0SHighTop * cutAPK0SHighTop)));
137-
if ((qt > cutQTK0SLow) && (qt < cutQTK0SHigh) && (qt > q) && (qt < qtop) ) {
136+
float qtop = cutQTK0SHigh * std::sqrt(std::abs(1.0f - alpha * alpha / (cutAPK0SHighTop * cutAPK0SHighTop)));
137+
if ((qt > cutQTK0SLow) && (qt < cutQTK0SHigh) && (qt > q) && (qt < qtop)) {
138138
return kK0S;
139139
}
140140

@@ -206,7 +206,7 @@ struct v0selector {
206206

207207
std::vector<int64_t> v0pidmap;
208208
v0pidmap.clear();
209-
v0pidmap.resize(V0s.size(),-1);
209+
v0pidmap.resize(V0s.size(), -1);
210210

211211
for (auto& V0 : V0s) {
212212
// if (!(V0.posTrack_as<FullTracksExt>().trackType() & o2::aod::track::TPCrefit)) {
@@ -323,7 +323,7 @@ struct v0selector {
323323
if (mGamma < v0max_mee && std::abs(V0.posTrack_as<FullTracksExt>().tpcNSigmaEl()) < cutNsigmaElTPC && std::abs(V0.negTrack_as<FullTracksExt>().tpcNSigmaEl()) < cutNsigmaElTPC && std::abs(psipair) < maxpsipair) {
324324
pidmap[V0.posTrackId()] |= (uint8_t(1) << kGamma);
325325
pidmap[V0.negTrackId()] |= (uint8_t(1) << kGamma);
326-
v0pidmap[V0.globalIndex()]= kGamma;
326+
v0pidmap[V0.globalIndex()] = kGamma;
327327
if (fillhisto) {
328328
registry.fill(HIST("hGammaRxy"), V0.x(), V0.y());
329329
}
@@ -338,7 +338,7 @@ struct v0selector {
338338
if ((0.48 < mK0S && mK0S < 0.51) && std::abs(V0.posTrack_as<FullTracksExt>().tpcNSigmaPi()) < cutNsigmaPiTPC && std::abs(V0.negTrack_as<FullTracksExt>().tpcNSigmaPi()) < cutNsigmaPiTPC) {
339339
pidmap[V0.posTrackId()] |= (uint8_t(1) << kK0S);
340340
pidmap[V0.negTrackId()] |= (uint8_t(1) << kK0S);
341-
v0pidmap[V0.globalIndex()]= kK0S;
341+
v0pidmap[V0.globalIndex()] = kK0S;
342342
}
343343
} else if (v0id == kLambda) { // L->p + pi-
344344
if (fillhisto) {
@@ -347,7 +347,7 @@ struct v0selector {
347347
if (v0id == kLambda && (1.110 < mLambda && mLambda < 1.120) && std::abs(V0.posTrack_as<FullTracksExt>().tpcNSigmaPr()) < cutNsigmaPrTPC && std::abs(V0.negTrack_as<FullTracksExt>().tpcNSigmaPi()) < cutNsigmaPiTPC) {
348348
pidmap[V0.posTrackId()] |= (uint8_t(1) << kLambda);
349349
pidmap[V0.negTrackId()] |= (uint8_t(1) << kLambda);
350-
v0pidmap[V0.globalIndex()]= kLambda;
350+
v0pidmap[V0.globalIndex()] = kLambda;
351351
}
352352
} else if (v0id == kAntiLambda) { // Lbar -> pbar + pi+
353353
if (fillhisto) {
@@ -356,7 +356,7 @@ struct v0selector {
356356
if ((1.110 < mAntiLambda && mAntiLambda < 1.120) && std::abs(V0.posTrack_as<FullTracksExt>().tpcNSigmaPi()) < cutNsigmaPiTPC && std::abs(V0.negTrack_as<FullTracksExt>().tpcNSigmaPr()) < cutNsigmaPrTPC) {
357357
pidmap[V0.posTrackId()] |= (uint8_t(1) << kAntiLambda);
358358
pidmap[V0.negTrackId()] |= (uint8_t(1) << kAntiLambda);
359-
v0pidmap[V0.globalIndex()]= kAntiLambda;
359+
v0pidmap[V0.globalIndex()] = kAntiLambda;
360360
}
361361
}
362362
// printf("posTrackId = %d\n",V0.posTrackId());

0 commit comments

Comments
 (0)