Commit 81404070 authored by Judith Hofer's avatar Judith Hofer
Browse files

Do not do the track-truth association on the Sherpa Z' sample.

This is the quick fix for this ticket: https://its.cern.ch/jira/browse/AFT-555
parent 3f44c5a4
...@@ -176,6 +176,11 @@ namespace JetTagDQA { ...@@ -176,6 +176,11 @@ namespace JetTagDQA {
ATH_MSG_WARNING("It is checked if the sample is ttbar (has dsid 410000) or Zprime (has dsid 427080). None applies (read dsid is " << dsid << "). Applying default pT cut of 20000 MeV now."); ATH_MSG_WARNING("It is checked if the sample is ttbar (has dsid 410000) or Zprime (has dsid 427080). None applies (read dsid is " << dsid << "). Applying default pT cut of 20000 MeV now.");
m_jetPtCut = 20000; m_jetPtCut = 20000;
} }
// do not do the track-truth association on this Sherpa Z' sample
if(dsid == 361405){
m_doTrackTruth = false;
}
} }
// get the primary vertex // get the primary vertex
...@@ -319,7 +324,7 @@ namespace JetTagDQA { ...@@ -319,7 +324,7 @@ namespace JetTagDQA {
// only try accessing the truth values if not on data // only try accessing the truth values if not on data
int origin = 0; int origin = 0;
if(!m_isData){ if(!m_isData && m_doTrackTruth){
origin = m_trackTruthOriginTool->getTrackOrigin(track); origin = m_trackTruthOriginTool->getTrackOrigin(track);
} }
...@@ -350,7 +355,7 @@ namespace JetTagDQA { ...@@ -350,7 +355,7 @@ namespace JetTagDQA {
// only try accessing the truth values if not on data // only try accessing the truth values if not on data
int origin = 0; int origin = 0;
if(!m_isData){ if(!m_isData && m_doTrackTruth){
origin = m_trackTruthOriginTool->getTrackOrigin(track); origin = m_trackTruthOriginTool->getTrackOrigin(track);
} }
......
...@@ -81,6 +81,7 @@ namespace JetTagDQA { ...@@ -81,6 +81,7 @@ namespace JetTagDQA {
// isData flag // isData flag
bool m_isData; bool m_isData;
bool m_doTrackTruth = true;
// Containers // Containers
std::string m_jetName1; std::string m_jetName1;
......
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