Changeset 690 for trunk/MagicSoft


Ignore:
Timestamp:
03/07/01 11:23:54 (24 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MAGIC.h

    r653 r690  
    1010
    1111#include <TROOT.h>
    12 
    13 //
    14 // Magic number to detect the magic file type
    15 //
    16 // const UShort_t kMagicNumber = 0xc0c0;
    1712
    1813//
  • trunk/MagicSoft/Mars/mraw/MRawFileRead.cc

    r666 r690  
    2525
    2626
    27 //  ----------- please don't delete ------------
     27/*/  ----------- please don't delete ------------
    2828#define kBUFSZ 1024
    2929
     
    5353    }
    5454};
    55 
     55*/
    5656
    5757MRawFileRead::MRawFileRead(const char *fname, const char *name, const char *title)
     
    6363    // open the input stream
    6464    //
    65     fIn = new bifstream(fname);
     65    fIn = new ifstream(fname);
    6666
    6767    if (!(*fIn))
     
    109109    fRawRunHeader->ReadEvt(*fIn);
    110110    fRawRunHeader->Print();
     111
     112    if (fRawRunHeader->GetMagicNumber()!=kMagicNumber)
     113        return kFALSE;
    111114
    112115    //
  • trunk/MagicSoft/Mars/mraw/MRawFileRead.h

    r665 r690  
    66#endif
    77
    8 class bifstream;
     8class ifstream;
    99
    1010class MTime;
     
    2424    MTime          *fRawEvtTime;    // raw evt time information container to fill from file
    2525
    26     bifstream      *fIn;            //! buffered input stream (file to read from)
     26    ifstream       *fIn;            //! buffered input stream (file to read from)
    2727
    2828public:
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc

    r654 r690  
    8888    //
    8989    *fLog << endl;
    90     *fLog << "MagicNumber:  0x" << hex << fMagicNumber << " - " << (fMagicNumber==0xc0c0?"OK":"Wrong!") << endl;
     90    *fLog << "MagicNumber:  0x" << hex << fMagicNumber << " - " << (fMagicNumber==kMagicNumber?"OK":"Wrong!") << endl;
    9191    *fLog << "Version:      " << dec << "Format=" << fFormatVersion << "  ";
    9292    *fLog << "Software=" << fSoftVersion << endl;
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.h

    r654 r690  
    1515class MArrayS;
    1616
     17//
     18// Magic number to detect the magic file type
     19//
    1720const UShort_t kMagicNumber = 0xc0c0;
    1821
Note: See TracChangeset for help on using the changeset viewer.