Integral of a complex function?

Dear rooters ,
I have a question about Integral of any function in ROOT. For example a simple numerical integration is:

int NumericalIntegration()
{
    TF1 f("Sin Function", ""TMath::CosH(x)", 0, TMath::Pi());
    ROOT::Math::WrappedTF1 wf1(f);
    ROOT::Math::GaussIntegrator ig;
    ig.SetFunction(wf1, false);
    ig.SetRelTolerance(0.001);
    cout << ig.Integral(0, TMath::PiOver2()) << endl;
 
   return 0;
}

But what about complex variable integration? Let’s say a complex function “cosH(ix)”. How to include the complex variable “i” to the function without getting an error??

Thanks,
L.

Already solved, sorry.