Skip to content
Snippets Groups Projects
Commit e609c873 authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'AT-enable-largeRjets' into 'master'

Enable support for large-R jets in AnalysisTop

See merge request atlas/athena!39316
parents cbadde03 3b8863d3
No related branches found
No related tags found
No related merge requests found
...@@ -523,8 +523,7 @@ namespace top { ...@@ -523,8 +523,7 @@ namespace top {
"TopObjectSelection::applySelectionPreOverlapRemovalLargeRJets() failed to retrieve large R jets"); "TopObjectSelection::applySelectionPreOverlapRemovalLargeRJets() failed to retrieve large R jets");
for (auto jetPtr : *jets) { for (auto jetPtr : *jets) {
//char decoration = m_largeJetSelection->passSelection(*jetPtr); char decoration = m_largeJetSelection->passSelection(*jetPtr);
char decoration = '0';
jetPtr->auxdecor<char>(m_passPreORSelection) = decoration; jetPtr->auxdecor<char>(m_passPreORSelection) = decoration;
jetPtr->auxdecor<char>(m_ORToolDecoration) = decoration * 2; jetPtr->auxdecor<char>(m_ORToolDecoration) = decoration * 2;
if (m_doLooseCuts) { if (m_doLooseCuts) {
......
...@@ -249,17 +249,15 @@ namespace top { ...@@ -249,17 +249,15 @@ namespace top {
if (m_config->jetSubstructureName() == "SubjetMaker") m_jetSubstructure.reset(new top::SubjetMaker); if (m_config->jetSubstructureName() == "SubjetMaker") m_jetSubstructure.reset(new top::SubjetMaker);
///-- Large R jet truth labeling --/// ///-- Large R jet truth labeling --///
// m_jetTruthLabelingTool = nullptr; m_jetTruthLabelingTool = nullptr;
// if (m_config->isMC() && m_config->useLargeRJets()) { if (m_config->isMC() && m_config->useLargeRJets()) {
// m_jetTruthLabelingTool = std::unique_ptr<JetTruthLabelingTool>(new JetTruthLabelingTool("JetTruthLabeling")); m_jetTruthLabelingTool = std::unique_ptr<JetTruthLabelingTool>(new JetTruthLabelingTool("JetTruthLabeling"));
// // For DAOD_PHYS we need to pass few more arguments as it uses TRUTH3 // For DAOD_PHYS we need to pass few more arguments as it uses TRUTH3
// if (m_config->getDerivationStream() == "PHYS") { top::check(m_jetTruthLabelingTool->setProperty("UseTRUTH3", true), "Failed to set UseTRUTH3 for m_jetTruthLabelingTool");
// top::check(m_jetTruthLabelingTool->setProperty("UseTRUTH3", true), "Failed to set UseTRUTH3 for m_jetTruthLabelingTool"); top::check(m_jetTruthLabelingTool->setProperty("TruthBosonContainerName", "TruthBoson"), "Failed to set truth container name for m_jetTruthLabelingTool");
// top::check(m_jetTruthLabelingTool->setProperty("TruthBosonContainerName", "TruthBoson"), "Failed to set truth container name for m_jetTruthLabelingTool"); top::check(m_jetTruthLabelingTool->setProperty("TruthTopQuarkContainerName", "TruthTop"), "Failed to set truth container name for m_jetTruthLabelingTool");
// top::check(m_jetTruthLabelingTool->setProperty("TruthTopQuarkContainerName", "TruthTop"), "Failed to set truth container name for m_jetTruthLabelingTool"); top::check(m_jetTruthLabelingTool->initialize(), "Failed to initialize m_jetTruthLabelingTool");
// } }
// top::check(m_jetTruthLabelingTool->initialize(), "Failed to initialize m_jetTruthLabelingTool");
// }
// set the systematics list // set the systematics list
m_config->systematicsJets(specifiedSystematics()); m_config->systematicsJets(specifiedSystematics());
...@@ -383,7 +381,13 @@ namespace top { ...@@ -383,7 +381,13 @@ namespace top {
///-- Apply calibration --/// ///-- Apply calibration --///
///-- Calibrate jet container --/// ///-- Calibrate jet container --///
top::check(m_jetCalibrationTool->applyCalibration(*(shallow_xaod_copy.first)), "Failed to applyCalibration"); if (isLargeR) {
top::check(m_jetCalibrationToolLargeR->applyCalibration(*(shallow_xaod_copy.first)),
"Failed to do applyCalibration on large-R jets");
} else {
top::check(m_jetCalibrationTool->applyCalibration(*(shallow_xaod_copy.first)),
"Failed to do applyCalibration on small-R jets");
}
///-- Loop over the xAOD Container --/// ///-- Loop over the xAOD Container --///
for (const auto jet : *(shallow_xaod_copy.first)) { for (const auto jet : *(shallow_xaod_copy.first)) {
......
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