Skip to content

Commit b253531

Browse files
authored
fixed access to external file (#2024)
1 parent 6926d54 commit b253531

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

MC/config/PWGLF/pythia8/generator_pythia8_deuteron_wigner.C

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,11 @@ public:
3131
// Connect to CCDB and retrieve coalescence probability two-dimensional table
3232
o2::ccdb::CcdbApi ccdb_api;
3333
ccdb_api.init("https://alice-ccdb.cern.ch");
34-
TFile* file = ccdb_api.retrieveFromTFileAny<TFile>("Users/a/alcaliva/WignerCoalescence/ArgonneProbability.root");
34+
35+
mTwoDimCoalProbability = ccdb_api.retrieveFromTFileAny<TH2D>("Users/a/alcaliva/WignerCoalescence/ArgonneProbability/AddedSDWave");
3536

36-
if (!file) {
37-
LOG(fatal) << "Could not retrieve ArgonneProbability.root from CCDB!";
38-
}
39-
40-
mTwoDimCoalProbability = dynamic_cast<TH2D*>(file->FindObject("AddedSDWave"));
4137
if (!mTwoDimCoalProbability) {
42-
LOG(fatal) << "Could not find 'AddedSDWave' histogram in the input file!";
38+
LOG(fatal) << "Could not find coalescence probability table in input file!";
4339
}
4440
}
4541

0 commit comments

Comments
 (0)