1111
1212#include " PWGLF/DataModel/LFSlimHeLambda.h"
1313
14- #include < Framework/AnalysisTask.h>
1514#include < Framework/ASoAHelpers.h>
15+ #include < Framework/AnalysisTask.h>
1616#include < Framework/HistogramRegistry.h>
1717#include < Framework/runDataProcessing.h>
1818
1919#include < Math/Vector4D.h>
2020
2121#include < memory>
2222
23- namespace {
24- std::shared_ptr<TH2> hInvariantMassUS[2 ];
25- std::shared_ptr<TH2> hInvariantMassLS[2 ];
26- std::shared_ptr<TH2> hRotationInvariantMassUS[2 ];
27- std::shared_ptr<TH2> hRotationInvariantMassLS[2 ];
28- std::shared_ptr<TH2> hRotationInvariantMassAntiLSeta[2 ];
29- std::shared_ptr<TH2> hInvariantMassLambda[2 ];
30- std::shared_ptr<TH2> hCosPALambda;
31- std::shared_ptr<TH2> hNsigmaHe3;
32- std::shared_ptr<TH2> hNsigmaProton;
33- };
23+ namespace
24+ {
25+ std::shared_ptr<TH2> hInvariantMassUS[2 ];
26+ std::shared_ptr<TH2> hInvariantMassLS[2 ];
27+ std::shared_ptr<TH2> hRotationInvariantMassUS[2 ];
28+ std::shared_ptr<TH2> hRotationInvariantMassLS[2 ];
29+ std::shared_ptr<TH2> hRotationInvariantMassAntiLSeta[2 ];
30+ std::shared_ptr<TH2> hInvariantMassLambda[2 ];
31+ std::shared_ptr<TH2> hCosPALambda;
32+ std::shared_ptr<TH2> hNsigmaHe3;
33+ std::shared_ptr<TH2> hNsigmaProton;
34+ }; // namespace
3435
3536using namespace o2 ;
3637using namespace o2 ::framework;
@@ -51,13 +52,12 @@ struct he3LambdaDerivedAnalysis {
5152 {
5253 constexpr double ConstituentsMass = o2::constants::physics::MassProton + o2::constants::physics::MassNeutron * 2 + o2::constants::physics::MassSigmaPlus;
5354 for (int i = 0 ; i < 2 ; ++i) {
54- hInvariantMassUS[i] = mRegistry .add <TH2>(Form (" hInvariantMassUS%i" ,i), " Invariant Mass" , {HistType::kTH2D , {{45 , 1 ., 10 }, {100 , ConstituentsMass - 0.05 , ConstituentsMass + 0.05 }}});
55- hInvariantMassLS[i] = mRegistry .add <TH2>(Form (" hInvariantMassLS%i" ,i), " Invariant Mass" , {HistType::kTH2D , {{45 , 1 ., 10 }, {100 , ConstituentsMass - 0.05 , ConstituentsMass + 0.05 }}});
56- hRotationInvariantMassUS[i] = mRegistry .add <TH2>(Form (" hRotationInvariantMassUS%i" ,i), " Rotation Invariant Mass" , {HistType::kTH2D , {{45 , 1 ., 10 }, {100 , ConstituentsMass - 0.05 , ConstituentsMass + 0.05 }}});
57- hRotationInvariantMassLS[i] = mRegistry .add <TH2>(Form (" hRotationInvariantMassLS%i" ,i), " Rotation Invariant Mass" , {HistType::kTH2D , {{45 , 1 ., 10 }, {100 , ConstituentsMass - 0.05 , ConstituentsMass + 0.05 }}});
58- hInvariantMassLambda[i] = mRegistry .add <TH2>(Form (" hInvariantMassLambda%i" ,i), " Invariant Mass Lambda" , {HistType::kTH2D , {{50 , 0 ., 10 .}, {30 , o2::constants::physics::MassLambda0 - 0.015 , o2::constants::physics::MassLambda0 + 0.015 }}});
59- hRotationInvariantMassAntiLSeta[i] = mRegistry .add <TH2>(Form (" hRotationInvariantMassAntiLSeta%i" ,i), " Rotation Invariant Mass Anti-Lambda" , {HistType::kTH2D , {{45 , 1 ., 10 }, {100 , ConstituentsMass - 0.05 , ConstituentsMass + 0.05 }}});
60-
55+ hInvariantMassUS[i] = mRegistry .add <TH2>(Form (" hInvariantMassUS%i" , i), " Invariant Mass" , {HistType::kTH2D , {{45 , 1 ., 10 }, {100 , ConstituentsMass - 0.05 , ConstituentsMass + 0.05 }}});
56+ hInvariantMassLS[i] = mRegistry .add <TH2>(Form (" hInvariantMassLS%i" , i), " Invariant Mass" , {HistType::kTH2D , {{45 , 1 ., 10 }, {100 , ConstituentsMass - 0.05 , ConstituentsMass + 0.05 }}});
57+ hRotationInvariantMassUS[i] = mRegistry .add <TH2>(Form (" hRotationInvariantMassUS%i" , i), " Rotation Invariant Mass" , {HistType::kTH2D , {{45 , 1 ., 10 }, {100 , ConstituentsMass - 0.05 , ConstituentsMass + 0.05 }}});
58+ hRotationInvariantMassLS[i] = mRegistry .add <TH2>(Form (" hRotationInvariantMassLS%i" , i), " Rotation Invariant Mass" , {HistType::kTH2D , {{45 , 1 ., 10 }, {100 , ConstituentsMass - 0.05 , ConstituentsMass + 0.05 }}});
59+ hInvariantMassLambda[i] = mRegistry .add <TH2>(Form (" hInvariantMassLambda%i" , i), " Invariant Mass Lambda" , {HistType::kTH2D , {{50 , 0 ., 10 .}, {30 , o2::constants::physics::MassLambda0 - 0.015 , o2::constants::physics::MassLambda0 + 0.015 }}});
60+ hRotationInvariantMassAntiLSeta[i] = mRegistry .add <TH2>(Form (" hRotationInvariantMassAntiLSeta%i" , i), " Rotation Invariant Mass Anti-Lambda" , {HistType::kTH2D , {{45 , 1 ., 10 }, {100 , ConstituentsMass - 0.05 , ConstituentsMass + 0.05 }}});
6161 }
6262 hCosPALambda = mRegistry .add <TH2>(" hCosPALambda" , " Cosine of Pointing Angle for Lambda" , {HistType::kTH2D , {{50 , 0 ., 10 .}, {500 , 0.9 , 1 .}}});
6363 hNsigmaHe3 = mRegistry .add <TH2>(" hNsigmaHe3" , " nSigma TPC for He3" , {HistType::kTH2D , {{100 , -10 ., 10 .}, {200 , -5 , 5 .}}});
@@ -128,7 +128,6 @@ struct he3LambdaDerivedAnalysis {
128128 }
129129 }
130130 }
131-
132131 }
133132 }
134133 PROCESS_SWITCH (he3LambdaDerivedAnalysis, processSameEvent, " Process same event" , true );
0 commit comments