Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Common/LegacyDataQA/otfv0qa.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check warning on line 1 in Common/LegacyDataQA/otfv0qa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Provide mandatory file documentation.

Check warning on line 1 in Common/LegacyDataQA/otfv0qa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/workflow-file]

Name of a workflow file must match the name of the main struct in it (without the PWG prefix). (Class implementation files should be in "Core" directories.)
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand All @@ -8,7 +8,7 @@
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.

Check warning on line 11 in Common/LegacyDataQA/otfv0qa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.

Check warning on line 11 in Common/LegacyDataQA/otfv0qa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \brief is missing, incorrect or misplaced.

Check warning on line 11 in Common/LegacyDataQA/otfv0qa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \author is missing, incorrect or misplaced.
#include "Framework/runDataProcessing.h"
#include "Framework/AnalysisTask.h"
#include "Framework/AnalysisDataModel.h"
Expand Down Expand Up @@ -49,11 +49,11 @@
histos.fill(HIST("hCandidates"), v0s.size());
for (auto const& v0 : v0s) {
histos.fill(HIST("hGammaMass"), v0.mass());
if(v0.mass()<maxGammaMassForXYplot){
if (v0.mass() < maxGammaMassForXYplot) {
histos.fill(HIST("h2dPosition"), v0.x(), v0.y());
if (v0.mass() < maxGammaMassForXYplot) {
histos.fill(HIST("h2dPosition"), v0.x(), v0.y());
}
}
}
}
};

Expand Down
56 changes: 28 additions & 28 deletions Common/LegacyDataQA/tpcpidqa.cxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.

Check warning on line 1 in Common/LegacyDataQA/tpcpidqa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Provide mandatory file documentation.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
Expand All @@ -8,14 +8,14 @@
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
//

Check warning on line 11 in Common/LegacyDataQA/tpcpidqa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \file is missing, incorrect or misplaced.

Check warning on line 11 in Common/LegacyDataQA/tpcpidqa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \brief is missing, incorrect or misplaced.

Check warning on line 11 in Common/LegacyDataQA/tpcpidqa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[doc/file]

Documentation for \author is missing, incorrect or misplaced.
// This task converts tiny PID tables into full PID tables.
// It is meant to be used with Run 2 converted data to maintain
// full compatibility with any task that may subscribe to the Full
// tables (at the cost of some memory consumption).
// It is also able to produce very simple QA plots on the stored
// quantities (optionally disabled for simplicity)
//
// This task converts tiny PID tables into full PID tables.
// It is meant to be used with Run 2 converted data to maintain
// full compatibility with any task that may subscribe to the Full
// tables (at the cost of some memory consumption).
// It is also able to produce very simple QA plots on the stored
// quantities (optionally disabled for simplicity)
//
// Warning: expected resolution is NOT provided.

#include "Framework/runDataProcessing.h"
Expand All @@ -29,7 +29,7 @@

using tinyPidTracks = soa::Join<aod::Tracks, aod::pidTPCFullEl, aod::pidTPCFullMu, aod::pidTPCFullPi, aod::pidTPCFullKa, aod::pidTPCFullPr, aod::pidTPCFullDe, aod::pidTPCFullTr, aod::pidTPCFullHe, aod::pidTPCFullAl>;

static constexpr int nParameters = 1;

Check warning on line 32 in Common/LegacyDataQA/tpcpidqa.cxx

View workflow job for this annotation

GitHub Actions / O2 linter

[name/constexpr-constant]

