Changeset 18541 for trunk/Mars/msim/MPhotonEvent.cc
- Timestamp:
- 08/24/16 18:04:29 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/msim/MPhotonEvent.cc
r18447 r18541 554 554 operator[](i).SimWavelength(wmin, wmax); 555 555 } 556 557 Int_t MPhotonEvent::ReadEventIoEvtCompact(MCorsikaFormat *fInFormat) 558 { 559 Int_t bunchHeader[3]; 560 fInFormat->Read(bunchHeader, 3 * sizeof(Int_t)); 561 562 Int_t n = 0; 563 564 for (int bunch = 0; bunch < bunchHeader[2]; bunch++) 565 { 566 Short_t buffer[8]; 567 fInFormat->Read(buffer, 8 * sizeof(Short_t)); 568 569 if (Add(n).FillEventIO(buffer)) 570 n++; 571 } 572 573 Resize(n); 574 fData.UnSort(); 575 576 SetReadyToSave(); 577 578 //*fLog << all << "Number of photon bunches: " << fData.GetEntriesFast() << endl; 579 return kTRUE; 580 581 } 582 556 583 Int_t MPhotonEvent::ReadEventIoEvt(MCorsikaFormat *fInFormat) 557 584 {
Note:
See TracChangeset
for help on using the changeset viewer.