Hi,
How can I modify the below code to make it work. Because when I run it, it gives me this error:
Error: can not call private or protected function main_likelihood95.C:31:
(compiled) 0 void TFile::operator=(const TFile&);
Calling : TFile::operator=(TFile);
Match rank: file line signature
-
1 (compiled) 0 void TFile::operator=(const TFile&);
*** Interpreter error recovered ***
My code is :
TFile fq;
if (lum=="100pb"){
TFile fq1("/data1/gumus/NewBinning/xsection/DijetHist_step7_newRecJet_L32.root");
fq = fq1;
}
else if (lum=="1fb"){
TFile fq2("/data1/gumus/NewBinning/xsection/DijetHist_step7_newRecJet_L33.root");
fq = fq2;
}
else {
TFile fq3("/data1/gumus/NewBinning/xsection/DijetHist_step7_newRecJet_L34.root");
fq = fq3;
}
Thanks.
Kazim