Changeset 2580 for trunk/MagicSoft
- Timestamp:
- 12/01/03 18:20:17 (21 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r2579 r2580 30 30 * mtemp/MObservatory.cc: 31 31 - changed telescope position (kMagic1) according to new data from GPS clock 32 33 * readraw.cc: 34 - changed includes 35 36 * mbase/MPrint.[h,cc]: 37 - added kSeperator 38 39 * mbase/MTime.[h,cc]: 40 - added SetTime(const TTime&) 41 42 * mraw/MRawEvtHeader.cc: 43 - added 'nogains' option to Print 44 45 * readdaq.cc: 46 - added 32 47 33 48 -
trunk/MagicSoft/Mars/NEWS
r2565 r2580 36 36 - added classes to calculate event rate 37 37 (preliminary: MEventRateCalc, MEventRate) 38 39 - added new executable 'readdaq' to read *.raw files from the DAQ directly 38 40 39 41 -
trunk/MagicSoft/Mars/mbase/MPrint.cc
r2220 r2580 62 62 } 63 63 64 MPrint::MPrint() 65 { 66 Init(0, 0); 67 SetBit(kSeperator); 68 } 69 64 70 // -------------------------------------------------------------------------- 65 71 // … … 112 118 // The pointer is already given by the user. 113 119 // 114 if (fObject )120 if (fObject || TestBit(kSeperator)) 115 121 return kTRUE; 116 122 … … 144 150 Int_t MPrint::Process() 145 151 { 146 fObject->Print(fOption); 152 if (TestBit(kSeperator)) 153 gLog << endl << setfill('-') << setw(72) << "-" << endl << endl; 154 else 155 fObject->Print(fOption); 147 156 return kTRUE; 148 157 } -
trunk/MagicSoft/Mars/mbase/MPrint.h
r2206 r2580 15 15 TString fOption; // Print option 16 16 17 enum { kSkip = BIT(14) };17 enum { kSkip = BIT(14), kSeperator = BIT(15) }; 18 18 19 19 void Init(const char *name, const char *title); 20 20 21 21 public: 22 MPrint(); 22 23 MPrint(const char *obj, const char *option="", const char *name=NULL, const char *title=NULL); 23 24 MPrint(const TObject *obj, const char *option="", const char *name=NULL, const char *title=NULL); -
trunk/MagicSoft/Mars/mbase/MTime.cc
r2556 r2580 43 43 #include <iomanip> 44 44 45 #include <TTime.h> 46 45 47 #include "MLog.h" 46 48 … … 48 50 49 51 using namespace std; 52 53 void MTime::SetTime(const TTime &t) 54 { 55 SetTime((ULong_t)t); 56 } 50 57 51 58 void MTime::Print(Option_t *) const -
trunk/MagicSoft/Mars/mbase/MTime.h
r2556 r2580 14 14 #endif 15 15 16 class TTime; 17 16 18 class MTime : public MParContainer 17 19 { … … 24 26 Byte_t fSec; 25 27 UInt_t fNanoSec; 28 29 /* 30 UInt_t fMjd; // Day in the century (Day of sun rise) 31 TTime fTime; // Time of Day (43,200,000<x<43,200,000) 32 UShort_t fNanoSec; // NanoSec part of TimeOfDay (<1000) 33 */ 26 34 27 35 public: … … 71 79 fHour = t%24; 72 80 } 81 82 void SetTime(const TTime &t); 73 83 74 84 void SetTime(Double_t t) -
trunk/MagicSoft/Mars/mraw/MRawEvtHeader.cc
r2461 r2580 207 207 *fLog << "Number of Lo Gains On: " << fNumLoGainOn << endl; 208 208 209 TString str(o); 210 str.ToLower(); 211 212 if (str.Contains("nogains")) 213 return; 214 209 215 for (unsigned int i=0; i<fPixLoGainOn->GetSize(); i++) 210 216 { … … 245 251 // store the time of the event in the corresponding container 246 252 // 247 const Double_t mhz = 9.375; // [1e6 ticks/s] 248 const Double_t t = (Double_t)abstime[0]/mhz; // [ns] 249 const UShort_t ns = (UShort_t)fmod(t*1e-3, 1e9); 250 const Byte_t s = (Byte_t)fmod(t/1e12, 60); 251 const Byte_t m = (Byte_t)fmod(t/60e12, 60); 252 const Byte_t h = (Byte_t)(t/3600e12); 253 fTime->SetTime(h, m, s, ns); 253 /* 254 const Double_t mhz = 9.375; // [1e6 ticks/s] 255 const Double_t t = (Double_t)abstime[0]/mhz; // [ns] 256 const UShort_t ns = (UShort_t)fmod(t*1e-3, 1e9); 257 const Byte_t s = (Byte_t)fmod(t/1e12, 60); 258 const Byte_t m = (Byte_t)fmod(t/60e12, 60); 259 const Byte_t h = (Byte_t)(t/3600e12); 260 fTime->SetTime(h, m, s, ns); 261 */ 254 262 255 263 Byte_t dummy[4]; -
trunk/MagicSoft/Mars/readraw.cc
r2531 r2580 1 1 #include <TSystem.h> 2 2 3 #include "TFile.h"4 #include "TTree.h"5 #include "TBranch.h"3 #include <TFile.h> 4 #include <TTree.h> 5 #include <TBranch.h> 6 6 7 7 #include "MParList.h"
Note:
See TracChangeset
for help on using the changeset viewer.