Skip to content

Commit 3a57b2d

Browse files
Merge branch 'AliceO2Group:master' into helicity_histos
2 parents bf45d82 + 0b6f3aa commit 3a57b2d

File tree

134 files changed

+10920
-3944
lines changed

Some content is hidden

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

134 files changed

+10920
-3944
lines changed

ALICE3/TableProducer/alice3-multicharmTable.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ struct alice3multicharmTable {
723723
histos.fill(HIST("hDCAxyXiCC"), std::fabs(xiccdcaXY * 1e+4));
724724
histos.fill(HIST("hDCAzXiCC"), std::fabs(xiccdcaZ * 1e+4));
725725

726-
if (std::fabs(thisXiCcandidate.eta) > xiccMaxEta)
726+
if (std::fabs(thisXiCCcandidate.eta) > xiccMaxEta)
727727
continue; // not in central barrel
728728

729729
histos.fill(HIST("hCharmBuilding"), 3.0f);

Common/CCDB/ctpRateFetcher.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void ctpRateFetcher::setupRun(int runNumber, o2::ccdb::BasicCCDBManager* ccdb, u
109109
delete mScalers;
110110
delete mLHCIFdata;
111111
}
112-
std::map<string, string> metadata;
112+
std::map<std::string, std::string> metadata;
113113
mLHCIFdata = ccdb->getSpecific<parameters::GRPLHCIFData>("GLO/Config/GRPLHCIF", timeStamp, metadata);
114114
if (mLHCIFdata == nullptr) {
115115
LOG(fatal) << "GRPLHCIFData not in database, timestamp:" << timeStamp;

Common/TableProducer/eventSelection.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1286,7 +1286,7 @@ struct LumiTask {
12861286
LOGP(warn, "Cross section for z={} + z={} @ {} GeV is not defined", beamZ1, beamZ2, sqrts);
12871287
}
12881288
// getting CTP config to extract lumi class indices (used for rate fetching and pileup correction)
1289-
std::map<string, string> metadata;
1289+
std::map<std::string, std::string> metadata;
12901290
metadata["runNumber"] = std::to_string(run);
12911291
auto config = ccdb->getSpecific<o2::ctp::CTPConfiguration>("CTP/Config/Config", ts, metadata);
12921292
auto classes = config->getCTPClasses();

Common/TableProducer/multiplicityExtraTable.cxx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ struct MultiplicityExtraTable {
3636
Produces<aod::Mults2BC> mult2bc;
3737
Produces<aod::BC2Mults> bc2mult;
3838

39+
// auxiliary for MC
40+
Produces<aod::MultHepMCHIs> multHepMCHIs;
41+
3942
// Allow for downscaling of BC table for less space use in derived data
4043
Configurable<float> bcDownscaleFactor{"bcDownscaleFactor", 2, "Downscale factor for BC table (0: save nothing, 1: save all)"};
4144
Configurable<float> minFT0CforBCTable{"minFT0CforBCTable", 25.0f, "Minimum FT0C amplitude to fill BC table to reduce data"};
@@ -277,9 +280,22 @@ struct MultiplicityExtraTable {
277280
}
278281
}
279282

283+
void processHepMCHeavyIons(aod::HepMCHeavyIons const& hepmchis)
284+
{
285+
for (auto const& hepmchi : hepmchis) {
286+
multHepMCHIs(hepmchi.mcCollisionId(),
287+
hepmchi.ncollHard(),
288+
hepmchi.npartProj(),
289+
hepmchi.npartTarg(),
290+
hepmchi.ncoll(),
291+
hepmchi.impactParameter());
292+
}
293+
}
294+
280295
// Process switches
281296
PROCESS_SWITCH(MultiplicityExtraTable, processBCs, "Produce BC tables", true);
282297
PROCESS_SWITCH(MultiplicityExtraTable, processCollisionNeighbors, "Produce neighbor timing tables", true);
298+
PROCESS_SWITCH(MultiplicityExtraTable, processHepMCHeavyIons, "Produce MultHepMCHIs tables", false);
283299
};
284300

285301
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)

Common/TableProducer/qVectorsTable.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ struct qVectorsTable {
154154
Produces<aod::QvectorBTotVecs> qVectorBTotVec;
155155
/////////////////////////////////////////////////////////////////
156156

157-
std::unordered_map<string, bool> useDetector = {
157+
std::unordered_map<std::string, bool> useDetector = {
158158
{"QvectorBTots", cfgUseBTot},
159159
{"QvectorBNegs", cfgUseBNeg},
160160
{"QvectorBPoss", cfgUseBPos},

Common/Tools/EventSelectionTools.h

Lines changed: 183 additions & 27 deletions
Large diffs are not rendered by default.

Common/Tools/MultModule.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,11 @@ class MultModule
505505
internalOpts.generatorName.value = "PYTHIA";
506506
}
507507

508+
// capture the need for PYTHIA calibration in light ion runs automatically
509+
if (metadataInfo.isMC() && mRunNumber >= 564250 && mRunNumber <= 564472) {
510+
internalOpts.generatorName.value = "PYTHIA";
511+
}
512+
508513
// list enabled tables
509514
for (int i = 0; i < nTablesConst; i++) {
510515
// printout to be improved in the future
@@ -857,7 +862,7 @@ class MultModule
857862
if (!hVtxZNGlobalTracks || std::fabs(collision.posZ()) > 15.0f) {
858863
mults.multGlobalTracksZeq = mults.multGlobalTracks; // if no equalization available, don't do it
859864
} else {
860-
mults.multGlobalTracksZeq = hVtxZNGlobalTracks->Interpolate(0.0) * mults.multFT0C / hVtxZNGlobalTracks->Interpolate(collision.posZ());
865+
mults.multGlobalTracksZeq = hVtxZNGlobalTracks->Interpolate(0.0) * mults.multGlobalTracks / hVtxZNGlobalTracks->Interpolate(collision.posZ());
861866
}
862867

863868
// provide vertex-Z equalized Nglobals (or non-equalized if missing or beyond range)

Common/Tools/PID/handleParamTPCResponse.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ bool initOptionsAndParse(bpo::options_description& options, int argc, char* argv
4848
"paramMultNormalization", bpo::value<float>()->default_value(11000.), "Multiplicity Normalization")(
4949
"paramnClNormalization", bpo::value<float>()->default_value(152.), "Maximum nClusters for normalisation (159 for run 2, 152 for run 3)")(
5050
"useDefaultParam", bpo::value<bool>()->default_value(true), "Use default sigma parametrisation")(
51-
"mode", bpo::value<string>()->default_value(""), "Running mode ('read' from file, 'write' to file, 'pull' from CCDB, 'push' to CCDB)")(
51+
"mode", bpo::value<std::string>()->default_value(""), "Running mode ('read' from file, 'write' to file, 'pull' from CCDB, 'push' to CCDB)")(
5252
"help,h", "Produce help message.");
5353
setStandardOpt(options);
5454
try {

DPG/Tasks/AOTEvent/detectorOccupancyQa.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,7 @@ struct DetectorOccupancyQaTask {
736736
int nCollInTimeWindowSelIfTOF = 0;
737737
double multFT0CmainCollision = 0.f;
738738
double multFT0CInTimeWindow = 0.f;
739-
map<int64_t, int32_t> mUniqueBC;
739+
std::map<int64_t, int32_t> mUniqueBC;
740740

741741
bool sel = col.selection_bit(kIsTriggerTVX);
742742

0 commit comments

Comments
 (0)