Changeset 9043
- Timestamp:
- 07/27/08 15:02:47 (16 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MParEmulated.cc
r9035 r9043 38 38 #include "MParEmulated.h" 39 39 40 #include <TClass.h> // root >=5.20/00 40 41 #include <TPRegexp.h> 41 42 #include <TMethodCall.h> 42 43 #include <TStreamerElement.h> 44 #if ROOT_VERSION_CODE>ROOT_VERSION(5,12,00) 45 #include <TVirtualStreamerInfo.h> 46 #endif 43 47 44 48 #include "MLog.h" … … 80 84 // Get the class with name clsname and its corresponding streamer info 81 85 // 86 #if ROOT_VERSION_CODE<ROOT_VERSION(5,18,00) 82 87 TStreamerInfo *MParEmulated::GetStreamerInfo(const TString &clsname) const 88 #else 89 TVirtualStreamerInfo *MParEmulated::GetStreamerInfo(const TString &clsname) const 90 #endif 83 91 { 84 92 TClass *cls = gROOT->GetClass(clsname); … … 89 97 } 90 98 99 #if ROOT_VERSION_CODE<ROOT_VERSION(5,18,00) 91 100 TStreamerInfo *info = cls->GetStreamerInfo(); 101 #else 102 TVirtualStreamerInfo *info = cls->GetStreamerInfo(); 103 #endif 92 104 if (!info) 93 105 { … … 118 130 TMethodCall *MParEmulated::GetterMethod(const char *name, TString clsname, Int_t offset) const 119 131 { 132 #if ROOT_VERSION_CODE<ROOT_VERSION(5,18,00) 120 133 TStreamerInfo *info = GetStreamerInfo(clsname); 134 #else 135 TVirtualStreamerInfo *info = GetStreamerInfo(clsname); 136 #endif 121 137 if (!info) 122 138 return 0; … … 160 176 void MParEmulated::Print(TPRegexp ®ex, TString clsname, TString prefix, Int_t offset) const 161 177 { 178 #if ROOT_VERSION_CODE<ROOT_VERSION(5,18,00) 162 179 TStreamerInfo *info = GetStreamerInfo(clsname); 180 #else 181 TVirtualStreamerInfo *info = GetStreamerInfo(clsname); 182 #endif 163 183 if (!info) 164 184 return; -
trunk/MagicSoft/Mars/mbase/MParEmulated.h
r9035 r9043 12 12 TString fClassName; 13 13 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; 16 22 17 23 public: -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r9041 r9043 2694 2694 // deletion 2695 2695 // 2696 2696 2697 //const Bool_t store = c->IsBatch(); 2697 2698 //c->SetBatch(kTRUE); … … 2700 2701 2701 2702 // 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) 2703 2706 // 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 2707 2710 const Double_t bot = height+off; 2708 2711 const Double_t top = 1-bot; 2709 2712 2710 2713 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; 2711 2718 2712 2719 // Separator Lines -
trunk/MagicSoft/Mars/merpp.cc
r9018 r9043 1 1 #include <TObjectTable.h> 2 #include <TClass.h> 2 3 3 4 #include "MArgs.h"
Note:
See TracChangeset
for help on using the changeset viewer.