TGeoManager::GetCurrentPoint()

Hi all,
in a source file that will end in a library I have a line like this:

Double_t* startPoint = _theGeoManager->GetCurrentPoint();

According to TGeo documentation and TGeoManager source code too, that
line should work.

Nevertheless I get an error while compiling:

[quote]
SbtSimpleGenAlg.cc:46: error: invalid conversion from ‘const Double_t*’ to ‘Double_t*’[/quote]

They only way to get this working is of course:

const Double_t* startPoint = _theGeoManager->GetCurrentPoint();

Is there any reason for this?

Many thanks in advance,
Marco


I was misleaded by the fact that:

[code] Double_t*  startingPoint  GetCurrentPoint() [/code]

was working in a macro.

Sorry for the noise.


Marco

I was misleaded by the fact that:

was working in a macro.

Sorry for the noise.

Marco