37 std::ostringstream what;
38 what <<
"PHTFileServer::open - file " << filename <<
" already opened.";
39 std::cout << (what.str()) << std::endl;
42 iter->second->counter()++;
47 std::ostringstream what;
48 what <<
"PHTFileServer::open - opening file " << filename <<
" (" << type <<
")";
49 std::cout << (what.str()) << std::endl;
55 std::cout << (
"PHTFileServer::open - error opening TFile") << std::endl;
68 iter->second->Flush();
72 std::ostringstream what;
73 what <<
"PHTFileServer::flush - file " << filename <<
" not found";
74 std::cout << (what.str()) << std::endl;
91 std::ostringstream what;
92 what <<
"PHTFileServer::flush - file " << filename <<
" not found";
93 std::cout << (what.str()) << std::endl;
106 if (iter->second->counter() > 1)
108 iter->second->counter()--;
109 std::ostringstream what;
110 what <<
"PHTFileServer::write - file " << filename <<
" still in use.";
111 std::cout << (what.str()) << std::endl;
113 else if (iter->second->counter() == 1)
115 iter->second->Write();
116 iter->second->counter()--;
117 std::ostringstream what;
118 what <<
"PHTFileServer::write - writing file " << filename <<
".";
119 std::cout << (what.str()) << std::endl;
123 iter->second->Write();
124 std::ostringstream what;
125 what <<
"PHTFileServer::write - warning: too many calls for file " << filename <<
".";
126 std::cout << (what.str()) << std::endl;
131 std::ostringstream what;
132 what <<
"PHTFileServer::write - file " << filename <<
" not found";
133 std::cout << (what.str()) << std::endl;
147 if (iter.second->IsOpen())
149 if (iter.second->counter())
151 std::ostringstream what;
152 what <<
"PHTFileServer::close - file " << iter.first <<
" forced write with kWriteDelete.";
153 std::cout << (what.str()) << std::endl;
154 iter.second->Write(
"0", TObject::kWriteDelete);
158 std::ostringstream what;
159 what <<
"PHTFileServer::close - closing " << iter.first <<
".";
160 iter.second->Close();
161 std::cout << (what.str()) << std::endl;
178 std::ostringstream what;
179 what <<
"PHTFileServer::SafeTFile::~SafeTFile - file " <<
_filename <<
" forced write with kWriteDelete.";
180 std::cout << (what.str()) << std::endl;
181 Write(
"0", TObject::kWriteDelete);
184 std::ostringstream what;
185 what <<
"PHTFileServer::SafeTFile::~SafeTFile - closing " <<
_filename <<
".";
186 std::cout << (what.str()) << std::endl;