You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: PWGLF/TableProducer/Nuspex/nucleiSpectra.cxx
+18-17Lines changed: 18 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -51,9 +51,10 @@
51
51
#include"Framework/runDataProcessing.h"
52
52
#include"ReconstructionDataFormats/Track.h"
53
53
54
-
#include"Math/Vector4D.h"
55
-
#include"TRandom3.h"
54
+
#include<Math/Vector4D.h>
56
55
#include<TMCProcess.h>
56
+
#include<TPDGCode.h>// for PDG codes
57
+
#include<TRandom3.h>
57
58
58
59
#include<algorithm>
59
60
#include<cmath>
@@ -331,7 +332,7 @@ struct nucleiSpectra {
331
332
// CCDB options
332
333
Configurable<int> cfgMaterialCorrection{"cfgMaterialCorrection", static_cast<int>(o2::base::Propagator::MatCorrType::USEMatCorrLUT), "Type of material correction"};
333
334
Configurable<std::string> cfgCCDBurl{"ccdb-url", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
334
-
Configurable<std::string> cfgZorroCCDBpath{"cfgZorroCCDBpath", "/Users/m/mpuccio/EventFiltering/OTS/", "path to the zorro ccdb objects"};
335
+
Configurable<std::string> cfgZorroCCDBpath{"cfgZorroCCDBpath", "EventFiltering/Zorro/", "path to the zorro ccdb objects"};
335
336
intmRunNumber = 0;
336
337
floatmBz = 0.f;
337
338
@@ -356,7 +357,7 @@ struct nucleiSpectra {
356
357
float dauVtx[3]{0.f, 0.f, 0.f};
357
358
auto daughters = particle.daughters_as<aod::McParticles>();
358
359
for (constauto& dau : daughters) {
359
-
if (abs(dau.pdgCode()) != 22 && abs(dau.pdgCode()) != 11) {
360
+
if (std::abs(dau.pdgCode()) != PDG_t::kGamma && std::abs(dau.pdgCode()) != PDG_t::kElectron) {
0 commit comments