Skip to content

Commit cdb950b

Browse files
authored
Merge pull request #31 from alibuild/alibot-cleanup-10714
[PWGCF] Please consider the following formatting changes to #10714
2 parents 528a2d3 + 697f716 commit cdb950b

File tree

3 files changed

+11
-16
lines changed

3 files changed

+11
-16
lines changed

PWGCF/TwoParticleCorrelations/TableProducer/identifiedBfFilter.cxx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,6 @@ struct IdentifiedBfFilterTracks {
697697
Configurable<float> tofCut{"tofCut", 0.8, "Momentum under which we don't use TOF PID data"};
698698
Configurable<bool> makeNSigmaPlots{"makeNSigmaPlots", false, "Produce the N Sigma Plots for external storage. Default false"};
699699

700-
701700
OutputObj<TList> fOutput{"IdentifiedBfFilterTracksInfo", OutputObjHandlingPolicy::AnalysisObject};
702701
bool checkAmbiguousTracks = false;
703702

@@ -1033,18 +1032,18 @@ struct IdentifiedBfFilterTracks {
10331032
TString::Format("N(%s^{#plus}) #minus N(%s^{#minus}) distribution (truth);N(%s^{#plus}) #minus N(%s^{#minus})", speciesTitle[sp], speciesTitle[sp], speciesTitle[sp], speciesTitle[sp]).Data(),
10341033
79, -39.5, 39.5);
10351034
}
1036-
if(makeNSigmaPlots){
1035+
if (makeNSigmaPlots) {
10371036
for (int sp1 = 0; sp1 < kIdBfNoOfSpecies; ++sp1) {
10381037
for (int sp2 = 0; sp2 < kIdBfNoOfSpecies; ++sp2) {
10391038
fhTrueNSigmaTPC[sp1][sp2] = new TH2F(TString::Format("fhTrueNSigmaTPC%s_%s", speciesName[sp1], speciesName[sp2]).Data(),
1040-
TString::Format("N #sigma %s from TPC vs P for generated %s;N #sigma;p (GeV/c)", speciesTitle[sp1], speciesTitle[sp2]).Data(),
1041-
48, -6, 6,
1042-
ptbins, ptlow, ptup);
1039+
TString::Format("N #sigma %s from TPC vs P for generated %s;N #sigma;p (GeV/c)", speciesTitle[sp1], speciesTitle[sp2]).Data(),
1040+
48, -6, 6,
1041+
ptbins, ptlow, ptup);
10431042

10441043
fhTrueNSigmaTOF[sp1][sp2] = new TH2F(TString::Format("fhTrueNSigmaTOF%s_%s", speciesName[sp1], speciesName[sp2]).Data(),
1045-
TString::Format("N #sigma %s from TOF vs P for generated %s;N #sigma;p (GeV/c)", speciesTitle[sp1], speciesTitle[sp2]).Data(),
1046-
48, -6, 6,
1047-
ptbins, ptlow, ptup);
1044+
TString::Format("N #sigma %s from TOF vs P for generated %s;N #sigma;p (GeV/c)", speciesTitle[sp1], speciesTitle[sp2]).Data(),
1045+
48, -6, 6,
1046+
ptbins, ptlow, ptup);
10481047
}
10491048
}
10501049
}
@@ -1085,7 +1084,7 @@ struct IdentifiedBfFilterTracks {
10851084
fOutputList->Add(fhTrueNPosNegA[sp]);
10861085
fOutputList->Add(fhTrueDeltaNA[sp]);
10871086
}
1088-
if(makeNSigmaPlots){
1087+
if (makeNSigmaPlots) {
10891088
for (int sp1 = 0; sp1 < kIdBfNoOfSpecies; ++sp1) {
10901089
for (int sp2 = 0; sp2 < kIdBfNoOfSpecies; ++sp2) {
10911090
fOutputList->Add(fhTrueNSigmaTPC[sp1][sp2]);
@@ -1497,7 +1496,7 @@ inline MatchRecoGenSpecies IdentifiedBfFilterTracks::identifyTrack(TrackObject c
14971496
float nsigmas[kIdBfNoOfSpecies];
14981497

14991498
if constexpr (framework::has_type_v<aod::mctracklabel::McParticleId, typename TrackObject::all_columns>) {
1500-
if(makeNSigmaPlots){
1499+
if (makeNSigmaPlots) {
15011500
identifyRealNSigma(track.template mcParticle_as<aod::McParticles>(), actualTPCNSigma, actualTOFNSigma, track.tpcInnerParam());
15021501
}
15031502
}

PWGCF/TwoParticleCorrelations/TableProducer/identifiedBfFilter.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include "PWGCF/Core/AnalysisConfigurableCuts.h"
3535
#include "MathUtils/Utils.h"
3636

37-
3837
namespace o2
3938

4039
{
@@ -67,8 +66,6 @@ enum MatchRecoGenSpecies {
6766
kWrongSpecies = -1
6867
};
6968

70-
71-
7269
/// \enum SpeciesPairMatch
7370
/// \brief The species pair considered by the matching test
7471
enum SpeciesPairMatch {
@@ -241,7 +238,6 @@ float particleMaxDCAxy = 999.9f;
241238
float particleMaxDCAZ = 999.9f;
242239
bool traceCollId0 = false;
243240

244-
245241
inline TriggerSelectionType getTriggerSelection(std::string const& triggstr)
246242
{
247243
if (triggstr.empty() || triggstr == "MB") {

PWGCF/TwoParticleCorrelations/Tasks/identifiedbf.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ struct IdentifiedbfTask {
9595
std::vector<TH1F*> fhN1VsPt{nch, nullptr}; //!<! weighted single particle distribution vs \f$p_T\f$, for the different species
9696
std::vector<TH2F*> fhN1VsEtaPhi{nch, nullptr}; //!<! weighted single particle distribution vs \f$\eta,\;\phi\f$, for the different species
9797
std::vector<TH2F*> fhSum1PtVsEtaPhi{nch, nullptr}; //!<! accumulated sum of weighted \f$p_T\f$ vs \f$\eta,\;\phi\f$, for the different species
98-
std::vector<TH3F*> fhN1VsZEtaPhiPt{nch + 1, nullptr}; //!<! single particle distribution vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
98+
std::vector<TH3F*> fhN1VsZEtaPhiPt{nch + 1, nullptr}; //!<! single particle distribution vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
9999
std::vector<TH3F*> fhN1VsZEtaPhiPtPrimary{nch, nullptr}; //!<! single particle distribution of primary particles vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
100100
std::vector<TH3F*> fhN1VsZEtaPhiPtSecondary{nch, nullptr}; //!<! single particle distribution of primary particles vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
101101
std::vector<TH3F*> fhSum1PtVsZEtaPhiPt{nch, nullptr}; //!<! accumulated sum of weighted \f$p_T\f$ vs \f$\mbox{vtx}_z,\; \eta,\;\phi,\;p_T\f$, for the different species
@@ -627,7 +627,7 @@ struct IdentifiedbfTask {
627627
fOutputList->Add(fhSum1PtVsZEtaPhiPt[i]);
628628
}
629629
}
630-
if(!smallsingles){
630+
if (!smallsingles) {
631631
TH1::SetDefaultSumw2(false);
632632
fhN1VsZEtaPhiPt[nch] = new TH3F(
633633
TString::Format("n1_%s_vsZ_vsEtaPhi_vsPt", "h"),

0 commit comments

Comments
 (0)