Changeset 2580 for trunk/MagicSoft/Mars/mraw
- Timestamp:
- 12/01/03 18:20:17 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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];
Note:
See TracChangeset
for help on using the changeset viewer.