- Timestamp:
- 06/18/15 15:22:04 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Corsika7405Compatibility/mcorsika/MCorsikaRead.cc
r18180 r18235 406 406 return kTRUE; 407 407 408 if (fBlockType == 1204 && fReadState != 2)408 if (fBlockType == 1204 && (fReadState != 2 && fReadState != 15) ) 409 409 // next is a new set of telescope arrays, we store the previous ones 410 410 // but not if this is the first one (fReadState != 2) … … 478 478 Int_t MCorsikaRead::Process() 479 479 { 480 fEvent->Clear(); 481 fEvent->Reset(); 480 //fEvent->Clear(); 481 482 //fEvent->Resize(0); 483 484 485 std::cout << "\n\n MCorsikaRead Process " << std::endl; 482 486 fEvent->Resize(0); 483 484 485 std::cout << "\n\n MCorsikaRead Process " << std::endl;486 487 while (1) // loop for multiple input files 487 488 { … … 530 531 status = fEvtHeader->ReadEvt(buffer); 531 532 533 std::cout << "----------ArrayIndex:: " << fArrayIdx << std::endl; 532 534 533 535 if (fArrayIdx >= (Int_t)fEvtHeader->GetTotReuse()) … … 550 552 else 551 553 // skip this array of telescopes 554 { 552 555 fInFormat->Seek(fBlockLength); 553 556 std::cout << "Skip Array!" << std::endl; 557 } 554 558 break; 555 559 … … 558 562 { 559 563 Int_t telIdx = fBlockIdentifier % 1000; 564 565 std::cout << "----------TelescopeIndex:: " << fTelescopeIdx << std::endl; 560 566 561 567 if (fBlockVersion == 0 && (fTelescopeIdx < 0 || fTelescopeIdx == telIdx) ) … … 575 581 576 582 577 bool tmpWeight = false;583 /*bool tmpWeight = false; 578 584 std::cout << "ReadEventIO Telescope data with " << fEvent->GetNumPhotons() << std::endl; 579 585 for(int i=0; i<fEvent->GetNumPhotons(); i++) … … 585 591 } 586 592 if(tmpWeight) 587 std::cout << "CorsikaRead Photon weight != 1" << std::endl; 593 std::cout << "CorsikaRead Photon weight != 1" << std::endl;*/ 588 594 589 595 } … … 629 635 case 1105: // event block of raw format 630 636 static int NmrEventBlock = 0; 631 //std::cout << "EventBlock ||||||" << ++NmrEventBlock << std::endl;637 std::cout << "EventBlock ||||||" << ++NmrEventBlock << std::endl; 632 638 if (fReadState == 2 || fReadState == 10) 633 639 { … … 677 683 return status; 678 684 685 679 686 Int_t headerStatus = ReadNextBlockHeader(); 687 688 std::cout << "fBlockType: " << fBlockType << " fReadState: " << fReadState 689 << " HeaderStatus: " << headerStatus << std::endl; 690 680 691 681 692 if (headerStatus == kFALSE)
Note:
See TracChangeset
for help on using the changeset viewer.