GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Tracking » Smoothing method in class Kalman
Re: inheritance in C++ important question [message #8083 is a reply to message #8081] Mon, 16 March 2009 14:27 Go to previous messageGo to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *physik.uni-giessen.de
Hi,
sorry but I have not understood well what is your concern.
Of course with ((D*)y) you force to use the functions of the base class "D" for y, and not the ones of the inherited C. This should be always taken into account when using "brute force" casting, and the compiler does not complain. I think this is a feature of C++ and it cannot be avoided at all.

For the RecoHit businnes maybe one should move the function from the daughter class to the mother one (if possible, maybe using some flags), in order to avoid problems. But I have not yet digged inside the code so I am not completely aware on how the problem rises in the execution.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Genfit Doxygen Documentation
Next Topic: problem with TrackCand
Goto Forum:
  


Current Time: Wed Jul 17 18:38:59 CEST 2024

Total time taken to generate the page: 0.01018 seconds