Ignore:
Timestamp:
04/23/01 15:42:03 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mraw/MRawCrateArray.cc

    r760 r765  
    2525/////////////////////////////////////////////////////////////////////////////
    2626//
    27 // MRawCrateArray
     27//  MRawCrateArray
    2828//
    29 // This class exists to make it possible to read in the crate data
    30 // TClones Array. In principal we can directly write the TClonesArray
    31 // to the root file, but when we read in again the root file we cannot
    32 // put the TClonesArray into our parameter list, becaus it isn't derived
    33 // from TNamed. This class is derived from TNamed and can be put in the list
     29//  This class exists to make it possible to read in the crate data
     30//  TClones Array. In principal we can directly write the TClonesArray
     31//  to the root file, but when we read in again the root file we cannot
     32//  put the TClonesArray into our parameter list, becaus it isn't derived
     33//  from MParContainer. This class is derived from MParContainer and can be
     34//  put in the list. The TClones Array containes conatiners which store
     35//  the information about one crate (MRawCrateData).
    3436//
    3537/////////////////////////////////////////////////////////////////////////////
  • trunk/MagicSoft/Mars/mraw/MRawCrateArray.h

    r454 r765  
    2424
    2525    void Clear(Option_t *opt=NULL);
    26     void Print(Option_t *opt=NULL);
    2726
    2827    MRawCrateData *GetEntry(Int_t i);
  • trunk/MagicSoft/Mars/mraw/MRawCrateData.cc

    r749 r765  
    2323\* ======================================================================== */
    2424
     25/////////////////////////////////////////////////////////////////////////////
     26//
     27//  MRawCrateData
     28//
     29//  This container stores the information about one crate. A list of this
     30//  informations can be find at MRawCrateArray
     31//
     32/////////////////////////////////////////////////////////////////////////////
    2533#include "MRawCrateData.h"
    2634
     
    3038#include <fstream.h>
    3139
     40#include "MLog.h"
     41
    3242ClassImp(MRawCrateData)
    3343
     
    3646}
    3747
     48// --------------------------------------------------------------------------
     49//
     50//  read the information from a binary input stream about the CRATE DATA,
     51//  like specified in a TDAS note
     52//
    3853void MRawCrateData::ReadEvt(istream& fin)
    3954{
    40     //
    41     // read the information from a binary input stream about the CRATE DATA,
    42     // like specified in a TDAS note
    43     //
    4455    fin.read((Byte_t*)&fDAQCrateNumber, 2);
    4556    fin.read((Byte_t*)&fFADCEvtNumber,  4);
     
    4758}
    4859
     60// --------------------------------------------------------------------------
     61//
     62//  print all stored information to gLog
     63//
    4964void MRawCrateData::Print(Option_t *t)
    5065{
    51     //
    52     // print all stored information to screen
    53     //
    54     cout << "Crate Number " << fDAQCrateNumber << ":  ";
    55     cout << "FADCEventNr=" << fFADCEvtNumber << "  ";
    56     cout << "FADCClockTick=" << fFADCClockTick << " (20MHz)" << endl;
     66    gLog << "Crate Number " << fDAQCrateNumber << ":  ";
     67    gLog << "FADCEventNr=" << fFADCEvtNumber << "  ";
     68    gLog << "FADCClockTick=" << fFADCClockTick << " (20MHz)" << endl;
    5769}
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h

    r716 r765  
    4343public:
    4444
    45   MRawEvtHeader(const char *name=NULL, const char *title=NULL);
    46   ~MRawEvtHeader();
     45    MRawEvtHeader(const char *name=NULL, const char *title=NULL);
     46    ~MRawEvtHedare();
    4747
    48   void Init(MRawRunHeader *rh, MTime *t);
     48    void Init(MRawRunHeader *rh, MTime *t);
    4949
    50   void Clear(Option_t * = NULL);
    51   void Print(Option_t * = NULL);
     50    void Clear(Option_t * = NULL);
     51    void Print(Option_t * = NULL);
    5252
    53   void FillHeader(UInt_t, Float_t=0);
     53    void FillHeader(UInt_t, Float_t=0);
    5454
    55   UShort_t GetTrigType() const { return fTrigType; }
     55    UShort_t GetTrigType() const { return fTrigType; }
    5656
    57   int ReadEvt(istream& fin);
     57    int ReadEvt(istream& fin);
    5858
    59   ClassDef(MRawEvtHeader, 1) // Parameter Conatiner for raw EVENT HEADER
    60 
     59    ClassDef(MRawEvtHeader, 1) // Parameter Conatiner for raw EVENT HEADER
    6160};
    6261
Note: See TracChangeset for help on using the changeset viewer.