GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » R3BRoot » Simulation Issues » Dynamic cast fails. (That's about it.)
Dynamic cast fails. [message #21625] Tue, 10 October 2017 19:06 Go to next message
lzanetti is currently offline  lzanetti
Messages: 5
Registered: June 2017
Location: TU Darmstadt
occasional visitor
From: *ikp.physik.tu-darmstadt.de
Hello everyone. I've been dusting off my simulator after a couple of months and, sure enough, "something" broke --it is a well known fact that programs break just by existing on a HDD.

The error is the following:

...

[INFO ] ============== FairRunSim: Initialising simulation run ==============
Info in <TGeoManager::TGeoManager>: Geometry FAIRGeom, FAIR geometry created
[INFO ] FairGeoMedia: Read media
[ERROR ] Dynamic cast fails.
[ERROR ] Dynamic cast fails.
[ERROR ] Dynamic cast fails.
[ERROR ] Dynamic cast fails.

...

And the problem is that the simulation output is empty --actually, R3BXBall tells me that no hit is present and no event is written. Since I didn't see (or notice) the errors above and the simulator was working the last time I used it, and the programs are exactly the same, I'm assuming it has something to do with it.

I'm using the latest version of R3BRoot, except the very last commit, which doesn't work for me (opened an issue on GitHub).

Cheers,
L.

~~~

UPDATE: Actually, it seems to be possible to cope some life into the simulator, so the error above should have nothing to do with the simulation being empty. All the same, since it's flagged as an error, it might be worth to investigate the "dynamic cast fail". Also because it was NOT there before.

[Updated on: Tue, 10 October 2017 19:21]

Report message to a moderator

Re: Dynamic cast fails. [message #21629 is a reply to message #21625] Tue, 10 October 2017 19:57 Go to previous messageGo to next message
Jan Mayer is currently offline  Jan Mayer
Messages: 20
Registered: August 2015
occasional visitor
From: *ikp.uni-koeln.de
Hi,

The only occurrences of "Dynamic cast fails." are in FairMCApplication.cxx, if a detector is not derived from FairDetector. Can you attach your Simulation macro?

Jan
Re: Dynamic cast fails. [message #21632 is a reply to message #21629] Tue, 10 October 2017 21:08 Go to previous message
lzanetti is currently offline  lzanetti
Messages: 5
Registered: June 2017
Location: TU Darmstadt
occasional visitor
From: *dip0.t-ipconnect.de
Hi,

Thanks for your answer!

It's not a macro, it's a program. But it's just a user: it doesn't define new detectors, it just uses those that are already there --specifically, in my R3BRoot, which does have a couple of funny detectors in it.
But those did not change since the last time I run the program.

Does the inheritance have to be direct to avoid freakouts in FairMCApplication? Or would a detecto that inherits from another detector that inherits from FairDetector work? It should, I think...

Cheers,
L.

[Updated on: Tue, 10 October 2017 21:08]

Report message to a moderator

Previous Topic: GLAD positioning
Next Topic: Problem with FairMCApplication with R3BRoot on dev-branch
Goto Forum:
  


Current Time: Wed Nov 27 01:20:09 CET 2024

Total time taken to generate the page: 0.00700 seconds