Functions inputs issue

Hi all,
i have to make function that will have 4 input parameters:

  1. float Ex
  2. float Ey
  3. float Ey
  4. 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?

Pass by const reference

float Function (float Ex, float Ey, float Ez, const TVector3& v)

Pass by reference (in case you want to modify the vector within the function)

float Function (float Ex, float Ey, float Ez, TVector3& v)