Skip to content

Commit 502e137

Browse files
committed
Please consider the following formatting changes
1 parent 4d20e71 commit 502e137

File tree

3 files changed

+28
-30
lines changed

3 files changed

+28
-30
lines changed

PWGLF/DataModel/LFSlimHeLambda.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include "Framework/ASoAHelpers.h"
2121
#include "Framework/AnalysisDataModel.h"
22+
2223
#include <Math/Vector4D.h>
2324

2425
namespace o2::aod
@@ -56,7 +57,7 @@ DECLARE_SOA_TABLE(LFLambda, "AOD", "LFLAMBDA", lfv0he3::LFEventId, lfv0he3::Pt,
5657

5758
struct he3Candidate {
5859
ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<double>> momentum; // 4-momentum of the He3 candidate
59-
float nSigmaTPC = -999.f; // TPC nSigma for He3
60+
float nSigmaTPC = -999.f; // TPC nSigma for He3
6061
float dcaXY = -999.f;
6162
float dcaZ = -999.f;
6263
int tpcNClsFound = 0; // Number of TPC clusters found
@@ -67,16 +68,15 @@ struct he3Candidate {
6768

6869
struct lambdaCandidate {
6970
ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<double>> momentum;
70-
float mass = -1.f; // Lambda mass
71-
float cosPA = -2.f; // Cosine of pointing angle
72-
float dcaV0Daughters = -999.f; // DCA between V0 daughters
73-
float dcaProtonToPV = -999.f; // DCA of the proton to primary vertex
74-
float dcaPionToPV = -999.f; // DCA of the pion to primary vertex
75-
float v0Radius = -1.f; // V0 radius
71+
float mass = -1.f; // Lambda mass
72+
float cosPA = -2.f; // Cosine of pointing angle
73+
float dcaV0Daughters = -999.f; // DCA between V0 daughters
74+
float dcaProtonToPV = -999.f; // DCA of the proton to primary vertex
75+
float dcaPionToPV = -999.f; // DCA of the pion to primary vertex
76+
float v0Radius = -1.f; // V0 radius
7677
float protonNSigmaTPC = -999.f; // Proton TPC nSigma
7778
float pionNSigmaTPC = -999.f;
7879
int8_t sign = 0; // Charge sign of the Lambda candidate
7980
};
8081

81-
8282
#endif // PWGLF_DATAMODEL_LFSLIMNUCLEITABLES_H_

PWGLF/TableProducer/Nuspex/he3LambdaAnalysis.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include "Common/DataModel/PIDResponseTPC.h"
1919
#include "EventFiltering/Zorro.h"
2020
#include "EventFiltering/ZorroSummary.h"
21-
#include "PWGLF/DataModel/LFSlimHeLambda.h"
2221

2322
#include <CCDB/BasicCCDBManager.h>
2423
#include <DCAFitter/DCAFitterN.h>

PWGLF/Tasks/Nuspex/he3LambdaDerivedAnalysis.cxx

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,27 @@
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

3536
using namespace o2;
3637
using 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.}}});
@@ -118,7 +118,7 @@ struct he3LambdaDerivedAnalysis {
118118
}
119119
for (int iEta{0}; iEta <= cfgMirrorEta; ++iEta) {
120120
for (int iR{0}; iR <= cfgNrotations; ++iR) {
121-
auto he3Momentum = ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<double>>(he3.momentum.Pt(), (1. - iEta * 2.) * he3.momentum.Eta(), he3.momentum.Phi() + TMath::Pi() * (0.75 + 0.5 * iR / cfgNrotations), he3.momentum.M());
121+
auto he3Momentum = ROOT::Math::LorentzVector<ROOT::Math::PtEtaPhiM4D<double>>(he3.momentum.Pt(), (1. - iEta * 2.) * he3.momentum.Eta(), he3.momentum.Phi() + TMath::Pi() * (0.75 + 0.5 * iR / cfgNrotations), he3.momentum.M());
122122
for (const auto& lambda : lambdaCandidates) {
123123
auto pairMomentum = lambda.momentum + he3Momentum; // Calculate invariant mass
124124
(he3.sign * lambda.sign > 0 ? hRotationInvariantMassLS : hRotationInvariantMassUS)[he3.sign > 0]->Fill(pairMomentum.Pt(), pairMomentum.M());
@@ -128,7 +128,6 @@ struct he3LambdaDerivedAnalysis {
128128
}
129129
}
130130
}
131-
132131
}
133132
}
134133
PROCESS_SWITCH(he3LambdaDerivedAnalysis, processSameEvent, "Process same event", true);

0 commit comments

Comments
 (0)