Skip to content

Commit b26aec4

Browse files
author
Mattia Faggin
committed
Add the same development for propagationService.
1 parent 886f869 commit b26aec4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Common/TableProducer/trackPropagation.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ struct TrackPropagation {
142142
unsigned int n = gRandom->Integer(100000);
143143
std::string tmpDirName = std::string("./") + std::to_string(n);
144144
LOG(info) << " --> rnd number extracted: " << n;
145+
145146
trackTunerObj.getDcaGraphs(tmpDirName);
146147
trackTunedTracks->SetTitle(outputStringParams.c_str());
147148
trackTunedTracks->GetXaxis()->SetBinLabel(1, "all tracks");

Common/Tools/TrackPropagationModule.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,14 @@ class TrackPropagationModule
154154
break;
155155
}
156156

157-
trackTunerObj.getDcaGraphs();
157+
// define the tmp directory to be used in case of download of the file from CCDB
158+
// random number extracted, to avoid file writing in the same tmp directory
159+
gRandom->SetSeed(0);
160+
unsigned int n = gRandom->Integer(100000);
161+
std::string tmpDirName = std::string("./") + std::to_string(n);
162+
LOG(info) << " --> rnd number extracted: " << n;
163+
164+
trackTunerObj.getDcaGraphs(tmpDirName);
158165
}
159166

160167
trackTunedTracks = registry.template add<TH1>("trackTunedTracks", "trackTunedTracks", o2::framework::kTH1D, {{1, 0.5f, 1.5f}});

0 commit comments

Comments
 (0)