Skip to content

Commit 9972e15

Browse files
authored
Please consider the following formatting changes (#433)
1 parent 08bcc95 commit 9972e15

File tree

2 files changed

+40
-40
lines changed

2 files changed

+40
-40
lines changed

Common/DataModel/SelectionStudyTables.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
///
1515
/// \author ALICE
1616

17-
#include <vector>
18-
1917
#include "Framework/ASoA.h"
2018
#include "Framework/AnalysisDataModel.h"
2119

20+
#include <vector>
21+
2222
#ifndef COMMON_DATAMODEL_SELECTIONSTUDYTABLES_H_
2323
#define COMMON_DATAMODEL_SELECTIONSTUDYTABLES_H_
2424

@@ -40,8 +40,8 @@ DECLARE_SOA_COLUMN(PtLambdaCs, ptLambdaCs, std::vector<float>);
4040
DECLARE_SOA_COLUMN(PtJPsis, ptJPsis, std::vector<float>);
4141
} // namespace selectionstudy
4242

43-
DECLARE_SOA_TABLE(PIDPts, "AOD", "PIDPTS", o2::soa::Index<>,
44-
o2::aod::selectionstudy::PtPions,
43+
DECLARE_SOA_TABLE(PIDPts, "AOD", "PIDPTS", o2::soa::Index<>,
44+
o2::aod::selectionstudy::PtPions,
4545
o2::aod::selectionstudy::PtKaons,
4646
o2::aod::selectionstudy::PtProtons,
4747
o2::aod::selectionstudy::PtK0s,

Common/TableProducer/selectionStudyTable.cxx

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@
1515
/// \author ALICE
1616
///
1717

18-
#include <vector>
19-
#include <algorithm>
20-
#include <map>
21-
#include <string>
18+
#include "Common/DataModel/SelectionStudyTables.h"
2219

23-
#include "Framework/ConfigParamSpec.h"
24-
#include "Framework/runDataProcessing.h"
25-
#include "Framework/AnalysisTask.h"
20+
#include "Framework/ASoAHelpers.h"
2621
#include "Framework/AnalysisDataModel.h"
22+
#include "Framework/AnalysisTask.h"
23+
#include "Framework/ConfigParamSpec.h"
2724
#include "Framework/HistogramRegistry.h"
28-
#include "Framework/ASoAHelpers.h"
2925
#include "Framework/O2DatabasePDGPlugin.h"
30-
#include "Common/DataModel/SelectionStudyTables.h"
26+
#include "Framework/runDataProcessing.h"
3127

28+
#include <algorithm>
29+
#include <map>
30+
#include <string>
31+
#include <vector>
3232

3333
using namespace o2;
3434
using namespace o2::framework;
@@ -39,18 +39,18 @@ struct SelectionStudyTable {
3939

4040
// could be done in a vector of vectors
4141
// left for future iteration
42-
std::vector<float> ptpi;
43-
std::vector<float> ptka;
44-
std::vector<float> ptpr;
45-
std::vector<float> ptk0;
46-
std::vector<float> ptla;
47-
std::vector<float> ptxi;
48-
std::vector<float> ptom;
49-
std::vector<float> ptph;
50-
std::vector<float> ptks;
51-
std::vector<float> ptd;
52-
std::vector<float> ptlc;
53-
std::vector<float> ptjp;
42+
std::vector<float> ptpi;
43+
std::vector<float> ptka;
44+
std::vector<float> ptpr;
45+
std::vector<float> ptk0;
46+
std::vector<float> ptla;
47+
std::vector<float> ptxi;
48+
std::vector<float> ptom;
49+
std::vector<float> ptph;
50+
std::vector<float> ptks;
51+
std::vector<float> ptd;
52+
std::vector<float> ptlc;
53+
std::vector<float> ptjp;
5454

5555
void init(InitContext&)
5656
{
@@ -71,54 +71,54 @@ struct SelectionStudyTable {
7171
ptlc.clear();
7272
ptjp.clear();
7373
for (auto const& mcPart : mcParticles) {
74-
if(std::fabs(mcPart.y())>0.5){
74+
if (std::fabs(mcPart.y()) > 0.5) {
7575
continue; // only do midrapidity particles
7676
}
7777

7878
// handle resonances first to make sure phys prim crit does not reject them
79-
if(mcPart.pdgCode()==333){
79+
if (mcPart.pdgCode() == 333) {
8080
ptph.push_back(mcPart.pt());
8181
}
82-
if(std::abs(mcPart.pdgCode())==313){
82+
if (std::abs(mcPart.pdgCode()) == 313) {
8383
ptks.push_back(mcPart.pt());
8484
}
8585

8686
// resonances handled, move to primaries
8787
if (!mcPart.isPhysicalPrimary()) {
8888
continue;
8989
}
90-
if(std::abs(mcPart.pdgCode())==211){
90+
if (std::abs(mcPart.pdgCode()) == 211) {
9191
ptpi.push_back(mcPart.pt());
9292
}
93-
if(std::abs(mcPart.pdgCode())==321){
93+
if (std::abs(mcPart.pdgCode()) == 321) {
9494
ptka.push_back(mcPart.pt());
9595
}
96-
if(std::abs(mcPart.pdgCode())==2212){
96+
if (std::abs(mcPart.pdgCode()) == 2212) {
9797
ptpr.push_back(mcPart.pt());
9898
}
99-
if(std::abs(mcPart.pdgCode())==310){
99+
if (std::abs(mcPart.pdgCode()) == 310) {
100100
ptk0.push_back(mcPart.pt());
101101
}
102-
if(std::abs(mcPart.pdgCode())==3122){
102+
if (std::abs(mcPart.pdgCode()) == 3122) {
103103
ptla.push_back(mcPart.pt());
104104
}
105-
if(std::abs(mcPart.pdgCode())==3312){
105+
if (std::abs(mcPart.pdgCode()) == 3312) {
106106
ptxi.push_back(mcPart.pt());
107107
}
108-
if(std::abs(mcPart.pdgCode())==3334){
108+
if (std::abs(mcPart.pdgCode()) == 3334) {
109109
ptom.push_back(mcPart.pt());
110110
}
111-
if(std::abs(mcPart.pdgCode())==3334){
111+
if (std::abs(mcPart.pdgCode()) == 3334) {
112112
ptom.push_back(mcPart.pt());
113113
}
114-
// inclusive HF for now
115-
if(std::abs(mcPart.pdgCode())==421){
114+
// inclusive HF for now
115+
if (std::abs(mcPart.pdgCode()) == 421) {
116116
ptd.push_back(mcPart.pt());
117117
}
118-
if(std::abs(mcPart.pdgCode())==4122){
118+
if (std::abs(mcPart.pdgCode()) == 4122) {
119119
ptd.push_back(mcPart.pt());
120120
}
121-
if(std::abs(mcPart.pdgCode())==443){
121+
if (std::abs(mcPart.pdgCode()) == 443) {
122122
ptjp.push_back(mcPart.pt());
123123
}
124124
}

0 commit comments

Comments
 (0)