Convert ‘double’ to ‘TVector3

Hi,

I’m trying to set up SLitrani but at a relative far point I receive:

In file included from TLitMedium.cpp:13:0:
TLitVolume.h:221:71: error: could not convert ‘0.0’ from ‘double’ to ‘TVector3’
Bool_t SetEmission(KindOfDist=on4pi,Double_t=180.0,TVector3=0.0,
^
TLitVolume.h:222:60: error: could not convert ‘0.0’ from ‘double’ to ‘TVector3’
const char* = “”,Bool_t=kFALSE,TVector3=0.0,Bool_t=kFALSE,TVector3=0.0);
^
TLitVolume.h:222:87: error: could not convert ‘0.0’ from ‘double’ to ‘TVector3’
const char* = “”,Bool_t=kFALSE,TVector3=0.0,Bool_t=kFALSE,TVector3=0.0);
^
TLitVolume.h:230:51: error: could not convert ‘0.0’ from ‘double’ to ‘TVector3’
Bool_t SetSourcePoint(Bool_t,TVector3 = 0.0);
^
Makefile:218: recipe for target ‘TLitMedium.o’ failed
make: *** [TLitMedium.o] Error 1

Can maybe someone help out? I don’t know how to handle this.
Thank you very much!

I got it. Since SLitrani was published ROOT obviously changed some variables. In all files SLitrani uses initialized TVector3s one has to change TVector3=0.0 to TVector3={0,0,0}.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.