Ignore:
Timestamp:
11/20/02 12:18:01 (22 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mmain
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mmain/MDataCheck.cc

    r1603 r1652  
    3131#include "MFillH.h"
    3232#include "MParList.h"
     33#include "MEvtLoop.h"
     34#include "MHFadcCam.h"
    3335#include "MTaskList.h"
    34 #include "MEvtLoop.h"
    3536#include "MReadTree.h"
    3637#include "MGDisplayAdc.h"
     
    5859{
    5960    TGTextButton *pedadc = new TGTextButton(fTop1, "ADC Spectra of Pedestals", kButPedAdc);
    60     TGTextButton *cradc  = new TGTextButton(fTop1, "ADC Specta of Cosmics",    kButEvtAdc);
    61     TGTextButton *pedtdc = new TGTextButton(fTop3, "TDC Spectra of Pedestals", kButPedTdc);
    62     TGTextButton *crtdc  = new TGTextButton(fTop3, "TDC Specta of Cosmics",    kButEvtTdc);
     61    TGTextButton *cradc  = new TGTextButton(fTop1, "ADC Spectra of Cosmics",    kButEvtAdc);
     62    TGTextButton *pedtdc = new TGTextButton(fTop3, "Run Spectra of Pedestals", kButPedTdc);
     63    TGTextButton *crtdc  = new TGTextButton(fTop3, "Run Spectra of Cosmics",    kButEvtTdc);
    6364
    6465    pedadc->Associate(this);
     
    9798//  histograms.
    9899//
    99 void MDataCheck::ViewAdcSpectra(const char *inputfile, const char *treeName)
     100void MDataCheck::View(const char *inputfile, const char *treeName, MHFadcPix::Type_t t)
    100101{
    101102    //
     
    119120    read.DisableAutoScheme();
    120121
    121     MFillH fill("MHFadcCam", "MRawEvtData");
     122    MHFadcCam hist(t);
     123    plist.AddToList(&hist);
     124
     125    MFillH fill(&hist, "MRawEvtData");
    122126
    123127    tasks.AddToList(&read);
     
    149153        return;
    150154
    151     new MGDisplayAdc((MHFadcCam*)plist.FindObject("MHFadcCam"));
     155    new MGDisplayAdc(&hist);
    152156}
    153157
     
    178182        {
    179183        case kButPedAdc:
    180             ViewAdcSpectra(fInputFile, "PedEvents");
     184            View(fInputFile, "PedEvents", MHFadcPix::kValue);
    181185            return kTRUE;
    182186
    183187        case kButEvtAdc:
    184             ViewAdcSpectra(fInputFile, "Events");
     188            View(fInputFile, "Events", MHFadcPix::kValue);
    185189            return kTRUE;
    186190
    187191        case kButPedTdc:
    188             // fOctober.PedTdcSpectra(fInputFile) ;
     192            View(fInputFile, "PedEvents", MHFadcPix::kSlices);
    189193            return kTRUE;
    190194
    191195        case kButEvtTdc:
     196            View(fInputFile, "Events", MHFadcPix::kSlices);
    192197            return kTRUE;
    193198        }
  • trunk/MagicSoft/Mars/mmain/MDataCheck.h

    r1210 r1652  
    66#endif
    77
     8#ifndef MARS_MHFadcPix
     9#include "MHFadcPix.h"
     10#endif
     11
    812class MDataCheck : public MBrowser
    913{
    1014private:
    11     void ViewAdcSpectra(const char *inputfile, const char *treeName);
     15    void View(const char *inputfile, const char *treeName, MHFadcPix::Type_t t);
    1216
    1317public:
Note: See TracChangeset for help on using the changeset viewer.