Skip to content

Commit e9ec3c2

Browse files
authored
Merge branch 'AliceO2Group:master' into modified
2 parents 44c631d + 0d66f8d commit e9ec3c2

File tree

190 files changed

+13423
-6731
lines changed

Some content is hidden

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

190 files changed

+13423
-6731
lines changed

Common/TableProducer/caloClusterProducer.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1728,14 +1728,14 @@ struct CaloClusterProducer {
17281728
case 0:
17291729
return en;
17301730
case 1: { // Data Run3
1731-
const double a = 9.3494e-01;
1732-
const double b = 1.00526e-02;
1733-
const double c = 8.45164e-02;
1734-
const double d = -1.03364e-02;
1735-
const double f = 5.4803e-03;
1736-
const double g = 0.779983;
1737-
const double h = 0.622282;
1738-
const double k = 8.0182e-05;
1731+
const double a = 0.892787;
1732+
const double b = 0.004053;
1733+
const double c = 0.074652;
1734+
const double d = -0.016306;
1735+
const double f = 7.616314;
1736+
const double g = -104.409;
1737+
const double h = 1837.17;
1738+
const double k = 0.000091;
17391739
double eMin = std::max(static_cast<float>(0.1), en); // Parameterization valid down to 100 MeV
17401740
return en * (a + b * eMin + c / eMin + d / (eMin * eMin) + f / ((eMin - g) * (eMin - g) + h * h) + k / std::pow(eMin, 4));
17411741
}

Common/Tools/Multiplicity/multGlauberNBDFitter.cxx

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,7 @@ Bool_t multGlauberNBDFitter::DoFit()
309309
fk = fGlauberNBD->GetParameter(1);
310310
ff = fGlauberNBD->GetParameter(2);
311311
fnorm = fGlauberNBD->GetParameter(3);
312+
fdMu = fGlauberNBD->GetParameter(4);
312313

313314
return fitptr.Get()->IsValid();
314315
}
@@ -369,18 +370,35 @@ Double_t multGlauberNBDFitter::ContinuousNBD(Double_t n, Double_t mu, Double_t k
369370
return F;
370371
}
371372

