Changeset 2173 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 06/13/03 16:42:37 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mraw
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mraw/MRawCrateData.cc
r1082 r2173 33 33 #include "MRawCrateData.h" 34 34 35 #include <iostream .h>36 #include <iomanip .h>35 #include <iostream> 36 #include <iomanip> 37 37 38 #include <fstream .h>38 #include <fstream> 39 39 40 40 #include "MLog.h" … … 42 42 43 43 ClassImp(MRawCrateData); 44 45 using namespace std; 44 46 45 47 MRawCrateData::MRawCrateData() : fDAQCrateNumber(0), fFADCEvtNumber(0), fFADCClockTick(0) … … 54 56 void MRawCrateData::ReadEvt(istream& fin) 55 57 { 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); 59 61 } 60 62 -
trunk/MagicSoft/Mars/mraw/MRawCrateData.h
r1031 r2173 6 6 #endif 7 7 8 class ifstream; 8 //gcc 3.2 9 //class ifstream; 10 #include <iosfwd> 9 11 10 12 class MRawCrateData : public MParContainer -
trunk/MagicSoft/Mars/mraw/MRawEvtData.cc
r1947 r2173 50 50 #include "MRawEvtData.h" 51 51 52 #include <fstream .h>52 #include <fstream> 53 53 54 54 #include <TH1.h> … … 65 65 66 66 ClassImp(MRawEvtData); 67 68 using namespace std; 67 69 68 70 // -------------------------------------------------------------------------- … … 430 432 // 431 433 fHiGainPixId->AddAt(npix, ipos); 432 fin.read( higainsam, nhi);434 fin.read((char*)higainsam, nhi); 433 435 higainsam += nhi; 434 436 … … 437 439 //{ 438 440 fLoGainPixId->AddAt(npix, ipos); 439 fin.read( logainsam, nlo);441 fin.read((char*)logainsam, nlo); 440 442 logainsam += nlo; 441 443 //} -
trunk/MagicSoft/Mars/mraw/MRawEvtData.h
r1045 r2173 6 6 #endif 7 7 8 class ifstream; 8 // gcc 3.2 9 //class ifstream; 10 #include <iosfwd> 11 9 12 class MRawRunHeader; 10 13 -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
r1542 r2173 95 95 #include "MRawEvtHeader.h" 96 96 97 #include <iomanip .h>98 #include <fstream .h>97 #include <iomanip> 98 #include <fstream> 99 99 100 100 #include "MLog.h" … … 106 106 107 107 ClassImp(MRawEvtHeader); 108 109 using namespace std; 108 110 109 111 // -------------------------------------------------------------------------- … … 235 237 int MRawEvtHeader::ReadEvt(istream &fin) 236 238 { 237 fin.read(( Byte_t*)&fDAQEvtNumber, 4);239 fin.read((char*)&fDAQEvtNumber, 4); 238 240 239 241 UInt_t fAbsTime[2]; 240 fin.read(( Byte_t*)fAbsTime, 8);242 fin.read((char*)fAbsTime, 8); 241 243 242 244 // … … 247 249 Byte_t dummy[4]; 248 250 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 fAllLoGainOn254 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()); 255 257 256 258 fNumLoGainOn = 0; … … 260 262 fNumLoGainOn++; 261 263 262 fin.read(( Byte_t*)&dummy, 4);264 fin.read((char*)&dummy, 4); 263 265 264 266 return !fin.eof(); -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.h
r1542 r2173 6 6 #endif 7 7 8 class ifstream; 8 // gcc 3.2 9 //class ifstream; 10 #include <iosfwd> 11 9 12 class MTime; 10 13 class MArrayB; -
trunk/MagicSoft/Mars/mraw/MRawFileRead.cc
r1082 r2173 41 41 #include "MRawFileRead.h" 42 42 43 #include <fstream .h>43 #include <fstream> 44 44 45 45 #include "MLog.h" … … 56 56 ClassImp(MRawFileRead); 57 57 58 using namespace std; 58 59 59 60 /* ----------- please don't delete and don't care about (Thomas) ------------ -
trunk/MagicSoft/Mars/mraw/MRawFileRead.h
r1031 r2173 6 6 #endif 7 7 8 class ifstream; 8 // gcc 3.2 9 //class ifstream; 10 #include <iosfwd> 9 11 10 12 class MTime; -
trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc
r1108 r2173 54 54 55 55 ClassImp(MRawFileWrite); 56 57 using namespace std; 56 58 57 59 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r1082 r2173 33 33 #include "MRawRunHeader.h" 34 34 35 #include <fstream .h>36 #include <iomanip .h>35 #include <fstream> 36 #include <iomanip> 37 37 38 38 #include "MLog.h" … … 42 42 43 43 ClassImp(MRawRunHeader); 44 45 using namespace std; 44 46 45 47 // -------------------------------------------------------------------------- … … 74 76 // read one RUN HEADER from the input stream 75 77 // 76 fin.read(( Byte_t*)&fMagicNumber, 2);78 fin.read((char*)&fMagicNumber, 2); 77 79 78 80 // … … 87 89 Byte_t dummy[16]; 88 90 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); 108 110 109 111 … … 114 116 fPixAssignment->Set(nPixel); 115 117 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); 118 120 } 119 121 -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.h
r1059 r2173 11 11 #endif 12 12 13 // gcc 3.2 14 //class ifstream; 15 #include <iosfwd> 16 13 17 class TBuffer; 14 class ifstream;15 18 class MArrayS; 16 19
Note:
See TracChangeset
for help on using the changeset viewer.