Skip to content

Commit d919b95

Browse files
authored
Merge branch 'AliceO2Group:master' into master
2 parents dd65cca + b7c799e commit d919b95

File tree

137 files changed

+8251
-2192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+8251
-2192
lines changed

.clang-format

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,60 @@ PenaltyBreakFirstLessLess: 120
3939
PenaltyBreakString: 1000
4040
PenaltyExcessCharacter: 1000000
4141
PenaltyReturnTypeOnItsOwnLine: 200
42-
SortIncludes: false
42+
SortIncludes: CaseSensitive
43+
IncludeBlocks: Regroup
44+
IncludeCategories:
45+
# O2Physics, PWG
46+
- Regex: ^(<|")PWG[A-Z]{2}/.*\.h
47+
Priority: 2
48+
CaseSensitive: true
49+
# O2Physics, non-PWG
50+
- Regex: ^(<|")(Common|ALICE3|DPG|EventFiltering|Tools|Tutorials)/.*\.h
51+
Priority: 3
52+
CaseSensitive: true
53+
# O2
54+
- Regex: ^(<|")(Algorithm|CCDB|Common[A-Z]|DataFormats|DCAFitter|Detectors|EMCAL|Field|Framework|FT0|FV0|GlobalTracking|ITS|MathUtils|MFT|MCH|MID|PHOS|PID|ReconstructionDataFormats|SimulationDataFormat|TOF|TPC|ZDC).*/.*\.h
55+
Priority: 4
56+
CaseSensitive: true
57+
# ROOT
58+
- Regex: ^(<|")(T[A-Z]|Math/|Roo[A-Z])[[:alnum:]/]+\.h
59+
Priority: 5
60+
CaseSensitive: true
61+
# known third-party: KFParticle
62+
- Regex: ^(<|")KF[A-Z][[:alnum:]]+\.h
63+
Priority: 6
64+
CaseSensitive: true
65+
# known third-party: FastJet
66+
- Regex: ^(<|")fastjet/
67+
Priority: 6
68+
CaseSensitive: true
69+
# known third-party: ONNX runtime
70+
- Regex: ^(<|")onnxruntime
71+
Priority: 6
72+
CaseSensitive: true
73+
# incomplete path to DataModel
74+
- Regex: ^(<|").*DataModel/
75+
Priority: 1
76+
CaseSensitive: true
77+
# other third-party
78+
- Regex: ^(<|")([[:alnum:]_]+/)+[[:alnum:]_]+\.h
79+
Priority: 6
80+
CaseSensitive: true
81+
# other local-looking file
82+
- Regex: ^".*\.
83+
Priority: 1
84+
CaseSensitive: true
85+
# C system
86+
- Regex: ^(<|")[[:lower:]_]+\.h(>|")
87+
Priority: 102
88+
CaseSensitive: true
89+
# C++ system
90+
- Regex: ^(<|")[[:lower:]_/]+(>|")
91+
Priority: 101
92+
CaseSensitive: true
93+
# rest
94+
- Regex: .*
95+
Priority: 100
4396
SpaceBeforeAssignmentOperators: true
4497
SpaceBeforeParens: ControlStatements
4598
SpaceInEmptyParentheses: false

ALICE3/Core/DelphesO2LutWriter.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
#include "ALICE3/Core/DelphesO2TrackSmearer.h"
2525
#include "ALICE3/Core/DelphesO2LutWriter.h"
26-
#include "iostream"
26+
#include <iostream>
2727
#include "TMatrixD.h"
2828
#include "TVectorD.h"
2929
#include "TAxis.h"

ALICE3/TableProducer/alice3-decayfinder.cxx

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ struct alice3decayFinder {
267267
dmeson.mcTruth = 2; // D0bar
268268
}
269269
}
270+
270271
return true;
271272
}
272273

@@ -362,7 +363,9 @@ struct alice3decayFinder {
362363

363364
if (doprocessFindDmesons) {
364365
histos.add("h2dGenD", "h2dGenD", kTH2F, {axisPt, axisEta});
366+
histos.add("h2dGenD_KpiOnly", "h2dGenD_KpiOnly", kTH2F, {axisPt, axisEta});
365367
histos.add("h2dGenDbar", "h2dGenDbar", kTH2F, {axisPt, axisEta});
368+
histos.add("h2dGenDbar_KpiOnly", "h2dGenDbar_KpiOnly", kTH2F, {axisPt, axisEta});
366369
histos.add("h3dRecD", "h3dRecD", kTH3F, {axisPt, axisEta, axisDMass});
367370
histos.add("h3dRecDSig", "h3dRecDSig", kTH3F, {axisPt, axisEta, axisDMass});
368371
histos.add("h3dRecDRefl", "h3dRecDRefl", kTH3F, {axisPt, axisEta, axisDMass});
@@ -471,11 +474,37 @@ struct alice3decayFinder {
471474
if (doprocessFindDmesons) {
472475
for (auto const& mcParticle : trueD) {
473476
histos.fill(HIST("h2dGenD"), mcParticle.pt(), mcParticle.eta());
474-
histos.fill(HIST("hDGenForEfficiency"), mcParticle.pt(), mcParticle.y()); // in common for D and Dbar
477+
auto daughters = mcParticle.template daughters_as<aod::McParticles>();
478+
if (daughters.size() != 2)
479+
continue;
480+
// int daugID[2];
481+
int daugPDG[2], i = 0;
482+
for (const auto& dau : daughters) {
483+
// daugID[i] = dau.globalIndex();
484+
daugPDG[i] = dau.pdgCode();
485+
i++;
486+
}
487+
if ((std::fabs(daugPDG[0]) == 321 && std::fabs(daugPDG[1]) == 211) || (std::fabs(daugPDG[0]) == 211 && std::fabs(daugPDG[1]) == 321)) {
488+
histos.fill(HIST("h2dGenD_KpiOnly"), mcParticle.pt(), mcParticle.eta());
489+
histos.fill(HIST("hDGenForEfficiency"), mcParticle.pt(), mcParticle.y()); // in common for D and Dbar
490+
}
475491
}
476492
for (auto const& mcParticle : trueDbar) {
477493
histos.fill(HIST("h2dGenDbar"), mcParticle.pt(), mcParticle.eta());
478-
histos.fill(HIST("hDGenForEfficiency"), mcParticle.pt(), mcParticle.y()); // in common for D and Dbar
494+
auto daughters = mcParticle.template daughters_as<aod::McParticles>();
495+
if (daughters.size() != 2)
496+
continue;
497+
// int daugID[2];
498+
int daugPDG[2], i = 0;
499+
for (const auto& dau : daughters) {
500+
// daugID[i] = dau.globalIndex();
501+
daugPDG[i] = dau.pdgCode();
502+
i++;
503+
}
504+
if ((std::fabs(daugPDG[0]) == 321 && std::fabs(daugPDG[1]) == 211) || (std::fabs(daugPDG[0]) == 211 && std::fabs(daugPDG[1]) == 321)) {
505+
histos.fill(HIST("h2dGenDbar_KpiOnly"), mcParticle.pt(), mcParticle.eta());
506+
histos.fill(HIST("hDGenForEfficiency"), mcParticle.pt(), mcParticle.y()); // in common for D and Dbar
507+
}
479508
}
480509
}
481510
if (doprocessFindLcBaryons) {
@@ -509,6 +538,7 @@ struct alice3decayFinder {
509538
// D0 mesons
510539
for (auto const& posTrackRow : tracksPiPlusFromDgrouped) {
511540
for (auto const& negTrackRow : tracksKaMinusFromDgrouped) {
541+
512542
if (mcSameMotherCheck && !checkSameMother(posTrackRow, negTrackRow))
513543
continue;
514544
if (!buildDecayCandidateTwoBody(posTrackRow, negTrackRow, o2::constants::physics::MassPionCharged, o2::constants::physics::MassKaonCharged, mcParticles))
@@ -651,9 +681,11 @@ struct alice3decayFinder {
651681
mcTruthOutcome(dmeson.mcTruth);
652682
}
653683
}
684+
654685
// D0bar mesons
655686
for (auto const& posTrackRow : tracksKaPlusFromDgrouped) {
656687
for (auto const& negTrackRow : tracksPiMinusFromDgrouped) {
688+
657689
if (mcSameMotherCheck && !checkSameMother(posTrackRow, negTrackRow))
658690
continue;
659691
if (!buildDecayCandidateTwoBody(posTrackRow, negTrackRow, o2::constants::physics::MassKaonCharged, o2::constants::physics::MassPionCharged, mcParticles))

CPPLINT.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
filter=-build/c++11,-build/namespaces,-readability/fn_size,-readability/todo,-runtime/references,-whitespace/blank_line,-whitespace/braces,-whitespace/comments,-whitespace/indent_namespace,-whitespace/line_length,-whitespace/semicolon,-whitespace/todo
1+
filter=-build/c++11,-build/include_order,-build/namespaces,-readability/fn_size,-readability/todo,-runtime/references,-whitespace/blank_line,-whitespace/braces,-whitespace/comments,-whitespace/indent_namespace,-whitespace/line_length,-whitespace/semicolon,-whitespace/todo

Common/CCDB/macros/upload_event_selection_params.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#include "CCDB/CcdbApi.h"
1313
#include "CCDB/BasicCCDBManager.h"
1414
#include "TString.h"
15-
#include "map"
16-
#include "string"
15+
#include <map>
16+
#include <string>
1717
#include "EventSelectionParams.h"
1818
using std::map;
1919
using std::string;

Common/CCDB/macros/upload_event_selection_params_run3.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
#include "CCDB/CcdbApi.h"
1313
#include "TString.h"
14-
#include "map"
15-
#include "string"
14+
#include <map>
15+
#include <string>
1616
#include "EventSelectionParams.h"
1717
using std::map;
1818
using std::string;

Common/TableProducer/eventSelection.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ struct LumiTask {
12231223
LOGP(debug, "Dummy process function for Run 2");
12241224
}
12251225

1226-
PROCESS_SWITCH(LumiTask, processRun2, "Process Run2 lumi task", false);
1226+
PROCESS_SWITCH(LumiTask, processRun2, "Process Run2 lumi task", true);
12271227

12281228
void processRun3(BCsWithBcSelsRun3 const& bcs, aod::FT0s const&)
12291229
{

Common/TableProducer/occupancyTableProducer.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1692,7 +1692,7 @@ struct TrackMeanOccTableProducer {
16921692
}
16931693
}
16941694

1695-
using MyTracksQA = aod::TracksQA_002;
1695+
using MyTracksQA = aod::TracksQAVersion; // using MyTracksQA = aod::TracksQA_002;
16961696

16971697
// Process the Data
16981698
int dfCount = 0;

DPG/Tasks/AOTEvent/dEdxVsOccupancyWithTrackQAinfo.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/// \author Igor Altsybeev <Igor.Altsybeev@cern.ch>
1616

1717
#include <vector>
18-
#include "map"
18+
#include <map>
1919

2020
#include "Framework/runDataProcessing.h"
2121
#include "Framework/AnalysisTask.h"

DPG/Tasks/AOTEvent/detectorOccupancyQa.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/// \author Igor Altsybeev <Igor.Altsybeev@cern.ch>
1616

1717
#include <vector>
18-
#include "map"
18+
#include <map>
1919

2020
#include "Framework/runDataProcessing.h"
2121
#include "Framework/AnalysisTask.h"

0 commit comments

Comments
 (0)