Changeset 9195 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 12/21/08 18:09:49 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mbase
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MAGIC.cc
r8029 r9195 30 30 #include "MAGIC.h" 31 31 32 #include <stdlib.h> // getenv (Ubuntu 8.10) 33 32 34 #include <iostream> 33 35 -
trunk/MagicSoft/Mars/mbase/MGMap.cc
r8907 r9195 39 39 #include "MGMap.h" 40 40 41 //#include <limits.h> // INT_MAX 41 #include <climits> // INT_MAX (Ubuntu 8.10) 42 42 43 43 #include <TMath.h> -
trunk/MagicSoft/Mars/mbase/MMath.cc
r8989 r9195 1 1 /* ======================================================================== *\ 2 ! $Name: not supported by cvs2svn $:$Id: MMath.cc,v 1.4 1 2008-07-01 14:03:58tbretz Exp $2 ! $Name: not supported by cvs2svn $:$Id: MMath.cc,v 1.42 2008-12-21 18:09:49 tbretz Exp $ 3 3 ! -------------------------------------------------------------------------- 4 4 ! … … 34 34 #include "MMath.h" 35 35 36 #include <stdlib.h> // atof (Ubuntu 8.10) 37 36 38 #ifndef ROOT_TVector2 37 39 #include <TVector2.h> -
trunk/MagicSoft/Mars/mbase/MProgressBar.cc
r3586 r9195 30 30 // 31 31 ///////////////////////////////////////////////////////////////////////////// 32 #include "MProgressBar.h" 32 33 33 #include "MProgressBar.h"34 #include <stdlib.h> // rand (Ubuntu 8.10) 34 35 35 36 #include <TSystem.h> // gSystem -
trunk/MagicSoft/Mars/mbase/MSearch.cc
r7808 r9195 40 40 ///////////////////////////////////////////////////////////////////////////// 41 41 #include "MSearch.h" 42 43 #include <stdlib.h> // rand (Ubuntu 8.10) 42 44 43 45 #include <TSystem.h> // gSystem -
trunk/MagicSoft/Mars/mbase/MStatusDisplay.cc
r9185 r9195 62 62 63 63 #include <errno.h> 64 #include <stdlib.h> // mktemp (Ubunto 8.10) 64 65 65 66 #include <fstream> // fstream … … 110 111 #include "MParContainer.h" // MParContainer::GetDescriptor 111 112 #include "MStatusArray.h" // MStatusArray 113 114 #if ROOT_VERSION_CODE <= ROOT_VERSION(5,22,00) 115 #include "../mhbase/MH.h" 116 #endif 112 117 113 118 #undef DEBUG … … 1040 1045 1041 1046 if (gPad) 1047 { 1048 // Find the object which will get picked by the GetObjectInfo 1049 // due to buffer overflows in many root-versions 1050 // in TH1 and TProfile we have to work around and implement 1051 // our own GetObjectInfo which make everything a bit more 1052 // complicated. 1053 #if ROOT_VERSION_CODE > ROOT_VERSION(5,22,00) 1042 1054 SetStatusLine2(selected->GetObjectInfo(px,py)); 1055 #else 1056 TObjLink *link=0; 1057 static_cast<TPad*>(gPad)->Pick(px, py, link); 1058 1059 const TObject *o = link ? link->GetObject() : 0; 1060 if (o) 1061 SetStatusLine2(MH::GetObjectInfo(px, py, *o)); 1062 #endif 1063 } 1043 1064 1044 1065 gPad=save; … … 1119 1140 c.Connect("ProcessedEvent(Int_t,Int_t,Int_t,TObject*)", 1120 1141 "MStatusDisplay", this, "EventInfo(Int_t,Int_t,Int_t,TObject*)"); 1142 1143 // Make sure that root itself doesn't try to call GetObjectInfo 1144 // This is now handled from EventsInfo. This is necessary 1145 // due to the buffer overflow bug in GetObjectInfo of 1146 // TProfile and TH1 1147 c.ResetBit(TCanvas::kShowEventStatus); 1121 1148 1122 1149 // Remove the canvas from the global list to make sure it is -
trunk/MagicSoft/Mars/mbase/MZlib.cc
r7808 r9195 35 35 ////////////////////////////////////////////////////////////////////////////// 36 36 #include "MZlib.h" 37 38 #include <string.h> // memcpy (UBuntu 8.10) 37 39 38 40 ClassImp(MZlib);
Note:
See TracChangeset
for help on using the changeset viewer.