Ignore:
Timestamp:
09/20/01 16:26:50 (23 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mdatacheck
Files:
3 edited

Legend:

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

    r710 r938  
    66
    77#pragma link C++ class MShowSpect;
     8#pragma link C++ class MViewAdcSpectra;
    89#pragma link C++ class MDumpEvtHeader;
    910
  • 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}
  • trunk/MagicSoft/Mars/mdatacheck/MViewAdcSpectra.h

    r698 r938  
    88class MHFadcCam;
    99
    10 class MViewAdcSpectra {
     10class MViewAdcSpectra
     11{
     12private:
     13    MHFadcCam *fHistosAdc;
    1114
    12  private:
     15public:
    1316
    14      MHFadcCam *fHistosAdc;
     17     MViewAdcSpectra();
     18     virtual ~MViewAdcSpectra();
     19 
     20     Bool_t AdcSpectra(Char_t *inputFile, Char_t *treeName);
    1521
    16  public:
    17  
    18      MViewAdcSpectra() ;
    19  
    20      ~MViewAdcSpectra() ;
    21  
    22      Bool_t AdcSpectra( Char_t *inputFile , Char_t *treeName ) ;
     22     //  Bool_t CrAdcSpectra ( Char_t *inputFile ) ;
     23     //  Bool_t PedTdcSpectra( Char_t *inputFile ) ;
     24     //  Bool_t CrTdcSpectra ( Char_t *inputFile ) ;
    2325
    24   //  Bool_t CrAdcSpectra ( Char_t *inputFile ) ;
    25 
    26   //  Bool_t PedTdcSpectra( Char_t *inputFile ) ;
    27   //  Bool_t CrTdcSpectra ( Char_t *inputFile ) ;
    28 
    29 } ;
     26     ClassDef(MViewAdcSpectra, 0) // Part of the gui, displays Adc Spectras
     27};
    3028
    3129#endif
Note: See TracChangeset for help on using the changeset viewer.