- Timestamp:
- 06/18/15 15:22:04 (9 years ago)
- Location:
- branches/Corsika7405Compatibility
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Corsika7405Compatibility/mcorsika/MCorsikaEvtHeader.cc
r15365 r18235 153 153 // f[96] // Number of reuse of event [max=20] 154 154 fTotReuse = TMath::Nint(f[96]); 155 156 std::cout << " Total Reuse:" << fTotReuse << std::endl; 157 155 158 if (fTotReuse > 20) 156 159 { -
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) -
branches/Corsika7405Compatibility/msim/MPhotonEvent.cc
r18179 r18235 513 513 514 514 515 //std::cout << "BunchHeader: " << bunchHeader[0] << " " 516 // << bunchHeader[1] << " " 517 // << bunchHeader[2] << std::endl; 515 /*std::cout << "BunchHeader: " << bunchHeader[0] << " " 516 << bunchHeader[1] << " " 517 << bunchHeader[2] << std::endl;*/ 518 519 this->Resize(bunchHeader[2]); 518 520 519 521 Int_t n = 0; … … 541 543 { 542 544 Int_t n = 0; 545 546 this->Resize(numEvents); 543 547 544 548 for (Int_t event = 0; event < numEvents; event++) … … 602 606 } 603 607 } 608 609 610 void MPhotonEvent::Reset() 611 { 612 std::cout << "Reset!!"; this->Clear(); this->Resize(0); 613 } -
branches/Corsika7405Compatibility/msim/MPhotonEvent.h
r10060 r18235 11 11 12 12 #include <iosfwd> 13 #include <iostream> 13 14 14 15 using namespace std; … … 68 69 //void Clear(Option_t * = NULL); 69 70 71 void Reset(); 72 //void Reset(){std::cout << "Reset!!"; this->Clear(); this->Resize(0); } 73 70 74 ClassDef(MPhotonEvent, 1) //Container to store the raw Event Data 71 75 }; -
branches/Corsika7405Compatibility/msimcamera/MSimAPD.cc
r18179 r18235 307 307 *fLog << err << "ERROR - MSimAPD: Weight of " << i << "-th photon not 1, but " << ph.GetWeight() << endl; 308 308 ph.Print(); 309 //return kERROR;309 return kERROR; 310 310 } 311 311
Note:
See TracChangeset
for help on using the changeset viewer.