Skip to content

Commit 259960e

Browse files
committed
Fix linter
1 parent 7abe6f2 commit 259960e

File tree

4 files changed

+12
-25
lines changed

4 files changed

+12
-25
lines changed

PWGHF/D2H/TableProducer/candidateCreatorBToJPsiReduced.cxx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
32
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
43
// All rights not expressly granted are reserved.
@@ -362,17 +361,11 @@ struct HfCandidateCreatorBToJPsiReduced {
362361
registry.fill(HIST("hEvents"), 1, collisionCounter.originalCollisionCount());
363362
}
364363

365-
static int ncol = 0;
366-
367364
for (const auto& collision : collisions) {
368365
auto thisCollId = collision.globalIndex();
369366
auto candsJPsiThisColl = candsJPsi.sliceBy(candsJPsiPerCollision, thisCollId);
370367
auto tracksKaonThisCollision = tracksKaon.sliceBy(tracksLf0PerCollision, thisCollId);
371368
runCandidateCreation<DecayChannel::BplusToJPsiK>(collision, candsJPsiThisColl, tracksKaonThisCollision, tracksKaonThisCollision, invMass2JPsiKMin, invMass2JPsiKMax);
372-
if (ncol % 10000 == 0) {
373-
LOG(debug) << ncol << " collisions parsed";
374-
}
375-
ncol++;
376369
}
377370
} // processDataBplus
378371
PROCESS_SWITCH(HfCandidateCreatorBToJPsiReduced, processDataBplus, "Process data for B+", true);
@@ -397,18 +390,12 @@ struct HfCandidateCreatorBToJPsiReduced {
397390
registry.fill(HIST("hEvents"), 1, collisionCounter.originalCollisionCount());
398391
}
399392

400-
static int ncol = 0;
401-
402393
for (const auto& collision : collisions) {
403394
auto thisCollId = collision.globalIndex();
404395
auto candsJPsiThisColl = candsJPsi.sliceBy(candsJPsiPerCollision, thisCollId);
405396
auto tracksLf0ThisCollision = tracksLfDau0.sliceBy(tracksLf0PerCollision, thisCollId);
406397
auto tracksLf1ThisCollision = tracksLfDau1.sliceBy(tracksLf1PerCollision, thisCollId);
407398
runCandidateCreation<DecayChannel::BsToJPsiPhi>(collision, candsJPsiThisColl, tracksLf0ThisCollision, tracksLf1ThisCollision, invMass2JPsiKMin, invMass2JPsiKMax);
408-
if (ncol % 10000 == 0) {
409-
LOG(debug) << ncol << " collisions parsed";
410-
}
411-
ncol++;
412399
}
413400
} // processDataBs
414401
PROCESS_SWITCH(HfCandidateCreatorBToJPsiReduced, processDataBs, "Process data for Bs", false);

PWGHF/D2H/TableProducer/dataCreatorJPsiHadReduced.cxx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ struct HfDataCreatorJPsiHadReduced {
121121
Configurable<std::string> ccdbUrl{"ccdbUrl", "http://alice-ccdb.cern.ch", "url of the ccdb repository"};
122122
Configurable<std::string> ccdbPathGrpMag{"ccdbPathGrpMag", "GLO/Config/GRPMagField", "CCDB path of the GRPMagField object (Run 3)"};
123123

124+
HfHelper hfHelper;
125+
126+
// CCDB service
127+
Service<o2::ccdb::BasicCCDBManager> ccdb;
128+
// O2DatabasePDG service
129+
Service<o2::framework::O2DatabasePDG> pdg;
130+
124131
using TracksPid = soa::Join<aod::pidTPCFullPi, aod::pidTOFFullPi, aod::pidTPCFullKa, aod::pidTOFFullKa, aod::pidTPCFullPr, aod::pidTOFFullPr>;
125132
using TracksPidWithSel = soa::Join<aod::TracksWCovDcaExtra, TracksPid, aod::TrackSelection>;
126133
using TracksSel = soa::Join<aod::TracksWDcaExtra, aod::TracksPidPi, aod::PidTpcTofFullPi, aod::TracksPidKa, aod::PidTpcTofFullKa>;
@@ -131,23 +138,16 @@ struct HfDataCreatorJPsiHadReduced {
131138
Preslice<aod::TrackAssoc> trackIndicesPerCollision = aod::track_association::collisionId;
132139
PresliceUnsorted<CollisionsWCMcLabels> colPerMcCollision = aod::mccollisionlabel::mcCollisionId;
133140

134-
HistogramRegistry registry{"registry"};
135-
136-
// CCDB service
137-
Service<o2::ccdb::BasicCCDBManager> ccdb;
138141
o2::base::Propagator::MatCorrType noMatCorr = o2::base::Propagator::MatCorrType::USEMatCorrNONE;
139142
int runNumber;
140143
double bz{0.};
141-
142-
// O2DatabasePDG service
143-
Service<o2::framework::O2DatabasePDG> pdg;
144-
145144
double invMass2JPsiHadMin, invMass2JPsiHadMax;
146-
HfHelper hfHelper;
145+
bool isHfCandBhadConfigFilled = false;
146+
147147
o2::hf_evsel::HfEventSelection hfEvSel;
148148
o2::vertexing::DCAFitterN<2> df2;
149149

150-
bool isHfCandBhadConfigFilled = false;
150+
HistogramRegistry registry{"registry"};
151151

152152
void init(InitContext const&)
153153
{

PWGHF/D2H/Tasks/taskBplusToJPsiKReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace o2::aod
4242
{
4343
namespace hf_cand_bplustojpsik_lite
4444
{
45-
DECLARE_SOA_COLUMN(PtJPsi, ptD, float); //! Transverse momentum of JPsi daughter candidate (GeV/c)
45+
DECLARE_SOA_COLUMN(PtJPsi, ptJPsi, float); //! Transverse momentum of JPsi daughter candidate (GeV/c)
4646
DECLARE_SOA_COLUMN(PtBach, ptBach, float); //! Transverse momentum of bachelor kaon (GeV/c)
4747
// DECLARE_SOA_COLUMN(AbsEtaBach, absEtaBach, float); //! Absolute pseudorapidity of bachelor kaon
4848
// DECLARE_SOA_COLUMN(ItsNClsBach, itsNClsBach, int); //! Number of ITS clusters of bachelor kaon

PWGHF/D2H/Tasks/taskBsToJPsiPhiReduced.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ namespace o2::aod
4343
{
4444
namespace hf_cand_bstojpsiphi_lite
4545
{
46-
DECLARE_SOA_COLUMN(PtJPsi, ptD, float); //! Transverse momentum of JPsi daughter candidate (GeV/c)
46+
DECLARE_SOA_COLUMN(PtJPsi, ptJPsi, float); //! Transverse momentum of JPsi daughter candidate (GeV/c)
4747
DECLARE_SOA_COLUMN(PtBach0, ptBach0, float); //! Transverse momentum of bachelor kaon(<- phi) (GeV/c)
4848
DECLARE_SOA_COLUMN(PtBach1, ptBach1, float); //! Transverse momentum of bachelor kaon(<- phi) (GeV/c)
4949
// DECLARE_SOA_COLUMN(AbsEtaBach, absEtaBach, float); //! Absolute pseudorapidity of bachelor kaon

0 commit comments

Comments
 (0)