Ignore:
Timestamp:
10/02/01 14:46:56 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mdatacheck
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mdatacheck/DataCheckLinkDef.h

    r938 r959  
    55#pragma link off all functions;
    66
    7 #pragma link C++ class MShowSpect;
    8 #pragma link C++ class MViewAdcSpectra;
     7//#pragma link C++ class MShowSpect;
     8//#pragma link C++ class MViewAdcSpectra;
    99#pragma link C++ class MDumpEvtHeader;
    1010
  • trunk/MagicSoft/Mars/mdatacheck/MDumpEvtHeader.cc

    r956 r959  
    2424\* ======================================================================== */
    2525
     26//////////////////////////////////////////////////////////////////////////////
     27//
     28//  MDumpEvtHeader
     29//
     30//  Print out some event header information to the screen. This maybe useful
     31//  if you are not sure what the events in the file conatins or you
     32//  want to check for the contents.
     33//
     34//  Input Containers:
     35//   MRawEvtHeader, MRawEvtData
     36//
     37//  Output Containers:
     38//   -/-
     39//
     40//////////////////////////////////////////////////////////////////////////////
     41
    2642#include "MDumpEvtHeader.h"
    2743
     
    3349#include "MRawEvtPixelIter.h"
    3450
    35 ClassImp(MDumpEvtHeader)
     51ClassImp(MDumpEvtHeader);
    3652
     53// --------------------------------------------------------------------------
     54//
     55// Preprocessing of class. Check for the two container which should
     56// get printed by the Process-function: MRawEvtHeader and MRawEvtData.
     57// If one of the two doesn't exist (input containers) stop processing of
     58// data.
     59//
    3760Bool_t MDumpEvtHeader::PreProcess (MParList *pList)
    3861{
     
    5477}
    5578
     79// --------------------------------------------------------------------------
     80//
     81// Print out information of the actual event (header) and print the
     82// pixel ID's of all pixels in this event.
     83//
    5684Bool_t MDumpEvtHeader::Process()
    5785{
    58   fRawEvtHeader->Print();
     86    fRawEvtHeader->Print();
    5987
    60   MRawEvtPixelIter pixel(fRawEvtData);
     88    MRawEvtPixelIter pixel(fRawEvtData);
    6189
    62   while (pixel.Next())
    63       *fLog << " " << pixel.GetPixelId();
     90    while (pixel.Next())
     91        *fLog << " " << pixel.GetPixelId();
    6492
    65   *fLog << endl;
    66  
    67   return kTRUE;
    68 } 
     93    *fLog << endl;
     94
     95    return kTRUE;
     96}
  • trunk/MagicSoft/Mars/mdatacheck/MGDisplayAdc.cc

    r958 r959  
    6666    fHistoList = new TGListBox (left, M_LIST_HISTO);
    6767    fHistoList->Associate(this);
    68     fHistoList->Resize(80, 405);
     68    fHistoList->Resize(100, 405);
    6969
    7070    fList->Add(fHistoList);
     
    126126    // ---
    127127
    128     TGLayoutHints *laybut1 = new TGLayoutHints(kLHintsNormal, 10, 10,  0, 10);
    129     TGLayoutHints *laybut2 = new TGLayoutHints(kLHintsNormal, 10, 10, 10,  5);
     128    TGLayoutHints *laybut1 = new TGLayoutHints(kLHintsCenterX|kLHintsTop, 10, 10,  0, 10);
     129    TGLayoutHints *laybut2 = new TGLayoutHints(kLHintsCenterX|kLHintsTop, 10, 10, 10,  5);
     130    TGLayoutHints *layslid = new TGLayoutHints(kLHintsCenterX|kLHintsTop);
    130131
    131132    fList->Add(laybut1);
    132133    fList->Add(laybut2);
    133 
    134     mid->AddFrame(prev,   laybut1);
    135     mid->AddFrame(fSlider);
    136     mid->AddFrame(next,   laybut2);
    137     mid->AddFrame(group,  laybut2);
     134    fList->Add(layslid);
     135
     136    mid->AddFrame(prev,    laybut1);
     137    mid->AddFrame(fSlider, layslid);
     138    mid->AddFrame(next,    laybut2);
     139    mid->AddFrame(group,   laybut2);
    138140
    139141    //
    140142    //    right part of top frame
    141143    //
    142     TGVerticalFrame *right = new TGVerticalFrame(frame, 60, 60, kFitWidth);
     144    TGVerticalFrame *right = new TGVerticalFrame(frame, 100, 100, kFitWidth);
    143145    fList->Add(right);
    144146
    145     TRootEmbeddedCanvas *canvas = new TRootEmbeddedCanvas("fECanv", right, 800, 400);
     147    TRootEmbeddedCanvas *canvas = new TRootEmbeddedCanvas("fECanv", right, 100, 100);
    146148    fList->Add(canvas);
    147149
     
    156158    fList->Add(reset);
    157159
    158     TGLayoutHints *layreset = new TGLayoutHints(kLHintsCenterX|kLHintsTop,10, 10, 0, 10);
     160    TGLayoutHints *layreset = new TGLayoutHints(kLHintsCenterX|kLHintsTop, 10, 10, 0, 10);
    159161    fList->Add(layreset);
    160162
     
    211213                           UInt_t w, UInt_t h,
    212214                           UInt_t options)
    213 : TGTransientFrame(p, main, w, h, options), fHists(histos), fHistoType(M_RADIO_HI)
    214 {
     215: TGTransientFrame(p?p:gClient->GetRoot(), main?main:gClient->GetRoot(), w, h, options),
     216  fHistoType(M_RADIO_LH)
     217{
     218    fHists = (MHFadcCam*)histos->Clone();
     219
    215220    fList = new TList;
    216221    fList->SetOwner();
     
    265270
    266271    MapWindow();
    267     SetWMSizeHints(550, 550, 1000, 1000, 1, 1);
     272    SetWMSizeHints(950, 500, 1000, 1000, 1, 1);
    268273
    269274
     
    271276{
    272277    delete fList;
     278    delete fHists;
    273279
    274280
     
    277283void MGDisplayAdc::CloseWindow()
    278284{
    279     // Got close message for this MainFrame. Calls parent CloseWindow()
    280     // (which destroys the window) and terminate the application.
     285    //
    281286    // The close message is generated by the window manager when its close
    282287    // window menu item is selected.
  • trunk/MagicSoft/Mars/mdatacheck/MGDisplayAdc.h

    r958 r959  
    4141
    4242    MGDisplayAdc(MHFadcCam *fHists ,
    43                  const TGWindow *p, const TGWindow *main,
    44                  UInt_t w, UInt_t h,
    45                  UInt_t options = kMainFrame | kVerticalFrame );
     43                 const TGWindow *p=NULL, const TGWindow *main=NULL,
     44                 UInt_t w=800, UInt_t h=500,
     45                 UInt_t options = kMainFrame|kVerticalFrame);
    4646
    4747    ~MGDisplayAdc();
  • trunk/MagicSoft/Mars/mdatacheck/Makefile

    r710 r959  
    2929
    3030SRCFILES = MDumpEvtHeader.cc \
    31            MGDisplayAdc.cc \
    32            MShowSpect.cc \
    33            MViewAdcSpectra.cc
     31           MGDisplayAdc.cc
    3432
    3533SRCS    = $(SRCFILES)
Note: See TracChangeset for help on using the changeset viewer.