Commit 2bcd820c authored by Ewelina Maria Lobodzinska's avatar Ewelina Maria Lobodzinska
Browse files

Merge branch '21.6-mg' into '21.6'

fix wrong logic in unknownPDGIDTest

See merge request !36323
parents 8ff877f9 f22d8865
......@@ -33,6 +33,7 @@ TestHepMC::TestHepMC(const string& name, ISvcLocator* pSvcLocator)
declareProperty("AccuracyMargin", m_accur_margin=0.); //MeV
declareProperty("G4ExtraWhiteFile", m_paramFile = "g4_extrawhite.param" );
// a list of allowed pdgid which however are not known to the official list
declareProperty("UnknownPDGIDFile", m_unknownPDGIDFile = "pdgid_extras.txt" );
declareProperty("NoDecayVertexStatuses", m_vertexStatuses );
......@@ -493,7 +494,7 @@ StatusCode TestHepMC::execute() {
// Check for bad PDG IDs
if (!MC::PID::isValid(ppdgid)){
ATH_MSG_WARNING("Invalid PDG ID found: " << ppdgid);
if (m_unknownPDGIDTest && std::find(m_uknownPDGID_tab.begin(),m_uknownPDGID_tab.end(),ppdgid)!=m_uknownPDGID_tab.end()){
if (m_unknownPDGIDTest && std::find(m_uknownPDGID_tab.begin(),m_uknownPDGID_tab.end(),ppdgid)==m_uknownPDGID_tab.end()){
filter_pass = false;
}
} // End of check for invalid PDG IDs
......
Markdown is supported
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