Skip to content

Commit 827d719

Browse files
authored
fix in MIDdetector.cc (#72)
* fix in MIDdetector.cc * added input file fot MIDdetector.cc * adding copy of MID input file when creating O2 tables * fixing copy of MID input file when creating O2 tables
1 parent c3b988b commit 827d719

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

examples/aod/muonAccEffPID.root

1.55 MB
Binary file not shown.

examples/scripts/createO2tables.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ def check_duplicate(option_name):
223223
aod_path = opt("aod_path")
224224
do_copy(os.path.join(aod_path, "createO2tables.h"), ".")
225225
do_copy(os.path.join(aod_path, "createO2tables.C"), ".")
226+
do_copy("../aod/muonAccEffPID.root", ".")
226227
if qa:
227228
do_copy("diagnostic_tools/dpl-config_std.json", ".")
228229

src/MIDdetector.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ namespace o2 {
7070

7171
auto particle = (GenParticle*) track.Particle.GetObject();
7272

73-
Double_t mom = TMath::Min(track.P, mMomMax[part]);
73+
Double_t mom = TMath::Min(Double_t(track.P), Double_t(mMomMax[part]));
7474

7575
Double_t var[4] = {track.Eta, mom, particle->Z, double(multiplicity)};
7676
Double_t probMuonPID = mAccEffMuonPID[part]->GetBinContent(mAccEffMuonPID[part]->GetBin(var));

0 commit comments

Comments
 (0)