Use UpperCamelCase for names of constexpr constants. Names of special constants may be prefixed with "k".
static const std::vector<std::string> tableNames{"Electron", // 0
"Muon", // 1
"Pion", // 2
Expand Down Expand Up @@ -81,33 +81,33 @@
void process(tinyPidTracks const& tracks)
{
for (const auto& track : tracks) {
if(mEnabledTables[kPidEl]){
histos.fill(HIST("hNSigmaVsPTotEl"), track.p(), track.tpcNSigmaEl());
if (mEnabledTables[kPidEl]) {
histos.fill(HIST("hNSigmaVsPTotEl"), track.p(), track.tpcNSigmaEl());
}
if (mEnabledTables[kPidMu]) {
histos.fill(HIST("hNSigmaVsPTotMu"), track.p(), track.tpcNSigmaMu());
}
if (mEnabledTables[kPidPi]) {
histos.fill(HIST("hNSigmaVsPTotPi"), track.p(), track.tpcNSigmaPi());
}
if (mEnabledTables[kPidKa]) {
histos.fill(HIST("hNSigmaVsPTotKa"), track.p(), track.tpcNSigmaKa());
}
if(mEnabledTables[kPidMu]){
histos.fill(HIST("hNSigmaVsPTotMu"), track.p(), track.tpcNSigmaMu());
if (mEnabledTables[kPidPr]) {
histos.fill(HIST("hNSigmaVsPTotPr"), track.p(), track.tpcNSigmaPr());
}
if(mEnabledTables[kPidPi]){
histos.fill(HIST("hNSigmaVsPTotPi"), track.p(), track.tpcNSigmaPi());
if (mEnabledTables[kPidDe]) {
histos.fill(HIST("hNSigmaVsPTotDe"), track.p(), track.tpcNSigmaDe());
}
if(mEnabledTables[kPidKa]){
histos.fill(HIST("hNSigmaVsPTotKa"), track.p(), track.tpcNSigmaKa());
if (mEnabledTables[kPidTr]) {
histos.fill(HIST("hNSigmaVsPTotTr"), track.p(), track.tpcNSigmaTr());
}
if(mEnabledTables[kPidPr]){
histos.fill(HIST("hNSigmaVsPTotPr"), track.p(), track.tpcNSigmaPr());
if (mEnabledTables[kPidHe]) {
histos.fill(HIST("hNSigmaVsPTotHe"), track.p(), track.tpcNSigmaHe());
}
if(mEnabledTables[kPidDe]){
histos.fill(HIST("hNSigmaVsPTotDe"), track.p(), track.tpcNSigmaDe());
if (mEnabledTables[kPidAl]) {
histos.fill(HIST("hNSigmaVsPTotAl"), track.p(), track.tpcNSigmaAl());
}
if(mEnabledTables[kPidTr]){
histos.fill(HIST("hNSigmaVsPTotTr"), track.p(), track.tpcNSigmaTr());
}
if(mEnabledTables[kPidHe]){
histos.fill(HIST("hNSigmaVsPTotHe"), track.p(), track.tpcNSigmaHe());
}
if(mEnabledTables[kPidAl]){
histos.fill(HIST("hNSigmaVsPTotAl"), track.p(), track.tpcNSigmaAl());
}
}
}
};
Expand Down
22 changes: 11 additions & 11 deletions Common/TableProducer/Converters/run2TinyToFullPID.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
//
// This task converts tiny PID tables into full PID tables.
// It is meant to be used with Run 2 converted data to maintain
// full compatibility with any task that may subscribe to the Full
// tables (at the cost of some memory consumption).
// It is also able to produce very simple QA plots on the stored
// quantities (optionally disabled for simplicity)
//
// This task converts tiny PID tables into full PID tables.
// It is meant to be used with Run 2 converted data to maintain
// full compatibility with any task that may subscribe to the Full
// tables (at the cost of some memory consumption).
// It is also able to produce very simple QA plots on the stored
// quantities (optionally disabled for simplicity)
//
// Warning: expected resolution is NOT provided.

#include "Framework/runDataProcessing.h"
Expand Down Expand Up @@ -109,10 +109,10 @@ struct Run2TinyToFullPID {
break;
case kPidHe:
pidTPCFullHe.reserve(tracks.size());
break;
break;
case kPidAl:
pidTPCFullAl.reserve(tracks.size());
break;
break;
default:
LOG(fatal) << "Unknown table requested: " << i;
break;
Expand Down Expand Up @@ -145,10 +145,10 @@ struct Run2TinyToFullPID {
break;
case kPidHe:
pidTPCFullHe(0.0f, track.tpcNSigmaHe());
break;
break;
case kPidAl:
pidTPCFullAl(0.0f, track.tpcNSigmaAl());
break;
break;
default:
LOG(fatal) << "Unknown table requested: " << i;
break;
Expand Down
10 changes: 5 additions & 5 deletions Common/TableProducer/multiplicityTable.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ struct MultiplicityTable {
TProfile* hVtxZFT0A;
TProfile* hVtxZFT0C;
TProfile* hVtxZFDDA;

TProfile* hVtxZFDDC;
TProfile* hVtxZNTracks;
std::vector<int> mEnabledTables; // Vector of enabled tables
Expand Down Expand Up @@ -166,10 +166,10 @@ struct MultiplicityTable {
auto& workflows = context.services().get<o2::framework::RunningWorkflowInfo const>();
for (auto const& device : workflows.devices) {
for (auto const& input : device.inputs) {
//input.print();
TString devNam = device.name.c_str();
TString inBin = input.matcher.binding.c_str();
//TString subSpec = input.matcher.subspec.c_str();
// input.print();
TString devNam = device.name.c_str();
TString inBin = input.matcher.binding.c_str();
// TString subSpec = input.matcher.subspec.c_str();
LOGF(info, Form("device %s input binding %s subspec", devNam.Data(), inBin.Data()));
}
}
Expand Down
Loading