Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
8 merge requests!66713update MadGraph version,!51680Add functionality to MultiBjetFilter,!44215added ART tests,!42752Fix for TopRecon UserHook,!41097TruthJetFilter phi filter,!38102Add SameParticleHardScatteringFilter,!36648Rivet doc update,!36323fix wrong logic in unknownPDGIDTest
......@@ -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
......
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