//MiuMorita //20210608 // //script.C is written command for compile each file //eye_cal_0.C ifstream ifs("filename.txt"); string name; .L ("eye_cal_0.C"); //gSystem -> Load("eye_cal_0.C"); while(ifs >> name){ eye_cal_0(name.c_str(); } //eye_cal_1.C ifstream fin("rootfile.csv"); string sbuf; .L ("eye_cal_1.C"); //gSystem -> Load("eye_cal_1.C"); while(!fin.eof()){ getline(fin,sbuf); TString stxt(sbuf); stxt.ReplaceAll(",", " "); istringstream iss(stxt.Data()); string a; double b; iss >> a >> b; eye_cal_1(a.c_str(),b); } }