Changeset 1276 for trunk/MagicSoft/Mars/mhist/MH.cc
- Timestamp:
- 04/15/02 13:13:25 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mhist/MH.cc
r1265 r1276 121 121 TAxis &x = *h->GetXaxis(); 122 122 123 #if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03) 123 124 TString xtitle = x.GetTitle(); 125 #endif 124 126 125 127 // … … 135 137 // 136 138 x.Set(binsx->GetNumBins(), binsx->GetEdges()); 139 #if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03) 137 140 x.SetTitle(xtitle); 141 #endif 138 142 } 139 143 … … 146 150 // Another strange behaviour: TAxis::Set deletes the axis title! 147 151 // 152 #if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03) 148 153 TString xtitle = x.GetTitle(); 149 154 TString ytitle = y.GetTitle(); 155 #endif 150 156 151 157 // … … 163 169 x.Set(binsx->GetNumBins(), binsx->GetEdges()); 164 170 y.Set(binsy->GetNumBins(), binsy->GetEdges()); 171 #if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03) 165 172 x.SetTitle(xtitle); 166 173 y.SetTitle(ytitle); 174 #endif 167 175 } 168 176 … … 176 184 TAxis &z = *h->GetZaxis(); 177 185 186 #if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03) 178 187 TString xtitle = x.GetTitle(); 179 188 TString ytitle = y.GetTitle(); 180 189 TString ztitle = z.GetTitle(); 190 #endif 181 191 182 192 // … … 196 206 y.Set(binsy->GetNumBins(), binsy->GetEdges()); 197 207 z.Set(binsz->GetNumBins(), binsz->GetEdges()); 208 #if ROOT_VERSION_CODE < ROOT_VERSION(3,03,03) 198 209 x.SetTitle(xtitle); 199 210 y.SetTitle(ytitle); 200 211 z.SetTitle(ztitle); 212 #endif 201 213 } 202 214
Note:
See TracChangeset
for help on using the changeset viewer.