GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » EMC » Error matrix for EMC
Re: Error matrix for EMC [message #11050 is a reply to message #11048] Mon, 04 October 2010 10:50 Go to previous messageGo to previous message
M.Babai is currently offline  M.Babai
Messages: 46
Registered: January 2008
Location: Netherlands
continuous participant
From: *KVI.nl
Hi Stefano,

Here I have the same problem.

The solution is adding #include <cstdlib> or #include <stdlib.h> to PndEmcErrorMatrix.h. Because we use C++, I would prefer the first one.

But the question remains if we need to use abort(). According to the documentation:
======================
Aborts the process with an abnormal program termination.
The function generates the SIGABRT signal, which by default causes the program to terminate returning an unsuccessful termination error code to the host environment.

The program is terminated without executing destructors for objects of automatic or static storage duration, and without calling any atexit function.

The function never returns to its caller.
======================

I have not looked into the source code yet, but in the most cases, it is not a good idea to use abort().

btw. should I add the lines to the headers and submit?

/M

[Updated on: Mon, 04 October 2010 11:04]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Geometry for tiles in front of EMC
Next Topic: which geometry file?
Goto Forum:
  


Current Time: Fri Apr 19 16:22:26 CEST 2024

Total time taken to generate the page: 0.01013 seconds