Ignore:
Timestamp:
11/15/01 11:24:06 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/manalysis/MImgCleanStd.cc

    r1076 r1081  
    1616!
    1717!
     18!   Author(s): Thomas Bretz    12/2000 <mailto:tbretz@uni-sw.gwdg.de>
    1819!   Author(s): Harald Kornmayer 1/2001 (harald@mppmu.mpg.de)
    19 !   Author(s): Thomas Bretz    12/2000 (tbretz@uni-sw.gwdg.de)
    2020!
    2121!   Copyright: MAGIC Software Development, 2000-2001
     
    4242/////////////////////////////////////////////////////////////////////////////
    4343#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
    4450
    4551#include "MLog.h"
     
    5258#include "MCerPhotEvt.h"
    5359
     60#include "MGGroupFrame.h" // MGGroupFrame
     61
    5462ClassImp(MImgCleanStd);
     63
     64enum {
     65    kImgCleanLvl1,
     66    kImgCleanLvl2
     67};
    5568
    5669// --------------------------------------------------------------------------
     
    6780    fTitle = title ? title : "Task which does a standard image cleaning";
    6881
    69     *fLog << "Cleaning initialized. Using noise level " << lvl1 << " and " << lvl2 << endl;
     82    Print();
    7083}
    7184
     
    273286}
    274287
    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//
     292void 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//
    288303void MImgCleanStd::CreateGuiElements(MGGroupFrame *f)
    289304{
     
    315330    entry2->Associate(f);
    316331
    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");
    319334
    320335    l1->SetTextJustify(kTextLeft);
     
    348363}
    349364
     365// --------------------------------------------------------------------------
     366//
     367//  Process the GUI Events comming from the two text entry fields.
     368//
    350369Bool_t MImgCleanStd::ProcessMessage(Int_t msg, Int_t submsg, Long_t param1, Long_t param2)
    351370{
Note: See TracChangeset for help on using the changeset viewer.