Changeset 1081 for trunk/MagicSoft/Mars/manalysis/MImgCleanStd.cc
- Timestamp:
- 11/15/01 11:24:06 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/manalysis/MImgCleanStd.cc
r1076 r1081 16 16 ! 17 17 ! 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@uni-sw.gwdg.de> 18 19 ! Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de) 19 ! Author(s): Thomas Bretz 12/2000 (tbretz@uni-sw.gwdg.de)20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2001 … … 42 42 ///////////////////////////////////////////////////////////////////////////// 43 43 #include "MImgCleanStd.h" 44 45 #include <stdlib.h> // atof 46 47 #include <TGFrame.h> // TGFrame 48 #include <TGLabel.h> // TGLabel 49 #include <TGTextEntry.h> // TGTextEntry 44 50 45 51 #include "MLog.h" … … 52 58 #include "MCerPhotEvt.h" 53 59 60 #include "MGGroupFrame.h" // MGGroupFrame 61 54 62 ClassImp(MImgCleanStd); 63 64 enum { 65 kImgCleanLvl1, 66 kImgCleanLvl2 67 }; 55 68 56 69 // -------------------------------------------------------------------------- … … 67 80 fTitle = title ? title : "Task which does a standard image cleaning"; 68 81 69 *fLog << "Cleaning initialized. Using noise level " << lvl1 << " and " << lvl2 << endl;82 Print(); 70 83 } 71 84 … … 273 286 } 274 287 275 #include <stdlib.h> // atof 276 277 #include <TGFrame.h> // TGFrame 278 #include <TGLabel.h> // TGLabel 279 #include <TGTextEntry.h> // TGTextEntry 280 281 #include "MGGroupFrame.h" // MGGroupFrame 282 283 enum { 284 kImgCleanLvl1, 285 kImgCleanLvl2 286 }; 287 288 // -------------------------------------------------------------------------- 289 // 290 // Print descriptor and cleaning levels. 291 // 292 void MImgCleanStd::Print(Option_t *o) const 293 { 294 *fLog << GetDescriptor() << " initialized with noise level "; 295 *fLog << fCleanLvl1 << " and " << fCleanLvl2 << endl; 296 } 297 298 // -------------------------------------------------------------------------- 299 // 300 // Craete two text entry fields, one for each cleaning level and a 301 // describing text line. 302 // 288 303 void MImgCleanStd::CreateGuiElements(MGGroupFrame *f) 289 304 { … … 315 330 entry2->Associate(f); 316 331 317 TGLabel *l1 = new TGLabel(f1, "Cleaning Level 1 for standard image cleaning.");318 TGLabel *l2 = new TGLabel(f2, "Cleaning Level 2 for standard image cleaning.");332 TGLabel *l1 = new TGLabel(f1, "Cleaning Level 1"); 333 TGLabel *l2 = new TGLabel(f2, "Cleaning Level 2"); 319 334 320 335 l1->SetTextJustify(kTextLeft); … … 348 363 } 349 364 365 // -------------------------------------------------------------------------- 366 // 367 // Process the GUI Events comming from the two text entry fields. 368 // 350 369 Bool_t MImgCleanStd::ProcessMessage(Int_t msg, Int_t submsg, Long_t param1, Long_t param2) 351 370 {
Note:
See TracChangeset
for help on using the changeset viewer.