Definition at line 3771 of file TRTCalib_makeplots.cxx.
◆ SettingsInfo()
| SettingsInfo::SettingsInfo |
( |
char * | filename | ) |
|
Definition at line 3780 of file TRTCalib_makeplots.cxx.
3781{
3782
3784
3785 TPaveText *
pt =
new TPaveText(.1, .1, 0.9, 0.9);
3786 pt->SetTextAlign(11);
3789 pt->SetLabel(Form(
"TRT calibration Main Settings"));
3790
3792 ifstream myfile(filename);
3793 if (myfile.is_open())
3794 {
3795 while (!myfile.eof())
3796 {
3797 getline(myfile, line);
3798 auto notfirst = [&
line](
const std::string & sub)->
bool{
3799 return line.find(sub)!=0;
3800 };
3801 if (notfirst("#") && notfirst("Clean") && notfirst("Submit") && notfirst("Relink") && notfirst("JobPrefix") && notfirst("Tag") && notfirst("WWW"))
3802 {
3803 int space =
line.find_first_of(
" ");
3804 if (space != -1)
3805 {
3806
3808 }
3809 }
3810 }
3811 for (
const auto & [txt1,txt2]:
set)
3812 {
3813 pt->AddText((
string(txt1 +
" . . . . . . . . . . . . " + txt2)).c_str());
3814 }
3815 myfile.close();
3816 }
3817 else
3818 throw(string("config file not found: ") + string(filename));
3819
3821}
map< string, string > set
◆ set
The documentation for this class was generated from the following file: