16 #include <boost/algorithm/string/split.hpp>
17 #include <boost/algorithm/string_regex.hpp>
28 debug_ =
pset.getUntrackedParameter<
bool>(
"debug",
false);
29 inputFileName_ =
pset.getUntrackedParameter<
string>(
"inputFile");
34 cout <<
"[DTTPGParamsWriter]Constructor called!" << endl;
40 cout <<
"[DTTPGParamsWriter]Destructor called!" << endl;
46 cout <<
"[DTTPGParamsWriter]Reading data from file." << endl;
48 std::ifstream inputFile_(inputFileName_.c_str());
52 while (std::getline(inputFile_,
line)) {
56 pharseLine(
line, chId, fine, coarse);
62 std::cout <<
"[DTTPGParamsWriter] Read data for chamber " << chId <<
". File params -> fine: " << fine
63 <<
" coarse: " << coarse <<
". DB params -> fine: " << fineDB <<
" coarse: " << coarseDB << std::endl;
68 std::cout <<
"[DTTPGParamsWriter] # of entries written the the DB: " <<
nLines << std::endl;
71 std::cout <<
"[DTTPGParamsWriter] # of DB entries != 250. Check you input file!" << std::endl;
82 boost::algorithm::is_any_of(
string(
" \t\n")));
85 std::cout <<
"[DTTPGParamsWriter] wrong number of entries in line : " <<
line
86 <<
" pleas check your input file syntax!" << std::endl;
97 cout <<
"[DTTPGParamsWriter] Writing ttrig object to DB!" << endl;
99 string delayRecord =
"DTTPGParametersRcd";