Ignore:
Timestamp:
09/09/04 15:43:47 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mhbase/MH.cc

    r3583 r4895  
    199199#endif
    200200
     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
    201206    //
    202207    // This is a necessary workaround if one wants to set
     
    211216    //
    212217    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
    213224#if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03)
    214225    x.SetTitle(xtitle);
     
    233244#endif
    234245
     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
    235254    //
    236255    // This is a necessary workaround if one wants to set
     
    247266    x.Set(binsx->GetNumBins(), binsx->GetEdges());
    248267    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
    249277#if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03)
    250278    x.SetTitle(xtitle);
     
    272300#endif
    273301
     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
    274313    //
    275314    // This is a necessary workaround if one wants to set
     
    288327    y.Set(binsy->GetNumBins(), binsy->GetEdges());
    289328    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
    290341#if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03)
    291342    x.SetTitle(xtitle);
Note: See TracChangeset for help on using the changeset viewer.