Ignore:
Timestamp:
06/18/15 15:22:04 (10 years ago)
Author:
dbaack
Message:
Fixed bug that creates empty or duplicated events for CSCAT=1 in Corsika
Location:
branches/Corsika7405Compatibility/msim
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/Corsika7405Compatibility/msim/MPhotonEvent.cc

    r18179 r18235  
    513513
    514514
    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]);
    518520
    519521   Int_t n = 0;
     
    541543{
    542544   Int_t n = 0;
     545
     546   this->Resize(numEvents);
    543547
    544548   for (Int_t event = 0; event < numEvents; event++)
     
    602606    }
    603607}
     608
     609
     610void MPhotonEvent::Reset()
     611{
     612        std::cout << "Reset!!"; this->Clear(); this->Resize(0);
     613}
  • branches/Corsika7405Compatibility/msim/MPhotonEvent.h

    r10060 r18235  
    1111
    1212#include <iosfwd>
     13#include <iostream>
    1314
    1415using namespace std;
     
    6869    //void Clear(Option_t * = NULL);
    6970
     71    void Reset();
     72    //void Reset(){std::cout << "Reset!!"; this->Clear(); this->Resize(0); }
     73
    7074    ClassDef(MPhotonEvent, 1) //Container to store the raw Event Data
    7175};
Note: See TracChangeset for help on using the changeset viewer.