Commit 9bd6e769 authored by daniel.bub's avatar daniel.bub
Browse files

[ADD #53] add mapping PDGEncoding to names

parent 4522a99d
......@@ -99,6 +99,7 @@ void WMFilterProtonData::moduleMain()
m_protonData->setCSVHeader( m_input->getData()->getHeader() );
m_protonData->setCSVData( m_input->getData()->getData() );
}
m_propertyStatus->getFilterPropertyHandler()->createPDGMap( ( m_localPath / getMetaInformation()->query< std::string >( "common/pdgnames" , "NoFile") ).string() );
m_propertyStatus->getColumnPropertyHandler()->createProperties();
m_propertyStatus->getFilterPropertyHandler()->createProperties();
m_propertyStatus->getVisualizationPropertyHandler()->createProperties();
......
......@@ -144,7 +144,6 @@ void WMFilterPropertyHandler::updateSelectedPDGTypes( WPropertyBase::SPtr proper
for( int i = 0; i < selectedItems.size(); ++i )
{
m_selectedPDGTypes.push_back( selectedItems.at( i )->getName() );
m_selectedPDGTypes.push_back(getPdgFromName(selectedItems.at( i )->getName()));
}
}
......@@ -195,7 +194,9 @@ void WMFilterPropertyHandler::updatePDGTypesProperty( WItemSelection::SPtr parti
for( auto pdgType : m_pdgTypes )
{
particleItemSelectionList->addItem( std::to_string( pdgType ) );
particleItemSelectionList->addItem(
getParticleNameFromPdg( pdgType ) + "(" + std::to_string( pdgType) + ")"
);
}
}
}
......
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