Skip to content

Commit 85c290c

Browse files
Merge branch 'AliceO2Group:master' into master
2 parents 9a8d0fb + 3786573 commit 85c290c

File tree

91 files changed

+9153
-4112
lines changed

Some content is hidden

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

91 files changed

+9153
-4112
lines changed

ALICE3/DataModel/OTFMulticharm.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ DECLARE_SOA_COLUMN(XiccMass, xiccMass, float);
4040
// kine vars
4141
DECLARE_SOA_COLUMN(XiccPt, xiccPt, float);
4242
DECLARE_SOA_COLUMN(XiccEta, xiccEta, float);
43+
DECLARE_SOA_COLUMN(XicPt, xicPt, float);
44+
DECLARE_SOA_COLUMN(XicEta, xicEta, float);
4345

4446
// topo vars
4547
DECLARE_SOA_COLUMN(XiDCAz, xiDCAz, float);
@@ -122,12 +124,15 @@ DECLARE_SOA_TABLE(MCharmIndices, "AOD", "MCharmIndices",
122124
otfmulticharm::XiCCPionId);
123125

124126
DECLARE_SOA_TABLE(MCharmCores, "AOD", "MCharmCores",
125-
otfmulticharm::XicDauDCA,
126-
otfmulticharm::XiccDauDCA,
127-
otfmulticharm::XicMass,
128127
otfmulticharm::XiccMass,
129128
otfmulticharm::XiccPt,
130129
otfmulticharm::XiccEta,
130+
otfmulticharm::XiccDauDCA,
131+
132+
otfmulticharm::XicMass,
133+
otfmulticharm::XicPt,
134+
otfmulticharm::XicEta,
135+
otfmulticharm::XicDauDCA,
131136

132137
otfmulticharm::XiDCAxy,
133138
otfmulticharm::XiDCAz,

ALICE3/TableProducer/alice3-multicharmTable.cxx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -734,9 +734,10 @@ struct alice3multicharmTable {
734734
picc.globalIndex());
735735

736736
multiCharmCore(
737-
thisXiCcandidate.dca, thisXiCCcandidate.dca,
738-
thisXiCcandidate.mass, thisXiCCcandidate.mass,
739-
thisXiCCcandidate.pt, thisXiCCcandidate.eta,
737+
thisXiCCcandidate.mass, thisXiCCcandidate.pt,
738+
thisXiCCcandidate.eta, thisXiCCcandidate.dca,
739+
thisXiCcandidate.mass, thisXiCcandidate.pt,
740+
thisXiCcandidate.eta, thisXiCcandidate.dca,
740741
xi.dcaXY(), xi.dcaZ(),
741742
xicdcaXY, xicdcaZ,
742743
xiccdcaXY, xiccdcaZ,
@@ -756,12 +757,10 @@ struct alice3multicharmTable {
756757
pi1cTOFDiffOuter, pi1c.nSigmaPionOuterTOF(),
757758
pi1c.hasSigPi(), pi1c.nSigmaPionRich(),
758759
getPdgCodeForTrack(pi1c),
759-
760760
pi2cTOFDiffInner, pi2c.nSigmaPionInnerTOF(),
761761
pi2cTOFDiffOuter, pi2c.nSigmaPionOuterTOF(),
762762
pi2c.hasSigPi(), pi2c.nSigmaPionRich(),
763763
getPdgCodeForTrack(pi2c),
764-
765764
piccTOFDiffInner, picc.nSigmaPionInnerTOF(),
766765
piccTOFDiffOuter, picc.nSigmaPionOuterTOF(),
767766
picc.hasSigPi(), picc.nSigmaPionRich(),
@@ -774,9 +773,7 @@ struct alice3multicharmTable {
774773
prFromLa.dcaXY(), prFromLa.dcaZ(),
775774
piFromLa.pt(), piFromLa.eta(),
776775
piFromLa.dcaXY(), piFromLa.dcaZ(),
777-
pi1c.eta(),
778-
pi2c.eta(),
779-
picc.eta());
776+
pi1c.eta(), pi2c.eta(), picc.eta());
780777
}
781778
}
782779
histos.fill(HIST("hCombinationsXiCC"), nCombinationsCC);

