Changeset 8699
- Timestamp:
- 08/23/07 11:56:56 (17 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r8698 r8699 44 44 - added the possibility to set a function which converts the 45 45 result of the rf. eg "pow(10, x)" 46 47 * mraw/MRawRunHeader.[h,cc]: 48 - replaced fNumSignificantBits by fFadcResolution for compatibility 49 - replaced fFreqSampling by fSamplingFrequency for compatibility 50 - increased ClassVersion to 9 46 51 47 52 -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.cc
r8584 r8699 18 18 ! Author(s): Thomas Bretz 12/2000 <mailto:tbretz@astro.uni-wuerzburg.de> 19 19 ! 20 ! Copyright: MAGIC Software Development, 2000-200 420 ! Copyright: MAGIC Software Development, 2000-2007 21 21 ! 22 22 ! … … 36 36 // ----------------- 37 37 // + fNumEventsRead; 38 // + fSamplingFrequency 39 // - fFreqSampling 40 // + fFadcResolution; 41 // - fNumSignificantBits 38 42 // 39 43 // Format Version 8: … … 41 45 // + fNumBytesPerSample; 42 46 // + fFreqSampling; 43 // + fNumSignificantBits ;47 // + fNumSignificantBits 44 48 // * changes in MRawCrateHeader 45 49 // … … 85 89 // ----------------- 86 90 // - added fNumBytesPerSample; 87 // - added f FreqSampling;88 // - added f NumSignificantBits;91 // - added fSamplingFrequency; 92 // - added fFadcResolution; 89 93 // 90 94 // Class Version 5: … … 167 171 fNumEvents=0; 168 172 fNumBytesPerSample=1; 169 f FreqSampling=300;170 f NumSignificantBits=8;173 fSamplingFrequency=300; 174 fFadcResolution=8; 171 175 } 172 176 … … 482 486 // New in general features: (should they be included in new MAGIC1 formats, too?) 483 487 fNumBytesPerSample = 1; // 2 for MUX DATA 484 f FreqSampling= 300;485 f NumSignificantBits= 8;488 fSamplingFrequency = 300; 489 fFadcResolution = 8; 486 490 if (fFormatVersion>7) 487 491 { 488 492 fin.read((char*)&fNumBytesPerSample, 2); 489 fin.read((char*)&f FreqSampling,2); // [MHz], 2000 for MuxFadc490 fin.read((char*)&f NumSignificantBits, 1); // nominal resolution [# Bits], 10 for MuxFadc493 fin.read((char*)&fSamplingFrequency, 2); // [MHz], 2000 for MuxFadc 494 fin.read((char*)&fFadcResolution, 1); // nominal resolution [# Bits], 10 for MuxFadc 491 495 492 496 if (fNumBytesPerSample!=2) … … 581 585 *fLog << "Num Pixels: " << GetNumNormalPixels() << " (normal) + " << GetNumSpecialPixels() << " (special) = " << GetNumConnectedPixels() << " (total)" << endl; 582 586 if (fFormatVersion>6) 583 *fLog << "Sampling: " << f FreqSampling << "MHz with " << (int)fNumSignificantBits<< " significant bits" << endl;587 *fLog << "Sampling: " << fSamplingFrequency << "MHz with " << (int)fFadcResolution << " significant bits" << endl; 584 588 *fLog << "Samples: " << fNumSamplesHiGain << "/" << fNumSamplesLoGain << " (hi/lo) * " << fNumBytesPerSample << "B/sample = " << (fNumSamplesLoGain+fNumSamplesHiGain) * fNumCrates * fNumPixInCrate * fNumBytesPerSample/1000 << "kB/Evt" << endl; 585 589 *fLog << "Evt Counter: " << fNumEvents; -
trunk/MagicSoft/Mars/mraw/MRawRunHeader.h
r8584 r8699 58 58 UInt_t fNumEvents; // number of events stored 59 59 UInt_t fNumEventsRead; // number of events read by the electronics 60 UShort_t f FreqSampling;// Sampling Frequency [MHz]61 Byte_t f NumSignificantBits;// number of significant bits60 UShort_t fSamplingFrequency; // Sampling Frequency [MHz] 61 Byte_t fFadcResolution; // number of significant bits 62 62 MTime fRunStart; // time of run start 63 63 MTime fRunStop; // time of run stop … … 108 108 UInt_t GetNumEvents() const { return fNumEvents; } 109 109 UInt_t GetNumEventsRead() const { return fNumEventsRead; } 110 UShort_t GetFreqSampling() const { return f FreqSampling; }110 UShort_t GetFreqSampling() const { return fSamplingFrequency; } 111 111 const MTime &GetRunStart() const { return fRunStart; } 112 112 const MTime &GetRunEnd() const { return fRunStop; } … … 135 135 Bool_t ReadEvt(istream& fin); 136 136 137 ClassDef(MRawRunHeader, 7) // storage container for general info137 ClassDef(MRawRunHeader, 9) // storage container for general info 138 138 }; 139 139 #endif
Note:
See TracChangeset
for help on using the changeset viewer.