Changeset 1021 for trunk/MagicSoft/Mars
- Timestamp:
- 10/31/01 14:47:58 (23 years ago)
- Location:
- trunk/MagicSoft/Mars/mmain
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mmain/MAnalysis.cc
r990 r1021 31 31 #include <TGButton.h> // TGTextButton 32 32 #include <TGTextEntry.h> // TGNumberEntry 33 #include <TGProgressBar.h> // TGHProgressBar 34 33 35 34 36 ClassImp(MAnalysis) 35 37 36 38 enum { 37 M_BUTTON_HILLAS39 kButHillas 38 40 }; 39 41 40 42 void MAnalysis::AddButtons() 41 43 { 42 TGTextButton *hillas = new TGTextButton(fTop2, "Calculate Standard Hillas", M_BUTTON_HILLAS);44 TGTextButton *hillas = new TGTextButton(fTop2, "Calculate Standard Hillas", kButHillas); 43 45 44 46 hillas->Associate(this); … … 183 185 #include "MHillas.h" 184 186 185 void MAnalysis::CalculateHillas() const187 void MAnalysis::CalculateHillas() 186 188 { 187 189 // … … 207 209 } 208 210 211 TGHProgressBar bar(fTop2); 212 TGLayoutHints laybar(kLHintsExpandX|kLHintsCenterY|kLHintsRight, 10, 10, 5, 5); //, 10); //, 5, 5); 213 bar.SetWidth(150); 214 fTop2->AddFrame(&bar, &laybar); 215 Layout(); 216 MapSubwindows(); 217 209 218 // 210 219 // Create a empty Parameter List and an empty Task List … … 242 251 // CalEvents: Calibration Events 243 252 // 244 MReadTree read("Events", fInputFile); 253 MReadTree read("Events", fInputFile); 254 read.SetProgressBar(&bar); 255 245 256 MCerPhotCalc ncalc; 246 257 MImgCleanStd clean(cleanlvl1, cleanlvl2); … … 266 277 MEvtLoop evtloop; 267 278 evtloop.SetParList(&plist); 268 279 evtloop.SetProgressBar(&bar); 269 280 // 270 281 // Execute your analysis 271 282 // 272 if (!evtloop.Eventloop()) 283 Bool_t rc = evtloop.Eventloop(); 284 285 fTop2->RemoveFrame(&bar); 286 Layout(); 287 MapSubwindows(); 288 289 if (!rc) 273 290 return; 274 275 291 // 276 292 // After the analysis is finished we can display the histograms … … 297 313 switch (parm1) 298 314 { 299 case M_BUTTON_HILLAS:315 case kButHillas: 300 316 if (!InputFileSelected()) 301 317 { … … 306 322 switch (parm1) 307 323 { 308 case M_BUTTON_HILLAS:324 case kButHillas: 309 325 CalculateHillas(); 310 326 return kTRUE; -
trunk/MagicSoft/Mars/mmain/MAnalysis.h
r1016 r1021 18 18 TGTextEntry *fNumEntry2; 19 19 20 void CalculateHillas() const;20 void CalculateHillas(); 21 21 22 22 void AddButtons();
Note:
See TracChangeset
for help on using the changeset viewer.