| 476 |
fUpdateRunInfo = true; // Emiliano |
fUpdateRunInfo = true; // Emiliano |
| 477 |
isSync = false; // by default assume that the level2 file(s) is(are) not sinchronized between L0/DB and L2, that is we miss some packets in L2 due to nested/DV-skipped events |
isSync = false; // by default assume that the level2 file(s) is(are) not sinchronized between L0/DB and L2, that is we miss some packets in L2 due to nested/DV-skipped events |
| 478 |
il0entry = 0LL; |
il0entry = 0LL; |
| 479 |
hasL0EE = true; |
// hasL0EE = true; |
| 480 |
|
|
| 481 |
l0_file = NULL; |
l0_file = NULL; |
| 482 |
l0_tree = NULL; |
l0_tree = NULL; |
| 2451 |
cout << "SelectionList: set branch address RunEntry" << endl; |
cout << "SelectionList: set branch address RunEntry" << endl; |
| 2452 |
L->SetBranchAddress("EventEntry", &irunentry); |
L->SetBranchAddress("EventEntry", &irunentry); |
| 2453 |
cout << "SelectionList: set branch address EventEntry" << endl; |
cout << "SelectionList: set branch address EventEntry" << endl; |
| 2454 |
if ( L->GetBranch("L0EventEntry") ){ |
/* if ( L->GetBranch("L0EventEntry") ){ |
| 2455 |
hasL0EE = true; |
hasL0EE = true; |
| 2456 |
L->SetBranchAddress("L0EventEntry", &il0entry); |
L->SetBranchAddress("L0EventEntry", &il0entry); |
| 2457 |
cout << "SelectionList: set branch address L0EventEntry" << endl; |
cout << "SelectionList: set branch address L0EventEntry" << endl; |
| 2458 |
} else { |
} else { |
| 2459 |
hasL0EE = false; // backward compatibility with old preselected files... |
hasL0EE = false; // backward compatibility with old preselected files... |
| 2460 |
} |
}*/ |
| 2461 |
sel_tree = L; |
sel_tree = L; |
| 2462 |
// if(!Trout)Trout=O; |
// if(!Trout)Trout=O; |
| 2463 |
// else Trout->AddFriend("SelectionList"); |
// else Trout->AddFriend("SelectionList"); |
| 3974 |
// sel_tree_clone->Branch("RunEntry",&irun,"runentry/L"); |
// sel_tree_clone->Branch("RunEntry",&irun,"runentry/L"); |
| 3975 |
sel_tree_clone->Branch("RunEntry", &irunt, "runentry/L");//NEWNEW |
sel_tree_clone->Branch("RunEntry", &irunt, "runentry/L");//NEWNEW |
| 3976 |
sel_tree_clone->Branch("EventEntry", &irunentry, "eventry/L"); |
sel_tree_clone->Branch("EventEntry", &irunentry, "eventry/L"); |
| 3977 |
if ( hasL0EE ) sel_tree_clone->Branch("L0EventEntry", &il0entry, "l0eventry/L"); |
// if ( hasL0EE ) sel_tree_clone->Branch("L0EventEntry", &il0entry, "l0eventry/L"); |
| 3978 |
}; |
}; |
| 3979 |
|
|
| 3980 |
Int_t i = 0; |
Int_t i = 0; |
| 4311 |
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- |
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- |
| 4312 |
// if it is a full file (not preselected) |
// if it is a full file (not preselected) |
| 4313 |
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- |
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+- |
| 4314 |
if (SELLI == 0 || SELLI == 2 || !hasL0EE) { |
// if (SELLI == 0 || SELLI == 2 || !hasL0EE) { |
| 4315 |
|
|
| 4316 |
if (!GetYodaTree()){ |
if (!GetYodaTree()){ |
| 4317 |
printf(" PamLevel2::GetYodaEntry() : ERROR no level0 file loaded!\n"); |
printf(" PamLevel2::GetYodaEntry() : ERROR no level0 file loaded!\n"); |
| 4636 |
return readl0; |
return readl0; |
| 4637 |
} |
} |
| 4638 |
|
|
| 4639 |
} // if selli 0 || 2 |
/* } // if selli 0 || 2 |
| 4640 |
if ( SELLI == 1 && hasL0EE ){ |
if ( SELLI == 1 && hasL0EE ){ |
| 4641 |
sel_tree->GetEntry(iev); |
sel_tree->GetEntry(iev); |
| 4642 |
Long64_t answer = il0entry; |
Long64_t answer = il0entry; |
| 4643 |
Int_t readl0 = 0; |
Int_t readl0 = 0; |
| 4644 |
readl0 = l0_tree->GetEntry(answer); |
readl0 = l0_tree->GetEntry(answer); |
| 4645 |
return readl0; |
return readl0; |
| 4646 |
} |
}*/ |
| 4647 |
printf(" PamLevel2::GetYodaEntry() ERROR! \n"); |
printf(" PamLevel2::GetYodaEntry() ERROR! \n"); |
| 4648 |
cout << " Entry not found! OK this is a bug, write to Emiliano, Emiliano.Mocchiutti@ts.infn.it " << endl; |
cout << " Entry not found! OK this is a bug, write to Emiliano, Emiliano.Mocchiutti@ts.infn.it " << endl; |
| 4649 |
cout << "\nFor bug reporting instructions, please see for example:\n"; |
cout << "\nFor bug reporting instructions, please see for example:\n"; |