Changeset 8924 for trunk/MagicSoft/Mars/datacenter/macros
- Timestamp:
- 06/06/08 16:44:02 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/fillstar.C
r8694 r8924 19 19 ! Author(s): Daniela Dorner, 05/2005 <mailto:dorner@astro.uni-wuerzburg.de> 20 20 ! 21 ! Copyright: MAGIC Software Development, 2000-200 621 ! Copyright: MAGIC Software Development, 2000-2008 22 22 ! 23 23 ! … … 223 223 Double_t max = TMath::MaxElement(g->GetN(), g->GetY()); 224 224 TString maxhum = Form("%6.1f", max); 225 226 g = (TGraph*)arr.FindObjectInCanvas("Temperature", "TGraph", "MHWeather"); 227 if (!g) 228 { 229 cout << "WARNING - Reading of Temperature failed." << endl; 230 return 2; 231 } 232 233 Double_t temp = g->GetMean(2); 234 TString avgtemp = Form("%6.1f", temp); 235 236 g = (TGraph*)arr.FindObjectInCanvas("WindSpeed", "TGraph", "MHWeather"); 237 if (!g) 238 { 239 cout << "WARNING - Reading of WindSpeed failed." << endl; 240 return 2; 241 } 242 243 Double_t wind = g->GetMean(2); 244 TString avgwind = Form("%6.1f", wind); 225 245 226 246 … … 284 304 cout << " Rate of sparks [Hz] " << sparkrate << endl; 285 305 cout << " Maximum Humidity [%] " << maxhum << endl; 306 cout << " Average Temp [°C] " << avgtemp << endl; 307 cout << " Average WindSpeed [km/h] " << avgwind << endl; 286 308 cout << " Number of Stars " << numstarsmed << " +/- " << numstarsrms << endl; 287 309 cout << " Number of cor. Stars " << numcormed << " +/- " << numcorrms << endl; … … 302 324 " fSparkRate=%s, " 303 325 " fMaxHumidity=%s ," 326 " fAvgTemperature=%s ," 327 " fAvgWindSpeed=%s ," 304 328 " fNumStarsMed=%s ," 305 329 " fNumStarsRMS=%s ," … … 313 337 muonrate.Data(), PSF.Data(), 314 338 datarate, sparkrate.Data(), maxhum.Data(), 339 avgtemp.Data(), avgwind.Data(), 315 340 numstarsmed.Data(), numstarsrms.Data(), 316 341 numcorsmed.Data(), numcorsrms.Data(),
Note:
See TracChangeset
for help on using the changeset viewer.