Skip to content
Snippets Groups Projects
Commit 0f0d60fa authored by Adam Edward Barton's avatar Adam Edward Barton
Browse files

Merge branch 'cherry-pick-ea0007cf3ef-master' into 'master'

Sweeping !38269 from 21.2 to master.
Fix LHAPDF reweighting in AnalysisTop

See merge request atlas/athena!38321
parents 6f58819a eee5e2ce
No related branches found
No related tags found
No related merge requests found
File mode changed from 100755 to 100644
...@@ -690,22 +690,24 @@ int main(int argc, char** argv) { ...@@ -690,22 +690,24 @@ int main(int argc, char** argv) {
pileupWeight = topScaleFactors->pileupWeight(); pileupWeight = topScaleFactors->pileupWeight();
} }
// perform any operation common to both reco and truth level
// currently we load the MC generator weights inside, if requested
eventSaver->execute();
///-- Truth events --///
if (topConfig->isMC()) { if (topConfig->isMC()) {
// Save, if requested, MC truth block, PDFInfo, TopPartons // if requested, pre-calculate TopPartons and PDF info
// This will be saved for every event
// Run topPartonHistory // Run topPartonHistory
if (topConfig->doTopPartonHistory()) top::check(topPartonHistory->execute(), "Failed to execute topPartonHistory"); if (topConfig->doTopPartonHistory()) top::check(topPartonHistory->execute(), "Failed to execute topPartonHistory");
// calculate PDF weights // calculate PDF weights
if (topConfig->doLHAPDF()) top::check(PDF_SF->execute(), if (topConfig->doLHAPDF()) top::check(PDF_SF->execute(),
"Failed to execute PDF SF"); "Failed to execute PDF SF");
}
// perform any operation common to both reco and truth level
// currently we load the MC generator weights and PDFs if requested
eventSaver->execute();
///-- Truth events --///
if (topConfig->isMC()) {
// Save, if requested, MC truth block, PDFInfo, TopPartons
eventSaver->saveTruthEvent(); eventSaver->saveTruthEvent();
if(topConfig->doTopPartonLevel()) ++eventSavedTruth; if(topConfig->doTopPartonLevel()) ++eventSavedTruth;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment