Skip to content
Snippets Groups Projects
Commit 1efa6b9e authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'R22_TauPileupVertex' into 'master'

tauRecTools: drop unused pileup vertex scheme

See merge request !37865
parents b1700962 ac13507a
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!37865tauRecTools: drop unused pileup vertex scheme
...@@ -100,7 +100,6 @@ def getEnergyCalibrationLC(correctEnergy=True, correctAxis=False, postfix=''): ...@@ -100,7 +100,6 @@ def getEnergyCalibrationLC(correctEnergy=True, correctAxis=False, postfix=''):
doEnergyCorrection = correctEnergy, doEnergyCorrection = correctEnergy,
doAxisCorrection = correctAxis, doAxisCorrection = correctAxis,
doPtResponse = True, doPtResponse = True,
countOnlyPileupVertices = True,
Key_vertexInputContainer = _DefaultVertexContainer Key_vertexInputContainer = _DefaultVertexContainer
) )
......
...@@ -19,7 +19,6 @@ TauCalibrateLC::TauCalibrateLC(const std::string& name) : ...@@ -19,7 +19,6 @@ TauCalibrateLC::TauCalibrateLC(const std::string& name) :
declareProperty("calibrationFile", m_calibrationFile = ""); declareProperty("calibrationFile", m_calibrationFile = "");
declareProperty("doEnergyCorrection", m_doEnergyCorr = false); declareProperty("doEnergyCorrection", m_doEnergyCorr = false);
declareProperty("doPtResponse", m_doPtResponse = false); declareProperty("doPtResponse", m_doPtResponse = false);
declareProperty("countOnlyPileupVertices", m_countOnlyPileupVertices = false);
declareProperty("doAxisCorrection", m_doAxisCorr = false); declareProperty("doAxisCorrection", m_doAxisCorr = false);
declareProperty("usePantauAxis", m_usePantauAxis = false); declareProperty("usePantauAxis", m_usePantauAxis = false);
declareProperty("isCaloOnly", m_isCaloOnly = false); declareProperty("isCaloOnly", m_isCaloOnly = false);
...@@ -169,10 +168,7 @@ StatusCode TauCalibrateLC::execute(xAOD::TauJet& pTau) const ...@@ -169,10 +168,7 @@ StatusCode TauCalibrateLC::execute(xAOD::TauJet& pTau) const
} }
const xAOD::VertexContainer * vxContainer = vertexInHandle.cptr(); const xAOD::VertexContainer * vxContainer = vertexInHandle.cptr();
for (const auto vertex : *vxContainer) { for (const auto vertex : *vxContainer) {
if (m_countOnlyPileupVertices && vertex->vertexType() == xAOD::VxType::PileUp) { if (vertex->vertexType() == xAOD::VxType::PileUp) {
++nVertex;
}
else if (!m_countOnlyPileupVertices && vertex->nTrackParticles() >= m_minNTrackAtVertex) {
++nVertex; ++nVertex;
} }
} }
......
...@@ -51,7 +51,6 @@ class TauCalibrateLC : public TauRecToolBase { ...@@ -51,7 +51,6 @@ class TauCalibrateLC : public TauRecToolBase {
std::string m_calibrationFile; //!< energy calibration file std::string m_calibrationFile; //!< energy calibration file
bool m_doEnergyCorr; //!< switch for energy correction bool m_doEnergyCorr; //!< switch for energy correction
bool m_doPtResponse; //!< switch for pt response vs pt, if false, use E response vs E bool m_doPtResponse; //!< switch for pt response vs pt, if false, use E response vs E
bool m_countOnlyPileupVertices; //!< switch for counting vertices by nTracks or VxType::PileUp
bool m_doAxisCorr; //!< switch for eta correction bool m_doAxisCorr; //!< switch for eta correction
bool m_usePantauAxis; //!< switch for overwriting calo (eta,phi) with Pantau (eta,phi) bool m_usePantauAxis; //!< switch for overwriting calo (eta,phi) with Pantau (eta,phi)
bool m_isCaloOnly; //!< switch for CaloOnly corrections bool m_isCaloOnly; //!< switch for CaloOnly corrections
......
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