Skip to content

Commit 45987a4

Browse files
author
Cristian Moscatelli
committed
Clang-format correction
1 parent 9ea81c0 commit 45987a4

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

PWGLF/TableProducer/Nuspex/nucleiSpectra.cxx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@
5252
#include "ReconstructionDataFormats/Track.h"
5353

5454
#include <Math/Vector4D.h>
55+
#include <TDatabasePDG.h>
5556
#include <TMCProcess.h>
5657
#include <TPDGCode.h> // for PDG codes
57-
#include <TRandom3.h>
58-
#include <TDatabasePDG.h>
5958
#include <TParticlePDG.h>
59+
#include <TRandom3.h>
6060

6161
#include <algorithm>
6262
#include <cmath>
@@ -922,7 +922,7 @@ struct nucleiSpectra {
922922
bool selectINELgt0 = cfgEventSelections->get(nuclei::evSel::kINELgt0);
923923
std::vector<bool> goodCollisions(mcCollisions.size(), false);
924924

925-
auto *pdgDB = TDatabasePDG::Instance(); // Useful for evaluating the particle charge
925+
auto* pdgDB = TDatabasePDG::Instance(); // Useful for evaluating the particle charge
926926

927927
for (const auto& c : mcCollisions) {
928928

@@ -950,7 +950,7 @@ struct nucleiSpectra {
950950
if (selectINELgt0 && !acceptEvent) {
951951
if (std::abs(p.eta()) < 1.0f) {
952952
auto* pdg = pdgDB->GetParticle(p.pdgCode());
953-
if (pdg && pdg->Charge()!= 0)
953+
if (pdg && pdg->Charge() != 0)
954954
acceptEvent = true;
955955
}
956956
}
@@ -971,8 +971,10 @@ struct nucleiSpectra {
971971
}
972972

973973
int mcId = collision.mcCollisionId();
974-
if (mcId < 0) continue;
975-
if(!goodCollisions[mcId]) continue;
974+
if (mcId < 0)
975+
continue;
976+
if (!goodCollisions[mcId])
977+
continue;
976978

977979
const auto& slicedTracks = tracks.sliceBy(tracksPerCollisions, collision.globalIndex());
978980
fillDataInfo(collision, slicedTracks);

0 commit comments

Comments
 (0)