372-
void multGlauberNBDFitter::CalculateAvNpNc(TProfile* lNPartProf, TProfile* lNCollProf, TH2F* lNPart2DPlot, TH2F* lNColl2DPlot, TH1F* hPercentileMap)
373+
void multGlauberNBDFitter::CalculateAvNpNc(TProfile* lNPartProf, TProfile* lNCollProf, TH2F* lNPart2DPlot, TH2F* lNColl2DPlot, TH1F* hPercentileMap, Double_t lLoRange, Double_t lHiRange)
373374
{
374375
cout << "Calculating <Npart>, <Ncoll> in centrality bins..." << endl;
376+
cout << "Range to calculate: " << lLoRange << " to " << lHiRange << endl;
377+
378+
cout << "Acquiring values from the fit function..." << endl;
379+
380+
fMu = fGlauberNBD->GetParameter(0);
381+
fk = fGlauberNBD->GetParameter(1);
382+
ff = fGlauberNBD->GetParameter(2);
383+
fnorm = fGlauberNBD->GetParameter(3);
384+
fdMu = fGlauberNBD->GetParameter(4);
385+
386+
cout << "Please inspect now: " << endl;
387+
cout << "Glauber NBD mu ............: " << fMu << endl;
388+
cout << "Glauber NBD k .............: " << fk << endl;
389+
cout << "Glauber NBD f .............: " << ff << endl;
390+
cout << "Glauber NBD norm ..........: " << fnorm << endl;
391+
cout << "Glauber NBD dmu/dNanc .....: " << fdMu << endl;
375392

376393
//2-fold nested loop:
377394
// + looping over all Nancestor combinations
378395
// + looping over all possible final multiplicities
379396
// ^---> final product already multiplicity-binned
380397

381398
//______________________________________________________
382-
Double_t lLoRange, lHiRange;
383-
fGlauberNBD->GetRange(lLoRange, lHiRange);
399+
if (lLoRange < -1 && lHiRange < -1) {
400+
fGlauberNBD->GetRange(lLoRange, lHiRange);
401+
}
384402
// bypass to zero
385403
for (int ibin = 0; ibin < fNNpNcPairs; ibin++) {
386404
if (ibin % 2000 == 0)

Common/Tools/Multiplicity/multGlauberNBDFitter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class multGlauberNBDFitter : public TNamed
7575
Double_t ContinuousNBD(Double_t n, Double_t mu, Double_t k);
7676

7777
//For estimating Npart, Ncoll in multiplicity bins
78-
void CalculateAvNpNc(TProfile* lNPartProf, TProfile* lNCollProf, TH2F* lNPart2DPlot, TH2F* lNColl2DPlot, TH1F* hPercentileMap);
78+
void CalculateAvNpNc(TProfile* lNPartProf, TProfile* lNCollProf, TH2F* lNPart2DPlot, TH2F* lNColl2DPlot, TH1F* hPercentileMap, Double_t lLoRange = -1, Double_t lHiRange = -1);
7979

8080
//void Print(Option_t *option="") const;
8181

Common/Tools/TrackTuner.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ struct TrackTuner : o2::framework::ConfigurableGroup {
722722
double deltaDcaXYmean = dcaXYMeanData - dcaXYMeanMC;
723723

724724
// double d0rpn =d0rpmc+dd0rpn-dd0mrpn;
725-
double trackParDcaXYTuned = trackParDcaXYMC + deltaDcaXYTuned - deltaDcaXYmean;
725+
double trackParDcaXYTuned = trackParDcaXYMC + deltaDcaXYTuned + deltaDcaXYmean;
726726

727727
if (debugInfo) {
728728
LOG(info) << dcaZResMC << ", " << dcaZResData << ", diff(DcaZ - DcaZMC): " << deltaDcaZ << ", diff upgraded: " << deltaDcaZTuned << ", DcaZ Data : " << trackParDcaZTuned;

DPG/Tasks/AOTTrack/qaEfficiency.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ struct QaEfficiency {
203203
Configurable<bool> checkForMothers{"checkForMothers", false, "Flag to use the array of mothers to check if the particle of interest come from any of those particles"};
204204
Configurable<std::vector<int>> mothersPDGs{"mothersPDGs", std::vector<int>{3312, -3312}, "PDGs of origin of the particle under study"};
205205
Configurable<bool> keepOnlyHfParticles{"keepOnlyHfParticles", false, "Flag to decide wheter to consider only HF particles"};
206+
Configurable<int> eventGeneratorType{"eventGeneratorType", -1, "Flag to check specific event generator (for HF): -1 -> no check, 0 -> MB events, 4 -> charm triggered, 5 -> beauty triggered"};
206207
// Track only selection, options to select only specific tracks
207208
Configurable<bool> trackSelection{"trackSelection", true, "Local track selection"};
208209
Configurable<int> globalTrackSelection{"globalTrackSelection", 0, "Global track selection: 0 -> No Cut, 1 -> kGlobalTrack, 2 -> kGlobalTrackWoPtEta, 3 -> kGlobalTrackWoDCA, 4 -> kQualityTracks, 5 -> kInAcceptanceTracks, 6 -> custom track cuts via Configurable"};
@@ -1778,6 +1779,11 @@ struct QaEfficiency {
17781779
}
17791780
histos.fill(HIST("MC/generatedCollisions"), 3);
17801781

1782+
if (eventGeneratorType >= 0 && mcCollision.getSubGeneratorId() != eventGeneratorType) {
1783+
LOG(debug) << "Skipping event with different type of generator than the one requested";
1784+
continue;
1785+
}
1786+
17811787
/// loop over reconstructed collisions
17821788
for (const auto& collision : groupedCollisions) {
17831789
histos.fill(HIST("MC/generatedCollisions"), 4);

0 commit comments

Comments
 (0)