Changeset 4895 for trunk/MagicSoft/Mars/mhbase
- Timestamp:
- 09/09/04 15:43:47 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhbase/MH.cc
r3583 r4895 199 199 #endif 200 200 201 // All this is reset by TAxis::Set 202 const TAttAxis att(x); 203 const Bool_t tm(x.GetTimeDisplay()); 204 const TString tf(x.GetTimeFormat()); 205 201 206 // 202 207 // This is a necessary workaround if one wants to set … … 211 216 // 212 217 x.Set(binsx->GetNumBins(), binsx->GetEdges()); 218 219 // All this is reset by TAxis::Set 220 att.Copy(x); 221 x.SetTimeDisplay(tm); 222 x.SetTimeFormat(tf); 223 213 224 #if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03) 214 225 x.SetTitle(xtitle); … … 233 244 #endif 234 245 246 // All this is reset by TAxis::Set 247 const TAttAxis attx(x); 248 const TAttAxis atty(y); 249 const Bool_t tmx(x.GetTimeDisplay()); 250 const Bool_t tmy(y.GetTimeDisplay()); 251 const TString tfx(x.GetTimeFormat()); 252 const TString tfy(y.GetTimeFormat()); 253 235 254 // 236 255 // This is a necessary workaround if one wants to set … … 247 266 x.Set(binsx->GetNumBins(), binsx->GetEdges()); 248 267 y.Set(binsy->GetNumBins(), binsy->GetEdges()); 268 269 // All this is reset by TAxis::Set 270 attx.Copy(x); 271 atty.Copy(y); 272 x.SetTimeDisplay(tmx); 273 y.SetTimeDisplay(tmy); 274 x.SetTimeFormat(tfx); 275 y.SetTimeFormat(tfy); 276 249 277 #if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03) 250 278 x.SetTitle(xtitle); … … 272 300 #endif 273 301 302 // All this is reset by TAxis::Set 303 const TAttAxis attx(x); 304 const TAttAxis atty(y); 305 const TAttAxis attz(z); 306 const Bool_t tmx(x.GetTimeDisplay()); 307 const Bool_t tmy(y.GetTimeDisplay()); 308 const Bool_t tmz(z.GetTimeDisplay()); 309 const TString tfx(x.GetTimeFormat()); 310 const TString tfy(y.GetTimeFormat()); 311 const TString tfz(z.GetTimeFormat()); 312 274 313 // 275 314 // This is a necessary workaround if one wants to set … … 288 327 y.Set(binsy->GetNumBins(), binsy->GetEdges()); 289 328 z.Set(binsz->GetNumBins(), binsz->GetEdges()); 329 330 // All this is reset by TAxis::Set 331 attx.Copy(x); 332 atty.Copy(y); 333 attz.Copy(z); 334 x.SetTimeDisplay(tmx); 335 y.SetTimeDisplay(tmy); 336 z.SetTimeDisplay(tmz); 337 x.SetTimeFormat(tfx); 338 y.SetTimeFormat(tfy); 339 z.SetTimeFormat(tfz); 340 290 341 #if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03) 291 342 x.SetTitle(xtitle);
Note:
See TracChangeset
for help on using the changeset viewer.