Skip to content

Commit faea831

Browse files
committed
minor fix
1 parent 6a67684 commit faea831

File tree

3 files changed

+8
-50
lines changed

3 files changed

+8
-50
lines changed

PWGHF/HFC/TableProducer/correlatorLcHadrons.cxx

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
/// \author Ravindra Singh <ravindra.singh@cern.ch>
1818

1919
#include "PWGHF/Core/DecayChannels.h"
20-
2120
#include "PWGHF/Core/HfHelper.h"
2221
#include "PWGHF/Core/SelectorCuts.h"
2322
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
@@ -28,6 +27,7 @@
2827

2928
#include "Common/CCDB/EventSelectionParams.h"
3029
#include "Common/Core/RecoDecay.h"
30+
#include "Common/DataModel/Centrality.h"
3131
#include "Common/DataModel/EventSelection.h"
3232
#include "Common/DataModel/Multiplicity.h"
3333
#include "Common/DataModel/PIDResponseTOF.h"
@@ -59,22 +59,6 @@
5959
#include <cstdlib>
6060
#include <vector>
6161

62-
#include "Common/Core/TrackSelection.h"
63-
#include "Common/DataModel/Centrality.h"
64-
#include "Common/DataModel/EventSelection.h"
65-
#include "Common/DataModel/Multiplicity.h"
66-
#include "Common/DataModel/TrackSelectionTables.h"
67-
68-
#include "CommonConstants/PhysicsConstants.h"
69-
#include "Framework/AnalysisTask.h"
70-
#include "Framework/HistogramRegistry.h"
71-
#include "Framework/O2DatabasePDGPlugin.h"
72-
#include "Framework/runDataProcessing.h"
73-
74-
#include "TRandom3.h"
75-
76-
#include <vector>
77-
7862
using namespace o2;
7963
using namespace o2::analysis;
8064
using namespace o2::constants::physics;
@@ -506,7 +490,7 @@ struct HfCorrelatorLcHadrons {
506490
track.pt() * track.sign(),
507491
poolBin,
508492
correlationStatus,
509-
cent);
493+
cent);
510494
entryLcHadronPairY(track.rapidity(MassProton) - hfHelper.yLc(candidate)); // only for proton as of now
511495
entryLcHadronRecoInfo(hfHelper.invMassLcToPKPi(candidate), false);
512496
entryLcHadronGenInfo(false, false, 0);
@@ -523,7 +507,7 @@ struct HfCorrelatorLcHadrons {
523507
track.pt() * track.sign(),
524508
poolBin,
525509
correlationStatus,
526-
cent);
510+
cent);
527511
entryLcHadronPairY(track.rapidity(MassProton) - hfHelper.yLc(candidate)); // only for proton as of now
528512
entryLcHadronRecoInfo(hfHelper.invMassLcToPiKP(candidate), false);
529513
entryLcHadronGenInfo(false, false, 0);

PWGHF/HFC/TableProducer/correlatorLcScHadrons.cxx

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
22
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3-
// All rights not expressly granted are reserved.`
3+
// All rights not expressly granted are reserved.
44
//
55
// This software is distributed under the terms of the GNU General Public
66
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
@@ -16,7 +16,6 @@
1616
/// \author Zhen Zhang <zhenz@cern.ch>
1717
/// \author Ravindra Singh <ravindra.singh@cern.ch>
1818

19-
2019
#include "PWGHF/Core/DecayChannels.h"
2120
#include "PWGHF/Core/HfHelper.h"
2221
#include "PWGHF/Core/SelectorCuts.h"
@@ -63,22 +62,6 @@
6362
#include <cstdlib>
6463
#include <vector>
6564

66-
#include "Common/Core/TrackSelection.h"
67-
#include "Common/DataModel/EventSelection.h"
68-
#include "Common/DataModel/Multiplicity.h"
69-
#include "Common/DataModel/TrackSelectionTables.h"
70-
71-
#include "CommonConstants/MathConstants.h"
72-
#include "CommonConstants/PhysicsConstants.h"
73-
#include "Framework/AnalysisTask.h"
74-
#include "Framework/HistogramRegistry.h"
75-
#include "Framework/O2DatabasePDGPlugin.h"
76-
#include "Framework/runDataProcessing.h"
77-
78-
#include "TRandom3.h"
79-
80-
#include <vector>
81-
8265
using namespace o2;
8366
using namespace o2::analysis;
8467
using namespace o2::constants::physics;
@@ -493,7 +476,7 @@ struct HfCorrelatorLcScHadrons {
493476
{
494477
bool isPhysicalPrimary = false;
495478
int trackOrigin = -1;
496-
float cent = 100.0; // will be updated later
479+
double_t cent = 100.0; // will be updated later
497480

498481
entryCandHadronPair(getDeltaPhi(track.phi(), candidate.phi()),
499482
track.eta() - candidate.eta(),
@@ -1035,14 +1018,12 @@ struct HfCorrelatorLcScHadrons {
10351018
}
10361019
}
10371020

1038-
int8_t chargeLc = pdg->GetParticle(particle.pdgCode())->Charge(); // Retrieve charge
1039-
int8_t chargeAssoc = pdg->GetParticle(particleAssoc.pdgCode())->Charge(); // Retrieve charge
1040-
float cent = 100.0; // will be updated later
1041-
10421021
int trackOrigin = RecoDecay::getCharmHadronOrigin(mcParticles, particleAssoc, true);
10431022
int8_t chargeAssoc = pdg->GetParticle(particleAssoc.pdgCode())->Charge(); // Retrieve charge
10441023
chargeAssoc = chargeAssoc / std::abs(chargeAssoc);
10451024
registry.fill(HIST("hPtParticleAssocMcGen"), particleAssoc.pt());
1025+
double_t cent = 100.0; // will be updated later
1026+
10461027
entryCandHadronPair(getDeltaPhi(particleAssoc.phi(), particle.phi()),
10471028
particleAssoc.eta() - particle.eta(),
10481029
particle.pt(),
@@ -1190,7 +1171,7 @@ struct HfCorrelatorLcScHadrons {
11901171
}
11911172
int8_t chargeLc = pdg->GetParticle(candidate.pdgCode())->Charge(); // Retrieve charge
11921173
int8_t chargeAssoc = pdg->GetParticle(particleAssoc.pdgCode())->Charge(); // Retrieve charge
1193-
float cent = 100.0; // will be updated later
1174+
double_t cent = 100.0; // will be updated later
11941175

11951176
int trackOrigin = RecoDecay::getCharmHadronOrigin(mcParticles, particleAssoc, true);
11961177
bool isPrompt = candidate.originMcGen() == RecoDecay::OriginType::Prompt;

PWGHF/HFC/Tasks/taskCorrelationLcHadrons.cxx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
/// \author Zhen Zhang <zhenz@cern.ch>
1616

1717
#include "PWGHF/Core/DecayChannels.h"
18-
1918
#include "PWGHF/Core/HfHelper.h"
2019
#include "PWGHF/Core/SelectorCuts.h"
2120
#include "PWGHF/DataModel/CandidateReconstructionTables.h"
@@ -55,12 +54,6 @@
5554
#include <cstddef>
5655
#include <cstdint>
5756
#include <cstdlib>
58-
59-
#include "CCDB/BasicCCDBManager.h"
60-
#include "Framework/AnalysisTask.h"
61-
#include "Framework/HistogramRegistry.h"
62-
#include "Framework/runDataProcessing.h"
63-
6457
#include <memory> // std::shared_ptr
6558
#include <string>
6659
#include <vector>

0 commit comments

Comments
 (0)