I have a question regarding basic programming skills.
In my Analyzing macro I want the canvas to be named one could imagine from looking at my code.
So it should be named c_intervallHist_2010_11_12
Only the date part should come from a variable named datensatzdatum, the rest is static.
This is a “trick” a friend of mine suggested but it is not working.
Here is the code
[code]//Events über Zeitintervall
char  datensatzdatum = “2010_11_12”;
char  c_intervallHist = “c_intervallHist_”+datensatzdatum;
TCanvas *c_intervallHist = new TCanvas(c_intervallHist, c_intervallHist,284,467,700,502);
TH1* intervallHist = new TH1D("Intervall","Zeit zwischen 2 Events",4096,0,200); intervallHist->GetXaxis()->SetTitle("Zeit zwischen 2 Events [ms]"); intervallHist->GetYaxis()->SetTitle("number of events"); intervallHist->GetXaxis()->SetLabelSize(0.02); intervallHist->GetYaxis()->SetLabelSize(0.02);
When I execute the macro I get the following error
Maybe you can help?