Skip to content

Commit e0ebb3b

Browse files
authored
Please consider the following formatting changes (#377)
1 parent 5386831 commit e0ebb3b

File tree

4 files changed

+47
-47
lines changed

4 files changed

+47
-47
lines changed

Common/LegacyDataQA/otfv0qa.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ struct OTFV0Qa {
4949
histos.fill(HIST("hCandidates"), v0s.size());
5050
for (auto const& v0 : v0s) {
5151
histos.fill(HIST("hGammaMass"), v0.mass());
52-
if(v0.mass()<maxGammaMassForXYplot){
5352
if (v0.mass() < maxGammaMassForXYplot) {
54-
histos.fill(HIST("h2dPosition"), v0.x(), v0.y());
53+
if (v0.mass() < maxGammaMassForXYplot) {
54+
histos.fill(HIST("h2dPosition"), v0.x(), v0.y());
55+
}
5556
}
56-
}
5757
}
5858
};
5959

Common/LegacyDataQA/tpcpidqa.cxx

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111
//
12-
// This task converts tiny PID tables into full PID tables.
13-
// It is meant to be used with Run 2 converted data to maintain
14-
// full compatibility with any task that may subscribe to the Full
15-
// tables (at the cost of some memory consumption).
16-
// It is also able to produce very simple QA plots on the stored
17-
// quantities (optionally disabled for simplicity)
18-
//
12+
// This task converts tiny PID tables into full PID tables.
13+
// It is meant to be used with Run 2 converted data to maintain
14+
// full compatibility with any task that may subscribe to the Full
15+
// tables (at the cost of some memory consumption).
16+
// It is also able to produce very simple QA plots on the stored
17+
// quantities (optionally disabled for simplicity)
18+
//
1919
// Warning: expected resolution is NOT provided.
2020

2121
#include "Framework/runDataProcessing.h"
@@ -81,33 +81,33 @@ struct TpcPidQa {
8181
void process(tinyPidTracks const& tracks)
8282
{
8383
for (const auto& track : tracks) {
84-
if(mEnabledTables[kPidEl]){
85-
histos.fill(HIST("hNSigmaVsPTotEl"), track.p(), track.tpcNSigmaEl());
84+
if (mEnabledTables[kPidEl]) {
85+
histos.fill(HIST("hNSigmaVsPTotEl"), track.p(), track.tpcNSigmaEl());
86+
}
87+
if (mEnabledTables[kPidMu]) {
88+
histos.fill(HIST("hNSigmaVsPTotMu"), track.p(), track.tpcNSigmaMu());
89+
}
90+
if (mEnabledTables[kPidPi]) {
91+
histos.fill(HIST("hNSigmaVsPTotPi"), track.p(), track.tpcNSigmaPi());
92+
}
93+
if (mEnabledTables[kPidKa]) {
94+
histos.fill(HIST("hNSigmaVsPTotKa"), track.p(), track.tpcNSigmaKa());
8695
}
87-
if(mEnabledTables[kPidMu]){
88-
histos.fill(HIST("hNSigmaVsPTotMu"), track.p(), track.tpcNSigmaMu());
96+
if (mEnabledTables[kPidPr]) {
97+
histos.fill(HIST("hNSigmaVsPTotPr"), track.p(), track.tpcNSigmaPr());
8998
}
90-
if(mEnabledTables[kPidPi]){
91-
histos.fill(HIST("hNSigmaVsPTotPi"), track.p(), track.tpcNSigmaPi());
99+
if (mEnabledTables[kPidDe]) {
100+
histos.fill(HIST("hNSigmaVsPTotDe"), track.p(), track.tpcNSigmaDe());
92101
}
93-
if(mEnabledTables[kPidKa]){
94-
histos.fill(HIST("hNSigmaVsPTotKa"), track.p(), track.tpcNSigmaKa());
102+
if (mEnabledTables[kPidTr]) {
103+
histos.fill(HIST("hNSigmaVsPTotTr"), track.p(), track.tpcNSigmaTr());
95104
}
96-
if(mEnabledTables[kPidPr]){
97-
histos.fill(HIST("hNSigmaVsPTotPr"), track.p(), track.tpcNSigmaPr());
105+
if (mEnabledTables[kPidHe]) {
106+
histos.fill(HIST("hNSigmaVsPTotHe"), track.p(), track.tpcNSigmaHe());
98107
}
99-
if(mEnabledTables[kPidDe]){
100-
histos.fill(HIST("hNSigmaVsPTotDe"), track.p(), track.tpcNSigmaDe());
108+
if (mEnabledTables[kPidAl]) {
109+
histos.fill(HIST("hNSigmaVsPTotAl"), track.p(), track.tpcNSigmaAl());
101110
}
102-
if(mEnabledTables[kPidTr]){
103-
histos.fill(HIST("hNSigmaVsPTotTr"), track.p(), track.tpcNSigmaTr());
104-
}
105-
if(mEnabledTables[kPidHe]){
106-
histos.fill(HIST("hNSigmaVsPTotHe"), track.p(), track.tpcNSigmaHe());
107-
}
108-
if(mEnabledTables[kPidAl]){
109-
histos.fill(HIST("hNSigmaVsPTotAl"), track.p(), track.tpcNSigmaAl());
110-
}
111111
}
112112
}
113113
};

Common/TableProducer/Converters/run2TinyToFullPID.cxx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111
//
12-
// This task converts tiny PID tables into full PID tables.
13-
// It is meant to be used with Run 2 converted data to maintain
14-
// full compatibility with any task that may subscribe to the Full
15-
// tables (at the cost of some memory consumption).
16-
// It is also able to produce very simple QA plots on the stored
17-
// quantities (optionally disabled for simplicity)
18-
//
12+
// This task converts tiny PID tables into full PID tables.
13+
// It is meant to be used with Run 2 converted data to maintain
14+
// full compatibility with any task that may subscribe to the Full
15+
// tables (at the cost of some memory consumption).
16+
// It is also able to produce very simple QA plots on the stored
17+
// quantities (optionally disabled for simplicity)
18+
//
1919
// Warning: expected resolution is NOT provided.
2020

2121
#include "Framework/runDataProcessing.h"
@@ -109,10 +109,10 @@ struct Run2TinyToFullPID {
109109
break;
110110
case kPidHe:
111111
pidTPCFullHe.reserve(tracks.size());
112-
break;
112+
break;
113113
case kPidAl:
114114
pidTPCFullAl.reserve(tracks.size());
115-
break;
115+
break;
116116
default:
117117
LOG(fatal) << "Unknown table requested: " << i;
118118
break;
@@ -145,10 +145,10 @@ struct Run2TinyToFullPID {
145145
break;
146146
case kPidHe:
147147
pidTPCFullHe(0.0f, track.tpcNSigmaHe());
148-
break;
148+
break;
149149
case kPidAl:
150150
pidTPCFullAl(0.0f, track.tpcNSigmaAl());
151-
break;
151+
break;
152152
default:
153153
LOG(fatal) << "Unknown table requested: " << i;
154154
break;

Common/TableProducer/multiplicityTable.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ struct MultiplicityTable {
134134
TProfile* hVtxZFT0A;
135135
TProfile* hVtxZFT0C;
136136
TProfile* hVtxZFDDA;
137-
137+
138138
TProfile* hVtxZFDDC;
139139
TProfile* hVtxZNTracks;
140140
std::vector<int> mEnabledTables; // Vector of enabled tables
@@ -166,10 +166,10 @@ struct MultiplicityTable {
166166
auto& workflows = context.services().get<o2::framework::RunningWorkflowInfo const>();
167167
for (auto const& device : workflows.devices) {
168168
for (auto const& input : device.inputs) {
169-
//input.print();
170-
TString devNam = device.name.c_str();
171-
TString inBin = input.matcher.binding.c_str();
172-
//TString subSpec = input.matcher.subspec.c_str();
169+
// input.print();
170+
TString devNam = device.name.c_str();
171+
TString inBin = input.matcher.binding.c_str();
172+
// TString subSpec = input.matcher.subspec.c_str();
173173
LOGF(info, Form("device %s input binding %s subspec", devNam.Data(), inBin.Data()));
174174
}
175175
}

0 commit comments

Comments
 (0)