Skip to content

Commit

Permalink
MegaLinter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alibuild committed Jan 11, 2024
1 parent 7a93c87 commit 6a78460
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions DPG/Tasks/AOTTrack/PID/qaPIDTPC.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ struct tpcPidQa {
Configurable<bool> splitSignalPerCharge{"splitSignalPerCharge", true, "Split the signal per charge (reduces memory footprint if off)"};
Configurable<bool> enableDeDxPlot{"enableDeDxPlot", true, "Enables the dEdx plot (reduces memory footprint if off)"};
Configurable<int16_t> minTPCNcls{"minTPCNcls", 0, "Minimum number or TPC Clusters for tracks"};
ConfigurableAxis tpcNclsBins{"tpcNclsBins", {16, 0, 160}, "Bining in number of cluster in TPC" };
Configurable<bool> flagFourDemensionQA{"flagFourDemensionQA",false, "Flag to check the four dimension QA"};
ConfigurableAxis tpcNclsBins{"tpcNclsBins", {16, 0, 160}, "Bining in number of cluster in TPC"};
Configurable<bool> flagFourDemensionQA{"flagFourDemensionQA", false, "Flag to check the four dimension QA"};

template <o2::track::PID::ID id>
void initPerParticle(const AxisSpec& pAxis,
Expand Down Expand Up @@ -185,12 +185,12 @@ struct tpcPidQa {

const AxisSpec etaAxis{etaBins, "#it{#eta}"};
const AxisSpec tpcnclsAxis{tpcNclsBins, "TPC #cls"};

HistogramConfigSpec defaultParticleHists{HistType::kTHnSparseF, {pAxis, etaAxis, nSigmaAxis, tpcnclsAxis}};
if(flagFourDemensionQA){
if (flagFourDemensionQA) {
histos.add(hnsigma_eta[id].data(), axisTitle, defaultParticleHists);
}

if (!enableTOFHistos) { // Returning if the plots with TOF are not requested
return;
}
Expand All @@ -202,11 +202,11 @@ struct tpcPidQa {
histos.add(hexpsigma_wTOF[id].data(), "With TOF", kTH2F, {pAxis, expSigmaAxis});
histos.add(hnsigma_wTOF[id].data(), Form("With TOF %s", axisTitle), kTH2F, {pAxis, nSigmaAxis});

HistogramConfigSpec defaultParticleHists_wTOF{HistType::kTHnSparseF, {pAxis, etaAxis, nSigmaAxis, tpcnclsAxis} };
if(flagFourDemensionQA){
HistogramConfigSpec defaultParticleHists_wTOF{HistType::kTHnSparseF, {pAxis, etaAxis, nSigmaAxis, tpcnclsAxis}};
if (flagFourDemensionQA) {
histos.add(hnsigma_eta_wTOF[id].data(), Form("With TOF %s", axisTitle), defaultParticleHists_wTOF);
}

if (splitSignalPerCharge) {
histos.add(hnsigma_pt_wTOF[id].data(), Form("With TOF %s", axisTitle), kTH3F, {ptAxis, nSigmaAxis, chargeAxis});
histos.add(hsignal_wTOF[id].data(), "With TOF", kTH3F, {pAxis, dedxAxis, chargeAxis});
Expand Down Expand Up @@ -408,7 +408,7 @@ struct tpcPidQa {
// Fill histograms
histos.fill(HIST(hexpected[id]), t.tpcInnerParam(), t.tpcSignal() - diff);
histos.fill(HIST(hdelta[id]), t.tpcInnerParam(), diff);
if(flagFourDemensionQA){
if (flagFourDemensionQA) {
histos.fill(HIST(hnsigma_eta[id]), t.p(), t.eta(), nsigma, t.tpcNClsFindable());
}
if (splitSignalPerCharge) {
Expand All @@ -429,7 +429,7 @@ struct tpcPidQa {
const auto& nsigmatof = o2::aod::pidutils::tofNSigma<id>(t);
if (std::abs(nsigmatof) < 3.f) {
histos.fill(HIST(hnsigma_wTOF[id]), t.p(), nsigma);
if(flagFourDemensionQA){
if (flagFourDemensionQA) {
histos.fill(HIST(hnsigma_eta_wTOF[id]), t.p(), t.eta(), nsigma, t.tpcNClsFindable());
}
if (splitSignalPerCharge) {
Expand Down

0 comments on commit 6a78460

Please sign in to comment.