Skip to content

Commit 1d529c2

Browse files
author
Mattia Faggin
committed
Try to fix O2 linter issues (chapter 2).
1 parent 7f3a76a commit 1d529c2

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

PWGHF/D2H/Tasks/taskSigmac.cxx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
///
1616
/// \author Mattia Faggin <mfaggin@cern.ch>, University and INFN PADOVA
1717

18+
#include <vector>
19+
1820
#include "CommonConstants/PhysicsConstants.h"
1921
#include "Framework/AnalysisTask.h"
2022
#include "Framework/HistogramRegistry.h"
@@ -24,8 +26,6 @@
2426
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
2527
#include "PWGHF/DataModel/CandidateSelectionTables.h"
2628

27-
#include <vector>
28-
2929
using namespace o2;
3030
using namespace o2::analysis;
3131
using namespace o2::framework;
@@ -53,9 +53,14 @@ struct HfTaskSigmac {
5353
/// consider the new parametrization of the fiducial acceptance (to be seen for reco signal in MC)
5454
Configurable<float> yCandGenMax{"yCandGenMax", -1, "Maximum generated Sc rapidity"};
5555
Configurable<float> yCandRecoMax{"yCandRecoMax", -1, "Maximum Sc candidate rapidity"};
56+
Configurable<bool> enableTHn{"enableTHn", false, "enable the usage of THn for Λc+ and Σc0,++"};
57+
58+
HfHelper hfHelper;
59+
bool isMc;
60+
61+
using RecoLc = soa::Join<aod::HfCand3Prong, aod::HfSelLc>;
5662

5763
/// THn for candidate Λc+ and Σc0,++ cut variation
58-
Configurable<bool> enableTHn{"enableTHn", false, "enable the usage of THn for Λc+ and Σc0,++"};
5964
ConfigurableAxis thnConfigAxisPt{"thnConfigAxisPt", {16, 0, 16}, ""};
6065
ConfigurableAxis thnConfigAxisGenPt{"thnConfigAxisGenPt", {240, 0, 24}, "Gen pt prompt"};
6166
ConfigurableAxis thnConfigAxisGenPtB{"thnConfigAxisGenPtB", {800, 0, 80}, "Gen pt non-prompt"};
@@ -85,8 +90,6 @@ struct HfTaskSigmac {
8590
const AxisSpec thnAxisGenPtSigmaCBMother{thnConfigAxisGenPtB, "#it{p}_{T}^{gen}(#Sigma_{c}^{0,++} B mother) (GeV/#it{c})"};
8691
const AxisSpec thnAxisGenSigmaCSpecies = {o2::hf_sigmactask::Species::NSpecies, -0.5f, +o2::hf_sigmactask::Species::NSpecies - 0.5f, "bin 1: #Sigma_{c}(2455), bin 2: #Sigma_{c}(2520)"};
8792

88-
HfHelper hfHelper;
89-
9093
/// analysis histograms
9194
HistogramRegistry registry{
9295
"registry",
@@ -130,10 +133,6 @@ struct HfTaskSigmac {
130133
{"Data/hPhiLcFromSc0PlusPlus", "#Lambda_{c}^{+} #leftarrow #Sigma_{c}^{0,++} candidates; #varphi(#Lambda_{c}^{+} #leftarrow #Sigma_{c}^{0,++}); entries;", {HistType::kTH1D, {{72, 0, constants::math::TwoPI}}}}}};
131134
//{"Data/hDeltaMassLcFromSc0PlusPlus", "#Lambda_{c}^{+} #leftarrow #Sigma_{c}^{0,++} candidates; #it{M}(pK#pi#pi) - #it{M}(pK#pi) (GeV/#it{c}^{2}); #it{p}_{T}(#Lambda_{c}^{+} #leftarrow #Sigma_{c}^{0,++}) (GeV/#it{c});", {HistType::kTH2D, {axisDeltaMassSigmaC, {36, 0., 36.}}}}}};
132135

133-
using RecoLc = soa::Join<aod::HfCand3Prong, aod::HfSelLc>;
134-
135-
bool isMc;
136-
137136
/// @brief init function, to define the additional analysis histograms
138137
/// @param
139138
void init(InitContext&)

0 commit comments

Comments
 (0)