474 |
|
} |
475 |
|
if(hitcollection.size()==0) { |
476 |
|
hitcollection.push_back(-1); |
477 |
< |
dout << "*** Warning: couldn't find sample " << what << ": using all" << endl; |
477 |
> |
write_warning(__FUNCTION__,"Couldn't find sample "+string(what)+": using sample collection \""+string(this->name)+"\""); |
478 |
|
} |
479 |
|
return hitcollection; |
480 |
|
} |
564 |
|
(this->collection)[isamp].events->SetBranchAddress("eventNum",&eventNum); |
565 |
|
(this->collection)[isamp].events->SetBranchAddress("lumi",&lumi); |
566 |
|
(this->collection)[isamp].events->SetBranchAddress("runNum",&runNum); |
567 |
+ |
|
568 |
|
|
569 |
|
TTreeFormula *select = new TTreeFormula("select", cut.c_str()&&essentialcut, (this->collection)[isamp].events); |
570 |
|
int npickedup=0; |