Skip to content

Commit ad13ef7

Browse files
committed
Fix in the check of alignment conf method call result
1 parent c04e616 commit ad13ef7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Detectors/Align/Workflow/src/BarrelAlignmentSpec.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,7 @@ void BarrelAlignmentSpec::init(InitContext& ic)
147147
}
148148
std::string tmpmacro = mConfMacro + "+";
149149
TString cmd = gSystem->GetMakeSharedLib();
150-
cmd.ReplaceAll("$Opt", "-O0 -g -ggdb");
151-
150+
cmd += " -O0 -g -ggdb";
152151
// protect macro compilation by semaphore (to avoid problems in the pipelined code)
153152
{
154153
boost::interprocess::named_semaphore* sem = nullptr;
@@ -244,7 +243,7 @@ void BarrelAlignmentSpec::updateTimeDependentParams(ProcessingContext& pc)
244243

245244
// call this in the very end
246245
if (mUsrConfMethod) {
247-
int dummyPar = 0, ret = 0;
246+
int dummyPar = 0, ret = -1;
248247
Controller* tmpPtr = mController.get();
249248
const void* args[2] = {&tmpPtr, &dummyPar};
250249
mUsrConfMethod->Execute(nullptr, args, 2, &ret);

0 commit comments

Comments
 (0)