Commit f69fc131 authored by Bjoern Wendland's avatar Bjoern Wendland Committed by Nils Erik Krumnack
Browse files

AT: Adding AsgDeadHVCellRemovalTool for electron and photon clusters

parent de13b6b1
......@@ -69,6 +69,9 @@ namespace top {
m_operatingPointLoose_DF = egammaNamesAreNotConsistantAnywhereLoose;
m_operatingPoint = operatingPoint;
m_operatingPointLoose = operatingPointLoose;
m_deadHVTool.setTypeAndName("AsgDeadHVCellRemovalTool/deadHVTool");
top::check(m_deadHVTool.retrieve(), "Failed to setup Egamma DeadHVCellRemovalTool");
}
ElectronLikelihoodMC15::ElectronLikelihoodMC15(const bool,
......@@ -158,6 +161,11 @@ namespace top {
if (!passTTVACuts(el)) return false;
}
// removing electron cluster in EMEC bad HV regions
// https://twiki.cern.ch/twiki/bin/view/AtlasProtected/EGammaIdentificationRun2#Removal_of_Electron_Photon_clust
if (!m_deadHVTool->accept(el)) return false;
// Electron Charge ID Selector Tool
// apply decoration only
if (m_applyChargeIDCut && !passChargeIDCut(el)) el.auxdecor<char>("passChargeID") = 0;
......
......@@ -42,6 +42,9 @@ namespace top {
// If ID in map then set it to full name, else keep as is.
if (id_map.find(tightID) != id_map.end()) m_photon_selection = id_map[tightID];
if (id_map.find(looseID) != id_map.end()) m_loose_photon_selection = id_map[looseID];
m_deadHVTool.setTypeAndName("AsgDeadHVCellRemovalTool/deadHVTool");
top::check(m_deadHVTool.retrieve(), "Failed to setup Egamma DeadHVCellRemovalTool");
}
bool PhotonMC16::passSelection(const xAOD::Photon& ph) const {
......@@ -102,6 +105,10 @@ namespace top {
m_usePhotonShowerShapeVariables = false;
}
}
// removing photon cluster in EMEC bad HV regions
// https://twiki.cern.ch/twiki/bin/view/AtlasProtected/EGammaIdentificationRun2#Removal_of_Electron_Photon_clust
if (!m_deadHVTool->accept(ph)) return false;
return true;
}
......
......@@ -7,7 +7,8 @@
#include "TopObjectSelectionTools/ElectronSelectionBase.h"
#include "TopObjectSelectionTools/IsolationTools.h"
#include "EgammaAnalysisInterfaces/IAsgDeadHVCellRemovalTool.h"
#include "AsgTools/AnaToolHandle.h"
#include <memory>
namespace top {
......@@ -116,6 +117,10 @@ namespace top {
/// decide to apply the charge ID selector tool
bool m_applyChargeIDCut;
// Removing electron clusters from EMEC bad HV regions
// https://twiki.cern.ch/twiki/bin/view/AtlasProtected/EGammaIdentificationRun2#Removal_of_Electron_Photon_clust
asg::AnaToolHandle<IAsgDeadHVCellRemovalTool> m_deadHVTool;
};
}
......
......@@ -12,7 +12,8 @@
#include "TopObjectSelectionTools/IsolationTools.h"
#include "ElectronPhotonSelectorTools/AsgPhotonIsEMSelector.h"
#include "EgammaAnalysisInterfaces/IAsgDeadHVCellRemovalTool.h"
#include "AsgTools/AnaToolHandle.h"
namespace top {
/**
* @brief Photon selection for top analyses.
......@@ -105,6 +106,10 @@ namespace top {
std::unique_ptr<top::IsolationBase> m_isolation;
mutable bool m_usePhotonShowerShapeVariables;
// Removing photon clusters from EMEC bad HV regions
// https://twiki.cern.ch/twiki/bin/view/AtlasProtected/EGammaIdentificationRun2#Removal_of_Electron_Photon_clust
asg::AnaToolHandle<IAsgDeadHVCellRemovalTool> m_deadHVTool;
};
} // namespace top
#endif // TOPOBJECTSELECTIONTOOLS_PHOTONMC16_H_
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment