Skip to content

Commit e213e33

Browse files
authored
Merge branch 'AliceO2Group:master' into master
2 parents 710b69b + 2300513 commit e213e33

File tree

931 files changed

+25689
-16879
lines changed

Some content is hidden

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

931 files changed

+25689
-16879
lines changed

ALICE3/DataModel/OTFMCParticle.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
#include <Framework/AnalysisDataModel.h>
2323

24+
#include <cstdint>
25+
2426
namespace o2::aod
2527
{
2628

ALICE3/Macros/drawFastTracker.C

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,25 @@
1414

1515
#include <DataFormatsParameters/GRPMagField.h>
1616
#include <DetectorsBase/Propagator.h>
17+
#include <Framework/Logger.h>
18+
#include <ReconstructionDataFormats/Track.h>
1719
#include <ReconstructionDataFormats/Vertex.h>
1820

1921
#include <TAxis.h>
2022
#include <TCanvas.h>
2123
#include <TDatabasePDG.h>
2224
#include <TEfficiency.h>
2325
#include <TGraph.h>
24-
#include <TH1F.h>
26+
#include <TH1.h>
2527
#include <TLatex.h>
2628
#include <TLorentzVector.h>
29+
#include <TParticlePDG.h>
30+
#include <TString.h>
31+
32+
#include <RtypesCore.h>
33+
34+
#include <cstddef>
35+
#include <vector>
2736

2837
void drawFastTracker(float magneticField = 5.f, // in units of kGauss
2938
const int nch = 100, // number of charged particles per unit rapidity

ALICE3/Macros/testFastTracker.C

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515

1616
#include "ALICE3/Core/FastTracker.h"
1717

18-
#include <CCDB/BasicCCDBManager.h>
19-
#include <DataFormatsParameters/GRPLHCIFData.h>
2018
#include <Framework/Logger.h>
2119

20+
#include <string>
21+
2222
void testFastTracker(std::string geometryFile = "a3geo.ini")
2323
{
2424

ALICE3/Tasks/alice3TrackingPerformance.cxx

Lines changed: 35 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
///
1414
/// \brief This task produces the tracking performance
1515
///
16-
/// \author Nicolò Jacazio, Universita del Piemonte Orientale (IT)
16+
/// \author Nicolò Jacazio, Università del Piemonte Orientale (IT)
1717
/// \since May 27, 2025
1818
///
1919

@@ -46,7 +46,9 @@ std::map<int, std::shared_ptr<TH1>> particlePtDistribution;
4646
std::map<int, std::shared_ptr<TH1>> particleEtaDistribution;
4747
std::map<int, std::shared_ptr<TH1>> ptDistribution;
4848
std::map<int, std::shared_ptr<TH2>> ptResolutionVsPt;
49+
std::map<int, std::shared_ptr<TProfile2D>> ptResolutionVsEta;
4950
std::map<int, std::shared_ptr<TH2>> invPtResolutionVsPt;
51+
std::map<int, std::shared_ptr<TProfile2D>> invPtResolutionVsEta;
5052
std::map<int, std::shared_ptr<TH2>> dcaXyResolutionVsPt;
5153
std::map<int, std::shared_ptr<TH2>> dcaZResolutionVsPt;
5254

@@ -57,26 +59,30 @@ struct Alice3TrackingPerformance {
5759

5860
void init(o2::framework::InitContext&)
5961
{
60-
const AxisSpec axisPt{100, 0, 10, "p_{T} (GeV/c)"};
62+
const AxisSpec axisPt{500, 0, 100, "#it{p}_{T} (GeV/#it{c})"};
6163
const AxisSpec axisEta{100, etaRange.value.first, etaRange.value.second, "#eta"};
62-
const AxisSpec axisPtDelta{100, -1, 1, "p_{T}^{gen} - p_{T}^{reco} (GeV/c)"};
63-
const AxisSpec axisInvPtDelta{100, -1, 1, "1./p_{T}^{gen} - 1./p_{T}^{reco} (GeV/c)^{-1}"};
64+
const AxisSpec axisPtDelta{100, -1, 1, "(#it{p}_{T}^{reco} - #it{p}_{T}^{gen}) / #it{p}_{T}^{gen}"};
65+
const AxisSpec axisInvPtDelta{100, -1, 1, "1./#it{p}_{T}^{gen} - 1./#it{p}_{T}^{reco} (GeV/#it{c})^{-1}"};
6466
const AxisSpec axisDcaXy{100, -1, 1, "DCA_{xy} (cm)"};
6567
const AxisSpec axisDcaZ{100, -1, 1, "DCA_{z} (cm)"};
6668
particlePdgCodes = histos.add<TH1>("particlePdgCodes", "", kTH1D, {AxisSpec{100, -0.5, 99.5, "PDG Code"}});
6769
for (const int& pdg : pdgCodes.value) {
68-
std::string tag = Form("_%d", pdg);
70+
std::string prefix = Form("%i", pdg);
6971
if (pdg < 0) {
70-
tag = Form("_m%d", -pdg);
72+
prefix = Form("m%i", -pdg);
7173
}
72-
particlePtDistribution[pdg] = histos.add<TH1>("particlePtDistribution" + tag, "", kTH1D, {axisPt});
73-
particleEtaDistribution[pdg] = histos.add<TH1>("particleEtaDistribution" + tag, "", kTH1D, {axisEta});
74+
const std::string tag = "_" + prefix;
75+
prefix += "/";
76+
particlePtDistribution[pdg] = histos.add<TH1>(prefix + "particlePtDistribution" + tag, "", kTH1D, {axisPt});
77+
particleEtaDistribution[pdg] = histos.add<TH1>(prefix + "particleEtaDistribution" + tag, "", kTH1D, {axisEta});
7478

75-
ptDistribution[pdg] = histos.add<TH1>("ptDistribution" + tag, "", kTH1D, {axisPt});
76-
ptResolutionVsPt[pdg] = histos.add<TH2>("ptResolutionVsPt" + tag, "", kTH2D, {axisPt, axisPtDelta});
77-
invPtResolutionVsPt[pdg] = histos.add<TH2>("invPtResolutionVsPt" + tag, "", kTH2D, {axisPt, axisInvPtDelta});
78-
dcaXyResolutionVsPt[pdg] = histos.add<TH2>("dcaXyResolutionVsPt" + tag, "", kTH2D, {axisPt, axisDcaXy});
79-
dcaZResolutionVsPt[pdg] = histos.add<TH2>("dcaZResolutionVsPt" + tag, "", kTH2D, {axisPt, axisDcaZ});
79+
ptDistribution[pdg] = histos.add<TH1>(prefix + "ptDistribution" + tag, "", kTH1D, {axisPt});
80+
ptResolutionVsPt[pdg] = histos.add<TH2>(prefix + "ptResolutionVsPt" + tag, "", kTH2D, {axisPt, axisPtDelta});
81+
ptResolutionVsEta[pdg] = histos.add<TProfile2D>(prefix + "ptResolutionVsEta" + tag, "", kTProfile2D, {axisPt, axisEta});
82+
invPtResolutionVsPt[pdg] = histos.add<TH2>(prefix + "invPtResolutionVsPt" + tag, "", kTH2D, {axisPt, axisInvPtDelta});
83+
invPtResolutionVsEta[pdg] = histos.add<TProfile2D>(prefix + "invPtResolutionVsEta" + tag, "", kTProfile2D, {axisPt, axisEta});
84+
dcaXyResolutionVsPt[pdg] = histos.add<TH2>(prefix + "dcaXyResolutionVsPt" + tag, "", kTH2D, {axisPt, axisDcaXy});
85+
dcaZResolutionVsPt[pdg] = histos.add<TH2>(prefix + "dcaZResolutionVsPt" + tag, "", kTH2D, {axisPt, axisDcaZ});
8086
}
8187
}
8288

@@ -110,26 +116,32 @@ struct Alice3TrackingPerformance {
110116
particleEtaDistribution[mcParticle.pdgCode()]->Fill(mcParticle.eta());
111117
}
112118
for (const auto& track : tracks) {
113-
ptDistribution[0]->Fill(track.pt());
114119
if (!track.has_mcParticle()) {
115120
continue;
116121
}
117122
const auto& mcParticle = track.mcParticle();
118-
ptResolutionVsPt[0]->Fill(mcParticle.pt(), mcParticle.pt() - track.pt());
119-
invPtResolutionVsPt[0]->Fill(mcParticle.pt(), 1.f / mcParticle.pt() - 1.f / track.pt());
120-
dcaXyResolutionVsPt[0]->Fill(mcParticle.pt(), track.dcaXY());
121-
dcaZResolutionVsPt[0]->Fill(mcParticle.pt(), track.dcaZ());
123+
const float ptResolution = (track.pt() - mcParticle.pt()) / mcParticle.pt();
124+
const float invptResolution = 1.f / track.pt() - 1.f / mcParticle.pt();
125+
126+
auto fillResolutionHistograms = [&](const int p) {
127+
ptDistribution[p]->Fill(track.pt());
128+
ptResolutionVsPt[p]->Fill(mcParticle.pt(), ptResolution);
129+
ptResolutionVsEta[p]->Fill(mcParticle.pt(), mcParticle.eta(), ptResolution);
130+
invPtResolutionVsPt[p]->Fill(mcParticle.pt(), invptResolution);
131+
invPtResolutionVsEta[p]->Fill(mcParticle.pt(), mcParticle.eta(), invptResolution);
132+
dcaXyResolutionVsPt[p]->Fill(mcParticle.pt(), track.dcaXY());
133+
dcaZResolutionVsPt[p]->Fill(mcParticle.pt(), track.dcaZ());
134+
};
135+
136+
fillResolutionHistograms(0);
137+
122138
if (!isParticleSelected(mcParticle)) {
123139
continue;
124140
}
125141
if (ptResolutionVsPt.find(mcParticle.pdgCode()) == ptResolutionVsPt.end()) {
126142
continue;
127143
}
128-
ptDistribution[mcParticle.pdgCode()]->Fill(mcParticle.pt());
129-
ptResolutionVsPt[mcParticle.pdgCode()]->Fill(mcParticle.pt(), mcParticle.pt() - track.pt());
130-
invPtResolutionVsPt[mcParticle.pdgCode()]->Fill(mcParticle.pt(), 1.f / mcParticle.pt() - 1.f / track.pt());
131-
dcaXyResolutionVsPt[mcParticle.pdgCode()]->Fill(mcParticle.pt(), track.dcaXY());
132-
dcaZResolutionVsPt[mcParticle.pdgCode()]->Fill(mcParticle.pt(), track.dcaZ());
144+
fillResolutionHistograms(mcParticle.pdgCode());
133145
}
134146
}
135147
};

Common/CCDB/EventSelectionParams.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
#ifndef COMMON_CCDB_EVENTSELECTIONPARAMS_H_
1818
#define COMMON_CCDB_EVENTSELECTIONPARAMS_H_
1919

20-
#include <Rtypes.h>
2120
#include <TMath.h>
2221

22+
#include <Rtypes.h>
23+
2324
namespace o2::aod::evsel
2425
{
2526
// Event selection criteria

Common/CCDB/macros/ctpRateF.C

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,24 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12+
#include "Common/CCDB/ctpRateFetcher.h"
13+
14+
#include <CCDB/BasicCCDBManager.h>
15+
#include <CommonConstants/LHCConstants.h>
16+
#include <DataFormatsCTP/Configuration.h>
17+
#include <DataFormatsCTP/Scalers.h>
18+
#include <DataFormatsParameters/GRPLHCIFData.h>
19+
#include <Framework/Logger.h>
20+
21+
#include <cmath>
22+
#include <cstddef>
23+
#include <cstdint>
24+
#include <iostream>
1225
#include <map>
26+
#include <ostream>
27+
#include <string>
1328
#include <vector>
1429

15-
#include "CommonConstants/LHCConstants.h"
16-
#include "DataFormatsCTP/Configuration.h"
17-
#include "DataFormatsCTP/Scalers.h"
18-
#include "DataFormatsParameters/GRPLHCIFData.h"
19-
#include "CCDB/BasicCCDBManager.h"
20-
#include "Common/CCDB/ctpRateFetcher.h"
21-
2230
struct ctpRateFetcher {
2331
ctpRateFetcher() = default;
2432
double fetch(o2::ccdb::BasicCCDBManager* ccdb, uint64_t timeStamp, int runNumber, std::string sourceName);

Common/CCDB/macros/upload_event_selection_params.C

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,19 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
#include "CCDB/CcdbApi.h"
13-
#include "CCDB/BasicCCDBManager.h"
14-
#include "TString.h"
12+
#include "Common/CCDB/EventSelectionParams.h"
13+
14+
#include <CCDB/BasicCCDBManager.h>
15+
#include <CCDB/CcdbApi.h>
16+
17+
#include <TString.h>
18+
19+
#include <RtypesCore.h>
20+
21+
#include <cstdio>
1522
#include <map>
1623
#include <string>
17-
#include "EventSelectionParams.h"
24+
1825
using std::map;
1926
using std::string;
2027

Common/CCDB/macros/upload_event_selection_params_run3.C

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,18 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
#include "CCDB/CcdbApi.h"
13-
#include "TString.h"
12+
#include "Common/CCDB/EventSelectionParams.h"
13+
14+
#include <CCDB/CcdbApi.h>
15+
#include <Framework/Logger.h>
16+
17+
#include <TString.h>
18+
19+
#include <RtypesCore.h>
20+
21+
#include <cstdlib>
1422
#include <map>
1523
#include <string>
16-
#include "EventSelectionParams.h"
1724
using std::map;
1825
using std::string;
1926

@@ -140,4 +147,4 @@ void fillMapOfCustomOrbitShifts(std::map<int, int>& mapOrbitShift)
140147
mapOrbitShift[523797] = 41;
141148
mapOrbitShift[523821] = 36;
142149
mapOrbitShift[523897] = 38;
143-
}
150+
}

Common/CCDB/macros/upload_trigger_aliases.C

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,17 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
#include "CCDB/CcdbApi.h"
13-
#include "CCDB/BasicCCDBManager.h"
14-
#include "TObjArray.h"
15-
#include "TriggerAliases.h"
16-
#include "TTree.h"
17-
#include "TString.h"
12+
#include "Common/CCDB/TriggerAliases.h"
13+
14+
#include <CCDB/BasicCCDBManager.h>
15+
#include <CCDB/CcdbApi.h>
16+
#include <Framework/Logger.h>
17+
18+
#include <TObjArray.h>
19+
#include <TString.h>
20+
21+
#include <RtypesCore.h>
22+
1823
#include <fstream>
1924
#include <map>
2025
#include <string>

Common/CCDB/macros/upload_trigger_aliases_run3.C

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,18 @@
99
// granted to it by virtue of its status as an Intergovernmental Organization
1010
// or submit itself to any jurisdiction.
1111

12-
#include "DataFormatsCTP/Configuration.h"
13-
#include "CCDB/CcdbApi.h"
14-
#include "CCDB/BasicCCDBManager.h"
15-
#include "TObjArray.h"
16-
#include "TriggerAliases.h"
17-
#include "TTree.h"
18-
#include "TString.h"
12+
#include "Common/CCDB/TriggerAliases.h"
13+
14+
#include <CCDB/BasicCCDBManager.h>
15+
#include <CCDB/CcdbApi.h>
16+
#include <DataFormatsCTP/Configuration.h>
17+
#include <Framework/Logger.h>
18+
19+
#include <TObjArray.h>
20+
#include <TString.h>
21+
22+
#include <RtypesCore.h>
23+
1924
#include <fstream>
2025
#include <map>
2126
#include <string>

0 commit comments

Comments
 (0)