Hi all,

i have to make function that will have 4 input parameters:

- float Ex
- float Ey
- float Ey
- TVector3 n(x,y,z)

float Function(float Ex, float Ey, float Ez, TVector3 n(x,y,z))

this way root sho that Function is not defined in curent scope.

One way to do this is to put TVector3 components x,y,z as inputs like this, this way function will have 6 inputs:

float Function (float Ex, float Ey, float Ez, float x, float y, float z)

and to later create TVector3 n(x,y,z).

Is there any way for TVector to be input for function?