Skip to content

Commit 3202a7b

Browse files
committed
Please consider the following formatting changes
1 parent 3acf33c commit 3202a7b

File tree

3 files changed

+17
-27
lines changed

3 files changed

+17
-27
lines changed

PWGHF/HFC/DataModel/ReducedDMesonPairsTables.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,4 @@ DECLARE_SOA_TABLE(HfCandDpMcPs, "AOD", "HFCANDDPMCP",
231231
hf_cand_3prong::OriginMcGen);
232232
} // namespace o2::aod
233233

234-
235-
236234
#endif // PWGHF_D2H_DATAMODEL_REDUCEDMESONPAIRSTABLES_H_

PWGHF/HFC/TableProducer/correlatorDplusDplusReduced.cxx

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,13 @@
1717
/// \author Valerio DI BELLA <valerio.di.bella@cern.ch>, IPHC Strasbourg
1818
/// Based on the code of Alexandre Bigot <alexandre.bigot@cern.ch>, IPHC Strasbourg
1919

20-
2120
#include "PWGHF/Core/DecayChannels.h"
2221
#include "PWGHF/Core/HfHelper.h"
2322
#include "PWGHF/DataModel/CandidateSelectionTables.h"
24-
2523
#include "PWGHF/HFC/DataModel/ReducedDMesonPairsTables.h"
2624

2725
#include <Framework/runDataProcessing.h>
2826

