Changeset 8891 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 05/15/08 19:37:27 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r8795 r8891 2157 2157 if (n==0) 2158 2158 { 2159 *fLog << warn << "MStatusDisplay::Read: No objects read." << endl; 2159 const Bool_t store = TH1::AddDirectoryStatus(); 2160 TH1::AddDirectory(kFALSE); 2161 2162 TIter Next(gFile->GetListOfKeys()); 2163 TObject *key = 0; 2164 while ((key=Next())) 2165 { 2166 TCanvas *c=0; 2167 gFile->GetObject(key->GetName(), c); 2168 if (!c) 2169 break; 2170 2171 if (list.GetEntries()==0) 2172 list.Add(new TNamed(GetName(), GetTitle())); 2173 2174 list.Add(c); 2175 } 2176 2177 TH1::AddDirectory(store); 2178 2179 if (list.GetEntries()==0) 2180 { 2181 *fLog << warn << "MStatusDisplay::Read: No objects read." << endl; 2182 return 0; 2183 } 2184 2185 *fLog << inf << "MStatusDisplay: " << list.GetEntries() << " canvases directly read from file." << endl; 2186 } 2187 2188 2189 if (!Display(list, tab)) 2190 { 2191 *fLog << err << "MStatusDisplay::Display: No entries found." << endl; 2160 2192 return 0; 2161 2193 } 2162 2194 2163 if (!Display(list, tab)) 2164 {2165 *fLog << err << "MStatusDisplay::Display: No entry in " << name << "." << endl; 2166 return 0;2167 }2195 2196 cout << "Display done." << endl; 2197 2198 if (n==0) 2199 return list.GetEntries(); 2168 2200 2169 2201 *fLog << inf << "MStatusDisplay: Key " << name << " with " << n << " keys read from file." << endl; 2170 2171 2202 return n; 2172 2203 }
Note:
See TracChangeset
for help on using the changeset viewer.