I have a problem with Project function of TTree.
I am trying to project something into a histogram but it does not work: window which is open is empty.
This is my code
using namespace std;
int check_normalisation(int Brhoref)
int Nspider=0, Nvamos=0;
TFile f = new TFile(text);
cout << text << " is open" << endl;
Analysed_Data = (TTree)f->Get(“Analysed_Data”);
hspider = new TH1F(“hspider”,“hspider”,500,0.,140.);
Analysed_Data->Project(“hspider”,“SEc”,"(1/norm_transfer)*(GATCONF==1 && RUN_NUMBER==338)","");
Canvas is empty. However, if I write
Analysed_Data->Project("hspider","SEc","(1/norm_transfer)*(GATCONF==1 && RUN_NUMBER==338)","");
Could you explain me why it does not work?