| 115 |
TTimeStamp *llim = new TTimeStamp(YY,MM,DD,0,0,0,0,true,0); |
TTimeStamp *llim = new TTimeStamp(YY,MM,DD,0,0,0,0,true,0); |
| 116 |
// |
// |
| 117 |
UInt_t lowerlimit = llim->GetSec(); |
UInt_t lowerlimit = llim->GetSec(); |
| 118 |
UInt_t upperlimit = lowerlimit + 86401; |
UInt_t upperlimit = lowerlimit + 86400; |
| 119 |
// |
// |
| 120 |
if ( DebugMode() ) printf(" YY %u MM %u DD %u ll %u ul %u \n",YY,MM,DD,lowerlimit,upperlimit); |
if ( DebugMode() ) printf(" YY %u MM %u DD %u ll %u ul %u \n",YY,MM,DD,lowerlimit,upperlimit); |
| 121 |
// |
// |
| 282 |
TTimeStamp *llim = new TTimeStamp(YY,MM,DD,0,0,0,0,true,0); |
TTimeStamp *llim = new TTimeStamp(YY,MM,DD,0,0,0,0,true,0); |
| 283 |
// |
// |
| 284 |
UInt_t lowerlimit = llim->GetSec(); |
UInt_t lowerlimit = llim->GetSec(); |
| 285 |
UInt_t upperlimit = lowerlimit + 86401; |
UInt_t upperlimit = lowerlimit + 86400; |
| 286 |
// |
// |
| 287 |
if ( DebugMode() ) printf(" YY %u MM %u DD %u ll %u ul %u \n",YY,MM,DD,lowerlimit,upperlimit); |
if ( DebugMode() ) printf(" YY %u MM %u DD %u ll %u ul %u \n",YY,MM,DD,lowerlimit,upperlimit); |
| 288 |
// |
// |
| 565 |
// |
// |
| 566 |
merged = true; |
merged = true; |
| 567 |
// |
// |
| 568 |
if ( li ) li->Delete(); |
// if ( li ) li->Delete(); |
| 569 |
li = new PamLevel2(wd,sourcelist,fDList); |
PamLevel2 *nli = new PamLevel2(wd,sourcelist,fDList); |
| 570 |
li->SetSELLI(2); |
nli->SetSELLI(2); |
| 571 |
// |
// |
| 572 |
Target->cd(); |
Target->cd(); |
| 573 |
// |
// |
| 574 |
li->CreateCloneTrees(Target); |
nli->CreateCloneTrees(Target); |
| 575 |
ULong64_t nevents = li->GetEntries(); |
ULong64_t nevents = nli->GetEntries(); |
| 576 |
printf(" NEVENTS %llu \n",nevents); |
printf(" NEVENTS %llu \n",nevents); |
| 577 |
for(ULong64_t iev=0; iev<nevents; iev++){ |
for(ULong64_t iev=0; iev<nevents; iev++){ |
| 578 |
li->Clear(); |
nli->Clear(); |
| 579 |
if( li->GetEntry(iev) ){ |
if( nli->GetEntry(iev) ){ |
| 580 |
li->FillCloneTrees(); |
nli->FillCloneTrees(); |
| 581 |
}; |
}; |
| 582 |
}; |
}; |
| 583 |
Target->cd(); |
Target->cd(); |
| 584 |
li->WriteCloneTrees(); |
nli->WriteCloneTrees(); |
| 585 |
printf("Written file %s \n",Target->GetName()); |
printf("Written file %s \n",Target->GetName()); |
| 586 |
// Target->Write(); |
// Target->Write(); |
| 587 |
// TTree *slist = (TTree*)Target->Get("SelectionList"); |
// TTree *slist = (TTree*)Target->Get("SelectionList"); |