Ignore:
Timestamp:
09/20/01 16:26:50 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mdatacheck/MViewAdcSpectra.cc

    r749 r938  
    4444#include "MHFadcCam.h"
    4545
     46ClassImp(MViewAdcSpectra);
     47
     48// ================================================================================
     49//
     50// default constructor
     51//
    4652MViewAdcSpectra::MViewAdcSpectra()
    4753{
    48   // default constructor 
    49 } 
     54   fHistosAdc = new MHFadcCam;
     55}
    5056
     57// ================================================================================
     58//
     59// default destructor
     60//
    5161MViewAdcSpectra::~MViewAdcSpectra()
    5262{
    53     // default destructor
    5463    delete fHistosAdc;
    5564}
     
    5766
    5867// ================================================================================
    59 Bool_t MViewAdcSpectra::AdcSpectra ( Char_t *inputfile, Char_t *treeName )
     68//
     69//   This job reads in the FADC data from all events and fills
     70//   the spectrum for each pmt pixel.
     71//
     72Bool_t MViewAdcSpectra::AdcSpectra(Char_t *inputfile, Char_t *treeName)
    6073{
    61   //   This job reads in the FADC data from all events and fills
    62   //   the spectrum for each pmt pixel.
    63   //
     74    cout << "MViewAdcSpectra:: Analyse the tree '" << treeName << "'";
     75    cout << "in the file '" << inputfile << "'" << endl;
    6476
    65   cout << "PedAdcSpectra:: Analyse the tree " << treeName
    66        << "in the file  " << inputfile << endl ;
    67  
    68   // create a (empty) list of parameters which can be used by the tasks
    69   // and an (empty) list of tasks which should be executed
    70   // connect them in the required way.
    71  
    72   //
    73   //   create the data containers for the raw data
    74   //
    75   MParList plist;
    76  
    77   MRawRunHeader runheader;
    78   plist.AddToList(&runheader);
     77    //
     78    // create a (empty) list of parameters which can be used by the tasks
     79    // and an (empty) list of tasks which should be executed
     80    // connect them in the required way.
     81    //
    7982
    80   MRawEvtHeader evtheader;
    81   plist.AddToList(&evtheader);
    82  
    83   MRawEvtData evtdata;
    84   plist.AddToList(&evtdata);
    85  
    86   MRawCrateArray cratearray;
    87   plist.AddToList(&cratearray);
    88  
    89   MTime evttime("MTime");
    90   plist.AddToList(&evttime);
     83    //
     84    //   create the data containers for the raw data
     85    //
     86    MParList plist;
    9187
    92   fHistosAdc= new MHFadcCam;
    93   plist.AddToList( fHistosAdc ) ;
     88    MRawRunHeader runheader;
     89    plist.AddToList(&runheader);
    9490
    95   //
    96   //    set up the tasks for this job
    97   //
    98   MTaskList tasks;
    99   plist.AddToList(&tasks);
     91    MRawEvtHeader evtheader;
     92    plist.AddToList(&evtheader);
    10093
    101   MReadTree readin ( treeName, inputfile ) ;
    102   tasks.AddToList( &readin ) ;
     94    MRawEvtData evtdata;
     95    plist.AddToList(&evtdata);
    10396
    104   //  MDumpEvtHeader *dumpheader = new MDumpEvtHeader() ;
    105   //  tasks->AddToList( dumpheader ) ;
    106  
    107   MFillHFadc fillspect;
    108   tasks.AddToList( &fillspect ) ;
     97    MRawCrateArray cratearray;
     98    plist.AddToList(&cratearray);
    10999
    110   MShowSpect showspect( "MHFadcCam" ) ;
    111   tasks.AddToList( &showspect ) ;
     100    MTime evttime("MTime");
     101    plist.AddToList(&evttime);
    112102
    113   //    set up the loop for the processing
    114  
    115   MEvtLoop magic;
    116   magic.SetParList(&plist);
     103    plist.AddToList(fHistosAdc);
    117104
    118   //    start the loop running
     105    //
     106    // set up the tasks for this job
     107    //
     108    MTaskList tasks;
     109    plist.AddToList(&tasks);
    119110
    120   magic.Eventloop() ;
    121  
    122   return kTRUE ;
     111    MReadTree readin(treeName, inputfile);
     112    tasks.AddToList(&readin);
    123113
    124 }
     114    //
     115    //  MDumpEvtHeader *dumpheader = new MDumpEvtHeader() ;
     116    //  tasks->AddToList( dumpheader ) ;
     117    //
     118    MFillHFadc fillspect;
     119    tasks.AddToList(&fillspect);
     120
     121    MShowSpect showspect("MHFadcCam");
     122    tasks.AddToList(&showspect);
     123
     124    //
     125    // set up the loop for the processing
     126    //
     127    MEvtLoop magic;
     128    magic.SetParList(&plist);
     129
     130    //
     131    // start the loop running
     132    //
     133    magic.Eventloop();
     134
     135    return kTRUE;
     136}
Note: See TracChangeset for help on using the changeset viewer.