TGeoExtension is a pure virtual class, you can only create derived instances. You either derive from it an implement empty Grab() and Release() functions, or use the built in TGeoRCExtension.
Error: Can’t call TGeoVolume::SetUserExtension(ext) in current scope (tmpfile):1:
Possible candidates are…
(in TGeoVolume)
(in TGeoAtt)
Error: non class,struct,union object GetTopVolume() used with . or -> (tmpfile):1:
*** Interpreter error recovered ***
Is there any other way for me to call a specific volume with its Field?
[quote=“agheata”]Hi,
Which is the exact ROOT version you are using? Can you check if the method TGeoVolume::SetUserExtension exists in your version?
Regards,[/quote]
I’m using version v5-34-01 and TGeoVolume::SetUserExtension does not exist