Hello All,
I am having an interesting problem. I am using cafe and running some MC files through a processor I wrote. When I run over 1000, or 2000 events there seems to be no problem. When I run over 10000 events, I get this error message:
######################################################################
root [2] TCanvas::MakeDefCanvas: created default TCanvas with name c1
Error in TFile::ReadBuffer: error reading all requested bytes from file testjob.root, got 0 of 3934
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0, but fEntryOffset=0, trying to repair
Error in TBranchElement::GetBasket: File: testjob.root at byte:0, branch:(null), entry:153661564
Error in TFile::ReadBuffer: error reading all requested bytes from file testjob.root, got 0 of 3934
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0, but fEntryOffset=0, trying to repair
Error in TBranchElement::GetBasket: File: testjob.root at byte:0, branch:(null), entry:153661564
terminate called after throwing an instance of ‘std::bad_alloc’
what(): St9bad_alloc
#######################################################################
I will attach my processor code (it isn’t too long) and the root file. I believe the problem is in the part of the code that fills the muonbranch (as I have called it). As I said, it seems to be fine when run over 2000 events.
If any of you would help me with this problem, I would so greatly appreciate it. I am defending a masters in a week using results from this code, and I could really use a friend right now. Thanks so much in advance for your time.
Sincerely,
Evan
testjob.root (113 KB)
MyPartonSelector.cpp (15.2 KB)