22 Error(
APP_NAME,
"No scale factors or configuration file name received!");
35 std::string quality =
"Medium";
36 TDirectory* qualityDirectory =
file->GetDirectory(quality.c_str());
37 if (!qualityDirectory) {
38 Error(
"MuonTriggerSFConfGenerator",
" Directory for quality %s is missing", quality.c_str());
42 TIter nextPeriod(qualityDirectory->GetListOfKeys());
43 while ((periodKey = (TKey*)nextPeriod())) {
44 std::string
period = periodKey->GetName();
45 TDirectory* periodDirectory = qualityDirectory->GetDirectory(
period.c_str());
46 confFileStream <<
period <<
": ";
49 TIter nextTrigger(periodDirectory->GetListOfKeys());
51 while ((triggerKey = (TKey*)nextTrigger())) {
52 if (isFirst) isFirst =
false;
53 else confFileStream <<
", ";
54 std::string trigger = triggerKey->GetName();
55 confFileStream << triggerKey->GetName();
57 confFileStream <<
";\n";
61 confFileStream.close();