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
3333using namespace o2 ;
3434using 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