With root 5, I have nothing
root [3] .x MC_Analyzer.cc++
============================================================
============================================================
= Starting MC-Analyzer =====================================
============================================================
============================================================
= (1) S1 - MC analysis =====================================
============================================================
= (2) data maps (Kr83m) ====================================
============================================================
= (3) S1 - comparison of MC vs. data maps ==================
= (4) S1 - parameter variations (of dir) ===================
============================================================
= (5) calibration source ===================================
============================================================
= (6) matching prepare MC values ===========================
= (7) matching process =====================================
============================================================
= (8) S2 - MC analysis =====================================
============================================================
1
= S1 - MC analysis =========================================
============================================================
Which datafile(s) do you want to analyse?
------------------------------------------------------------
(l) for: 2017-10-20_4-26-30_events.root
l
root [4]
but if I change to root5, I will get the following
root [4] .x MC_Analyzer.cc++
In file included from /home/local1/Desktop/MC-TPC/./MC_Analyzer.cc:20:0,
from /home/local1/Desktop/MC-TPC/MC_Analyzer_cc_ACLiC_dict.h:3,
from /home/local1/Desktop/MC-TPC/MC_Analyzer_cc_ACLiC_dict.cxx:17:
/home/local1/Desktop/MC-TPC/./src/optPhot_S1.cc: In function ‘void optPhot_S1(std::string, std::string, std::string, bool)’:
/home/local1/Desktop/MC-TPC/./src/optPhot_S1.cc:50:62: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
optPhot_S1(datafile,26,50,22,output_dir,export_format,batch);//this goes down in root 6.08.06
^
In file included from /usr/include/c++/4.8.2/string:53:0,
from /usr/local/root/5.34.34/include/root/TSchemaHelper.h:25,
from /usr/local/root/5.34.34/include/root/TGenericClassInfo.h:17,
from /usr/local/root/5.34.34/include/root/Rtypes.h:270,
from /usr/local/root/5.34.34/include/root/TObject.h:31,
from /home/local1/Desktop/MC-TPC/MC_Analyzer_cc_ACLiC_dict.h:3,
from /home/local1/Desktop/MC-TPC/MC_Analyzer_cc_ACLiC_dict.cxx:17:
/usr/include/c++/4.8.2/bits/basic_string.tcc:212:5: error: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ [-fpermissive]
basic_string<_CharT, _Traits, _Alloc>::
^
In file included from /home/local1/Desktop/MC-TPC/./MC_Analyzer.cc:20:0,
from /home/local1/Desktop/MC-TPC/MC_Analyzer_cc_ACLiC_dict.h:3,
from /home/local1/Desktop/MC-TPC/MC_Analyzer_cc_ACLiC_dict.cxx:17:
/home/local1/Desktop/MC-TPC/./src/optPhot_S1.cc:50:62: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermissive]
optPhot_S1(datafile,26,50,22,output_dir,export_format,batch);//this goes down in root 6.08.06
^
In file included from /usr/include/c++/4.8.2/string:53:0,
from /usr/local/root/5.34.34/include/root/TSchemaHelper.h:25,
from /usr/local/root/5.34.34/include/root/TGenericClassInfo.h:17,
from /usr/local/root/5.34.34/include/root/Rtypes.h:270,
from /usr/local/root/5.34.34/include/root/TObject.h:31,
from /home/local1/Desktop/MC-TPC/MC_Analyzer_cc_ACLiC_dict.h:3,
from /home/local1/Desktop/MC-TPC/MC_Analyzer_cc_ACLiC_dict.cxx:17:
/usr/include/c++/4.8.2/bits/basic_string.tcc:212:5: error: initializing argument 1 of ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ [-fpermissive]
basic_string<_CharT, _Traits, _Alloc>::
^
In file included from /home/local1/Desktop/MC-TPC/./MC_Analyzer.cc:20:0,
from /home/local1/Desktop/MC-TPC/MC_Analyzer_cc_ACLiC_dict.h:3,
from /home/local1/Desktop/MC-TPC/MC_Analyzer_cc_ACLiC_dict.cxx:17:
/home/local1/Desktop/MC-TPC/./src/optPhot_S1.cc:50:62: error: too many arguments to function ‘void optPhot_S1(std::string, std::string, std::string, bool)’
optPhot_S1(datafile,26,50,22,output_dir,export_format,batch);//this goes down in root 6.08.06
^
/home/local1/Desktop/MC-TPC/./src/optPhot_S1.cc:46:6: note: declared here
void optPhot_S1(string datafile, string output_dir = "", string export_format = "png", bool batch = true) {
^
g++: error: /home/local1/Desktop/MC-TPC/MC_Analyzer_cc_ACLiC_dict.o: No such file or directory
Error: Function MC_Analyzer() is not defined in current scope :0:
!!!Dictionary position not recovered because G__unloadfile() is used in a macro!!!
*** Interpreter error recovered ***
It seems to be interesting. I did not expect that there are other types of errors. I am torn between what I did since the beginning and what I have now because it had compiled at the beginning then I closed it, when I opened it again, it did not run.