Changeset 9043


Ignore:
Timestamp:
07/27/08 15:02:47 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MParEmulated.cc

    r9035 r9043  
    3838#include "MParEmulated.h"
    3939
     40#include <TClass.h>   // root >=5.20/00
    4041#include <TPRegexp.h>
    4142#include <TMethodCall.h>
    4243#include <TStreamerElement.h>
     44#if ROOT_VERSION_CODE>ROOT_VERSION(5,12,00)
     45#include <TVirtualStreamerInfo.h>
     46#endif
    4347
    4448#include "MLog.h"
     
    8084// Get the class with name clsname and its corresponding streamer info
    8185//
     86#if ROOT_VERSION_CODE<ROOT_VERSION(5,18,00)
    8287TStreamerInfo *MParEmulated::GetStreamerInfo(const TString &clsname) const
     88#else
     89TVirtualStreamerInfo *MParEmulated::GetStreamerInfo(const TString &clsname) const
     90#endif
    8391{
    8492    TClass *cls = gROOT->GetClass(clsname);
     
    8997    }
    9098
     99#if ROOT_VERSION_CODE<ROOT_VERSION(5,18,00)
    91100    TStreamerInfo *info = cls->GetStreamerInfo();
     101#else
     102    TVirtualStreamerInfo *info = cls->GetStreamerInfo();
     103#endif
    92104    if (!info)
    93105    {
     
    118130TMethodCall *MParEmulated::GetterMethod(const char *name, TString clsname, Int_t offset) const
    119131{
     132#if ROOT_VERSION_CODE<ROOT_VERSION(5,18,00)
    120133    TStreamerInfo *info = GetStreamerInfo(clsname);
     134#else
     135    TVirtualStreamerInfo *info = GetStreamerInfo(clsname);
     136#endif
    121137    if (!info)
    122138        return 0;
     
    160176void MParEmulated::Print(TPRegexp &regex, TString clsname, TString prefix, Int_t offset) const
    161177{
     178#if ROOT_VERSION_CODE<ROOT_VERSION(5,18,00)
    162179    TStreamerInfo *info = GetStreamerInfo(clsname);
     180#else
     181    TVirtualStreamerInfo *info = GetStreamerInfo(clsname);
     182#endif
    163183    if (!info)
    164184        return;
  • trunk/MagicSoft/Mars/mbase/MParEmulated.h

    r9035 r9043  
    1212    TString fClassName;
    1313
    14     TStreamerInfo *GetStreamerInfo(const TString &cls) const;
    15     TMethodCall   *GetMethodCall(const char *get, Int_t offset) const;
     14#ifndef __CINT__
     15#if ROOT_VERSION_CODE<ROOT_VERSION(5,18,00)
     16    TStreamerInfo *GetStreamerInfo(const TString &clsname) const;
     17#else
     18    TVirtualStreamerInfo *GetStreamerInfo(const TString &clsname) const;
     19#endif
     20#endif
     21    TMethodCall *GetMethodCall(const char *get, Int_t offset) const;
    1622
    1723public:
  • trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc

    r9041 r9043  
    26942694        // deletion
    26952695        //
     2696
    26962697        //const Bool_t store = c->IsBatch();
    26972698        //c->SetBatch(kTRUE);
     
    27002701
    27012702        //
    2702         // Use the canvas as coordinate system for the overlaying text
     2703        // Change/fix the canvas coordinate system for the overlaying text.
     2704        // This is necessary because root clip everything away which is
     2705        // outside a predefined area, which is (0,0)/(1,1)
    27032706        //
    2704         const Double_t height = 0.015;
    2705 
    2706         const Double_t off = 0.005;
     2707        const Double_t height = 0.015;  // Text height
     2708        const Double_t off    = 0.005;  // Line offset from Text
     2709
    27072710        const Double_t bot = height+off;
    27082711        const Double_t top = 1-bot;
    27092712
    27102713        static_cast<MyCanvas*>(c)->Scale(bot);
     2714
     2715        // If gPad is not set to c all follwing commands will
     2716        // get the wrong numbers for alignment
     2717        gPad = c;
    27112718
    27122719        // Separator Lines
  • trunk/MagicSoft/Mars/merpp.cc

    r9018 r9043  
    11#include <TObjectTable.h>
     2#include <TClass.h>
    23
    34#include "MArgs.h"
Note: See TracChangeset for help on using the changeset viewer.