Error: Symbol gROOT is not defined in current scope

Dear rooter,
I wrote the following codes to get TCutG object. I wrote this lines to a flie “getCutG.C”. When I load this file and try to use this function, I get the error message as the title. What should I add to this function?

//***************************************************
TCutG* getCutG(char *name=“CUTG”,char *title="",char *varX="",char *varY="") {
TCutG *pcutg = (TCutG *)gROOT->GetListOfSpecials->FindObject(“CUTG”);
pcutg->SetName(name);
pcutg->SetTitle(title);
if(!strcmp(varX,"")) pcutg->SetVarX(varX);
if(!strcmp(varY,"")) pcutg->SetVarY(varY);

    return pcutg;

}
//****************************************************

You have a C++ error. Replace the line:

TCutG *pcutg = (TCutG *)gROOT->GetListOfSpecials->FindObject(“CUTG”);

by

TCutG *pcutg = (TCutG *)gROOT->GetListOfSpecials()->FindObject(“CUTG”);

Rene