29-
3027
using namespace o2;
3128
using namespace o2::framework;
3229
using namespace o2::framework::expressions;
@@ -282,7 +279,8 @@ struct HfCorrelatorDplusDplusReduced {
282279
const auto colId = collision.globalIndex();
283280
auto candidatesInThisCollision = candidates.sliceBy(tracksPerCollision, colId);
284281
if (skipSingleD)
285-
if (candidatesInThisCollision.size()<2) continue;
282+
if (candidatesInThisCollision.size() < 2)
283+
continue;
286284
fillEvent(collision);
287285
for (const auto& candidate : candidatesInThisCollision) {
288286
fillCandidateTable<aod::Collisions>(candidate, rowCandidateFullEvents.lastIndex());
@@ -292,7 +290,7 @@ struct HfCorrelatorDplusDplusReduced {
292290
PROCESS_SWITCH(HfCorrelatorDplusDplusReduced, processData, "Process data per collision", false);
293291

294292
void processMcRec(aod::Collisions const& collisions,
295-
SelectedCandidatesMc const& candidates)
293+
SelectedCandidatesMc const& candidates)
296294
{
297295
// reserve memory
298296
rowCandidateFullEvents.reserve(collisions.size());
@@ -306,7 +304,8 @@ struct HfCorrelatorDplusDplusReduced {
306304
const auto colId = collision.globalIndex();
307305
auto candidatesInThisCollision = candidates.sliceBy(tracksPerCollision, colId);
308306
if (skipSingleD)
309-
if (candidatesInThisCollision.size()<2) continue;
307+
if (candidatesInThisCollision.size() < 2)
308+
continue;
310309
fillEvent(collision);
311310
for (const auto& candidate : candidatesInThisCollision) {
312311
fillCandidateTable<aod::Collisions, true>(candidate, rowCandidateFullEvents.lastIndex());
@@ -315,7 +314,6 @@ struct HfCorrelatorDplusDplusReduced {
315314
}
316315
PROCESS_SWITCH(HfCorrelatorDplusDplusReduced, processMcRec, "Process data per collision", false);
317316

318-
319317
void processMcGen(aod::McCollisions const& mccollisions, MatchedGenCandidatesMc const& mcparticles)
320318
{
321319
// reserve memory
@@ -326,11 +324,12 @@ struct HfCorrelatorDplusDplusReduced {
326324
const auto colId = mccollision.globalIndex();
327325
const auto particlesInThisCollision = mcparticles.sliceBy(mcParticlesPerMcCollision, colId);
328326
if (skipSingleD)
329-
if (particlesInThisCollision.size()<2) continue;
327+
if (particlesInThisCollision.size() < 2)
328+
continue;
330329
rowCandidateMcCollisions(
331-
mccollision.posX(),
332-
mccollision.posY(),
333-
mccollision.posZ());
330+
mccollision.posX(),
331+
mccollision.posY(),
332+
mccollision.posZ());
334333
for (const auto& particle : particlesInThisCollision) {
335334
rowCandidateMcParticles(
336335
particle.pt(),
@@ -345,7 +344,6 @@ struct HfCorrelatorDplusDplusReduced {
345344
}
346345
}
347346
PROCESS_SWITCH(HfCorrelatorDplusDplusReduced, processMcGen, "Process MC data at the generator level", false);
348-
349347
};
350348

351349
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)

PWGHF/HFC/Tasks/taskCorrelationDplusDplusReduced.cxx

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,9 @@
1717
/// \author Valerio DI BELLA <valerio.di.bella@cern.ch>, IPHC Strasbourg
1818
/// Based on the code of Alexandre Bigot <alexandre.bigot@cern.ch>, IPHC Strasbourg
1919

20-
2120
#include "PWGHF/Core/DecayChannels.h"
22-
2321
#include "PWGHF/HFC/DataModel/ReducedDMesonPairsTables.h"
2422

25-
2623
#include "Framework/runDataProcessing.h"
2724

2825
using namespace o2;
@@ -42,11 +39,9 @@ struct HfTaskCorrelationDplusDplusReduced {
4239
HistogramConfigSpec hTH1NMcGen{HistType::kTH1F, {{7, -0.5, 6.5}}};
4340
HistogramRegistry registry{
4441
"registry",
45-
{
46-
{"hNCand", "Number of D candidates per event;N", hTH1NCand},
47-
{"hNMcRec", "Number of reconstructed Mc D mesons per event;N", hTH1NMcRec},
48-
{"hNMcGen", "Number of generated Mc D mesons per event;N", hTH1NMcGen}}
49-
};
42+
{{"hNCand", "Number of D candidates per event;N", hTH1NCand},
43+
{"hNMcRec", "Number of reconstructed Mc D mesons per event;N", hTH1NMcRec},
44+
{"hNMcGen", "Number of generated Mc D mesons per event;N", hTH1NMcGen}}};
5045
void init(InitContext const&)
5146
{
5247
registry.add("hMassDplus", "D+ candidates;inv. mass (#pi#pi K) (GeV/#it{c}^{2}))", {HistType::kTH1F, {{120, 1.5848, 2.1848}}});
@@ -71,7 +66,7 @@ struct HfTaskCorrelationDplusDplusReduced {
7166
PROCESS_SWITCH(HfTaskCorrelationDplusDplusReduced, processLocalData, "Process local data", true);
7267

7368
void processLocalDataMcRec(o2::aod::HfCandDpFullEvs::iterator const& localCollision,
74-
SelectedCandidates const& localCandidates)
69+
SelectedCandidates const& localCandidates)
7570
{
7671
registry.fill(HIST("hNMcRec"), localCandidates.size());
7772

@@ -84,19 +79,18 @@ struct HfTaskCorrelationDplusDplusReduced {
8479
}
8580
PROCESS_SWITCH(HfTaskCorrelationDplusDplusReduced, processLocalDataMcRec, "Process local MC data", false);
8681

87-
8882
void processLocalDataMcGen(o2::aod::HfCandDpMcEvs::iterator const& localMcCollision,
89-
SelectedMcParticles const& localMcParticles)
83+
SelectedMcParticles const& localMcParticles)
9084
{
9185
registry.fill(HIST("hNMcGen"), localMcParticles.size());
9286

9387
for (const auto& part1 : localMcParticles) {
9488
for (auto part2 = part1 + 1; part2 != localMcParticles.end(); ++part2) {
95-
registry.fill(HIST("hDltPhiMcGen"), part2.phi()-part1.phi());
89+
registry.fill(HIST("hDltPhiMcGen"), part2.phi() - part1.phi());
9690
}
9791
}
9892
}
99-
PROCESS_SWITCH(HfTaskCorrelationDplusDplusReduced, processLocalDataMcGen, "Process local MC data at the gen level", false);
93+
PROCESS_SWITCH(HfTaskCorrelationDplusDplusReduced, processLocalDataMcGen, "Process local MC data at the gen level", false);
10094
};
10195

10296
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)

0 commit comments

Comments
 (0)