Ignore:
Timestamp:
06/13/03 16:42:37 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mraw
Files:
11 edited

Legend:

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

    r1082 r2173  
    3333#include "MRawCrateData.h"
    3434
    35 #include <iostream.h>
    36 #include <iomanip.h>
     35#include <iostream>
     36#include <iomanip>
    3737
    38 #include <fstream.h>
     38#include <fstream>
    3939
    4040#include "MLog.h"
     
    4242
    4343ClassImp(MRawCrateData);
     44
     45using namespace std;
    4446
    4547MRawCrateData::MRawCrateData() : fDAQCrateNumber(0), fFADCEvtNumber(0), fFADCClockTick(0)
     
    5456void MRawCrateData::ReadEvt(istream& fin)
    5557{
    56     fin.read((Byte_t*)&fDAQCrateNumber, 2);
    57     fin.read((Byte_t*)&fFADCEvtNumber,  4);
    58     fin.read((Byte_t*)&fFADCClockTick,  4);
     58    fin.read((char*)&fDAQCrateNumber, 2);
     59    fin.read((char*)&fFADCEvtNumber,  4);
     60    fin.read((char*)&fFADCClockTick,  4);
    5961}
    6062
  • trunk/MagicSoft/Mars/mraw/MRawCrateData.h

    r1031 r2173  
    66#endif
    77
    8 class ifstream;
     8//gcc 3.2
     9//class ifstream;
     10#include <iosfwd>
    911
    1012class MRawCrateData : public MParContainer
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.cc

    r1947 r2173  
    5050#include "MRawEvtData.h"
    5151
    52 #include <fstream.h>
     52#include <fstream>
    5353
    5454#include <TH1.h>
     
    6565
    6666ClassImp(MRawEvtData);
     67
     68using namespace std;
    6769
    6870// --------------------------------------------------------------------------
     
    430432        //
    431433        fHiGainPixId->AddAt(npix, ipos);
    432         fin.read(higainsam, nhi);
     434        fin.read((char*)higainsam, nhi);
    433435        higainsam += nhi;
    434436
     
    437439        //{
    438440        fLoGainPixId->AddAt(npix, ipos);
    439         fin.read(logainsam, nlo);
     441        fin.read((char*)logainsam, nlo);
    440442        logainsam += nlo;
    441443        //}
  • trunk/MagicSoft/Mars/mraw/MRawEvtData.h

    r1045 r2173  
    66#endif
    77
    8 class ifstream;
     8// gcc 3.2
     9//class ifstream;
     10#include <iosfwd>
     11
    912class MRawRunHeader;
    1013
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc

    r1542 r2173  
    9595#include "MRawEvtHeader.h"
    9696
    97 #include <iomanip.h>
    98 #include <fstream.h>
     97#include <iomanip>
     98#include <fstream>
    9999
    100100#include "MLog.h"
     
    106106
    107107ClassImp(MRawEvtHeader);
     108
     109using namespace std;
    108110
    109111// --------------------------------------------------------------------------
     
    235237int MRawEvtHeader::ReadEvt(istream &fin)
    236238{
    237     fin.read((Byte_t*)&fDAQEvtNumber, 4);
     239    fin.read((char*)&fDAQEvtNumber, 4);
    238240
    239241    UInt_t fAbsTime[2];
    240     fin.read((Byte_t*)fAbsTime,       8);
     242    fin.read((char*)fAbsTime,       8);
    241243
    242244    //
     
    247249    Byte_t dummy[4];
    248250
    249     fin.read((Byte_t*)&fNumTrigLvl1,  4);
    250     fin.read((Byte_t*)&fNumTrigLvl2,  4);
    251     fin.read((Byte_t*)fTrigPattern,   8);
    252     fin.read((Byte_t*)&fTrigType,     2);
    253     fin.read((Byte_t*)dummy,          2); // was fAllLoGainOn
    254     fin.read((Byte_t*)fPixLoGainOn->GetArray(), fPixLoGainOn->GetSize());
     251    fin.read((char*)&fNumTrigLvl1,  4);
     252    fin.read((char*)&fNumTrigLvl2,  4);
     253    fin.read((char*)fTrigPattern,   8);
     254    fin.read((char*)&fTrigType,     2);
     255    fin.read((char*)dummy,          2); // was fAllLoGainOn
     256    fin.read((char*)fPixLoGainOn->GetArray(), fPixLoGainOn->GetSize());
    255257
    256258    fNumLoGainOn = 0;
     
    260262                fNumLoGainOn++;
    261263
    262     fin.read((Byte_t*)&dummy, 4);
     264    fin.read((char*)&dummy, 4);
    263265
    264266    return !fin.eof();
  • trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h

    r1542 r2173  
    66#endif
    77
    8 class ifstream;
     8// gcc 3.2
     9//class ifstream;
     10#include <iosfwd>
     11
    912class MTime;
    1013class MArrayB;
  • trunk/MagicSoft/Mars/mraw/MRawFileRead.cc

    r1082 r2173  
    4141#include "MRawFileRead.h"
    4242
    43 #include <fstream.h>
     43#include <fstream>
    4444
    4545#include "MLog.h"
     
    5656ClassImp(MRawFileRead);
    5757
     58using namespace std;
    5859
    5960/*  ----------- please don't delete and don't care about (Thomas) ------------
  • trunk/MagicSoft/Mars/mraw/MRawFileRead.h

    r1031 r2173  
    66#endif
    77
    8 class ifstream;
     8// gcc 3.2
     9//class ifstream;
     10#include <iosfwd>
    911
    1012class MTime;
  • trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc

    r1108 r2173  
    5454
    5555ClassImp(MRawFileWrite);
     56
     57using namespace std;
    5658
    5759// --------------------------------------------------------------------------
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc

    r1082 r2173  
    3333#include "MRawRunHeader.h"
    3434
    35 #include <fstream.h>
    36 #include <iomanip.h>
     35#include <fstream>
     36#include <iomanip>
    3737
    3838#include "MLog.h"
     
    4242
    4343ClassImp(MRawRunHeader);
     44
     45using namespace std;
    4446
    4547// --------------------------------------------------------------------------
     
    7476    // read one RUN HEADER from the input stream
    7577    //
    76     fin.read((Byte_t*)&fMagicNumber,       2);
     78    fin.read((char*)&fMagicNumber,       2);
    7779
    7880    //
     
    8789    Byte_t dummy[16];
    8890
    89     fin.read((Byte_t*)&fFormatVersion,    2);
    90     fin.read((Byte_t*)&fSoftVersion,      2);
    91     fin.read((Byte_t*)&fRunType,          2);
    92     fin.read((Byte_t*)&fRunNumber,        4);
    93     fin.read((Byte_t*)&fProjectName,     22);
    94     fin.read((Byte_t*)&fSourceName,      12);
    95     fin.read((Byte_t*)dummy,              4); // was RA  (moved to tracking system)
    96     fin.read((Byte_t*)dummy,              4); // was DEC (moved to tracking system)
    97     fin.read((Byte_t*)&fSourceEpochChar,  2);
    98     fin.read((Byte_t*)&fSourceEpochDate,  2);
    99     fin.read((Byte_t*)&fMJD,              4);
    100     fin.read((Byte_t*)&fDateYear,         2);
    101     fin.read((Byte_t*)&fDateMonth,        2);
    102     fin.read((Byte_t*)&fDateDay,          2);
    103     fin.read((Byte_t*)&fNumCrates,        2);
    104     fin.read((Byte_t*)&fNumPixInCrate,    2);
    105     fin.read((Byte_t*)&fNumSamplesLoGain, 2);
    106     fin.read((Byte_t*)&fNumSamplesHiGain, 2);
    107     fin.read((Byte_t*)&fNumEvents,        4);
     91    fin.read((char*)&fFormatVersion,    2);
     92    fin.read((char*)&fSoftVersion,      2);
     93    fin.read((char*)&fRunType,          2);
     94    fin.read((char*)&fRunNumber,        4);
     95    fin.read((char*)&fProjectName,     22);
     96    fin.read((char*)&fSourceName,      12);
     97    fin.read((char*)dummy,              4); // was RA  (moved to tracking system)
     98    fin.read((char*)dummy,              4); // was DEC (moved to tracking system)
     99    fin.read((char*)&fSourceEpochChar,  2);
     100    fin.read((char*)&fSourceEpochDate,  2);
     101    fin.read((char*)&fMJD,              4);
     102    fin.read((char*)&fDateYear,         2);
     103    fin.read((char*)&fDateMonth,        2);
     104    fin.read((char*)&fDateDay,          2);
     105    fin.read((char*)&fNumCrates,        2);
     106    fin.read((char*)&fNumPixInCrate,    2);
     107    fin.read((char*)&fNumSamplesLoGain, 2);
     108    fin.read((char*)&fNumSamplesHiGain, 2);
     109    fin.read((char*)&fNumEvents,        4);
    108110
    109111
     
    114116    fPixAssignment->Set(nPixel);
    115117
    116     fin.read((Byte_t*)fPixAssignment->GetArray(), nPixel*2);
    117     fin.read((Byte_t*)&dummy, 16);
     118    fin.read((char*)fPixAssignment->GetArray(), nPixel*2);
     119    fin.read((char*)&dummy, 16);
    118120}
    119121
  • trunk/MagicSoft/Mars/mraw/MRawRunHeader.h

    r1059 r2173  
    1111#endif
    1212
     13// gcc 3.2
     14//class ifstream;
     15#include <iosfwd>
     16
    1317class TBuffer;
    14 class ifstream;
    1518class MArrayS;
    1619
Note: See TracChangeset for help on using the changeset viewer.