ALICE3/Tasks/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ o2physics_add_dpl_workflow(alice3-taskcorrelationddbar
6161

6262
o2physics_add_dpl_workflow(alice3-multicharm
6363
SOURCES alice3-multicharm.cxx
64-
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore
64+
PUBLIC_LINK_LIBRARIES O2Physics::AnalysisCore O2Physics::MLCore
6565
COMPONENT_NAME Analysis)
6666

6767
o2physics_add_dpl_workflow(alice3-efficiency

ALICE3/Tasks/alice3-multicharm.cxx

Lines changed: 244 additions & 46 deletions
Large diffs are not rendered by default.

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
/PWGMM/Lumi @alibuild @aalkin @jgcn
5959
/PWGMM/UE @alibuild @aalkin @aortizve @jgcn
6060

61-
/PWGUD @alibuild @pbuehler @abylinkin @rolavick
61+
/PWGUD @alibuild @pbuehler @nystrand @rolavick
6262
/PWGJE @alibuild @lhavener @maoyx @nzardosh @fjonasALICE @mfasDa @mhemmer-cern
6363
/Tools/PIDML @alibuild @saganatt
6464
/Tools/ML @alibuild @fcatalan92 @fmazzasc

Common/DataModel/Multiplicity.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ DECLARE_SOA_TABLE(MFTMults, "AOD", "MFTMULT", //! Multiplicity with MFT
125125
mult::MFTNalltracks, mult::MFTNtracks);
126126
using BarrelMults = soa::Join<TrackletMults, TPCMults, PVMults>;
127127
using Mults = soa::Join<BarrelMults, FV0Mults, FT0Mults, FDDMults, ZDCMults>;
128+
using MultsRun3 = soa::Join<TPCMults, PVMults, FV0Mults, FT0Mults, FDDMults, ZDCMults>;
128129
using FT0Mult = FT0Mults::iterator;
129130
using MFTMult = MFTMults::iterator;
130131
using Mult = Mults::iterator;

Common/TableProducer/eventSelection.cxx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ struct BcSelectionTask {
8484
int mITSROFrameEndBorderMargin = 20; // default value
8585
int mTimeFrameStartBorderMargin = 300; // default value
8686
int mTimeFrameEndBorderMargin = 4000; // default value
87+
std::string strLPMProductionTag = ""; // MC production tag to be retrieved from AO2D metadata
88+
8789
TriggerAliases* aliases = nullptr;
8890
EventSelectionParams* par = nullptr;
8991
std::map<uint64_t, uint32_t>* mapRCT = nullptr;
@@ -99,6 +101,8 @@ struct BcSelectionTask {
99101
ccdb->setURL("http://alice-ccdb.cern.ch");
100102
ccdb->setCaching(true);
101103
ccdb->setLocalObjectValidityChecking();
104+
strLPMProductionTag = metadataInfo.get("LPMProductionTag"); // to extract info from ccdb by the tag
105+
102106
histos.add("hCounterInvalidBCTimestamp", "", kTH1D, {{1, 0., 1.}});
103107
}
104108

@@ -256,7 +260,7 @@ struct BcSelectionTask {
256260
// duration of TF in bcs
257261
nBCsPerTF = 32; // hard-coded for Run3 MC (no info from ccdb at the moment)
258262
} else {
259-
auto runInfo = o2::parameters::AggregatedRunInfo::buildAggregatedRunInfo(o2::ccdb::BasicCCDBManager::instance(), run);
263+
auto runInfo = o2::parameters::AggregatedRunInfo::buildAggregatedRunInfo(o2::ccdb::BasicCCDBManager::instance(), run, strLPMProductionTag);
260264
// SOR and EOR timestamps
261265
sorTimestamp = runInfo.sor;
262266
eorTimestamp = runInfo.eor;
@@ -511,10 +515,11 @@ struct EventSelectionTask {
511515
int lastRun = -1; // last run number (needed to access ccdb only if run!=lastRun)
512516
std::bitset<nBCsPerOrbit> bcPatternB; // bc pattern of colliding bunches
513517

514-
int64_t bcSOR = -1; // global bc of the start of the first orbit
515-
int64_t nBCsPerTF = -1; // duration of TF in bcs, should be 128*3564 or 32*3564
516-
int rofOffset = -1; // ITS ROF offset, in bc
517-
int rofLength = -1; // ITS ROF length, in bc
518+
int64_t bcSOR = -1; // global bc of the start of the first orbit
519+
int64_t nBCsPerTF = -1; // duration of TF in bcs, should be 128*3564 or 32*3564
520+
int rofOffset = -1; // ITS ROF offset, in bc
521+
int rofLength = -1; // ITS ROF length, in bc
522+
std::string strLPMProductionTag = ""; // MC production tag to be retrieved from AO2D metadata
518523

519524
int32_t findClosest(int64_t globalBC, std::map<int64_t, int32_t>& bcs)
520525
{
@@ -580,6 +585,7 @@ struct EventSelectionTask {
580585
}
581586
}
582587
}
588+
strLPMProductionTag = metadataInfo.get("LPMProductionTag"); // to extract info from ccdb by the tag
583589

584590
ccdb->setURL("http://alice-ccdb.cern.ch");
585591
ccdb->setCaching(true);
@@ -678,7 +684,7 @@ struct EventSelectionTask {
678684
int run3min = 500000;
679685
if (run != lastRun && run >= run3min) {
680686
lastRun = run;
681-
auto runInfo = o2::parameters::AggregatedRunInfo::buildAggregatedRunInfo(o2::ccdb::BasicCCDBManager::instance(), run);
687+
auto runInfo = o2::parameters::AggregatedRunInfo::buildAggregatedRunInfo(o2::ccdb::BasicCCDBManager::instance(), run, strLPMProductionTag);
682688
// first bc of the first orbit
683689
bcSOR = runInfo.orbitSOR * nBCsPerOrbit;
684690
// duration of TF in bcs

Common/TableProducer/eventSelectionService.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ struct eventselectionRun2 {
9191

9292
// task-specific
9393
timestampMod.init(timestampConfigurables, metadataInfo);
94-
bcselmodule.init(context, bcselOpts, histos);
94+
bcselmodule.init(context, bcselOpts, histos, metadataInfo);
9595
evselmodule.init(context, evselOpts, histos, metadataInfo);
9696
}
9797

@@ -154,7 +154,7 @@ struct eventselectionRun3 {
154154

155155
// task-specific
156156
timestampMod.init(timestampConfigurables, metadataInfo);
157-
bcselmodule.init(context, bcselOpts, histos);
157+
bcselmodule.init(context, bcselOpts, histos, metadataInfo);
158158
evselmodule.init(context, evselOpts, histos, metadataInfo);
159159
lumimodule.init(context, lumiOpts, histos);
160160
}

0 commit comments

Comments
 (0)