Commit 802a4bb1 authored by Joshua Santana's avatar Joshua Santana
Browse files

[FIX] check if edep column is available before retrieving value

parent 209b4bb0
......@@ -85,11 +85,14 @@ void WCsvConverter::setOutputFromCSV( )
continue;
}
float edep = stringToDouble( dataRow->at( m_indexes->getEdep() ) );
if( getClusterSize( edep ) < 1.0 || getClusterSize( edep ) > 35.0 )
if( m_protonData->isColumnAvailable( WSingleSelectorName::getEdep() ) )
{
continue;
float edep = stringToDouble( dataRow->at( m_indexes->getEdep() ) );
if( getClusterSize( edep ) < 1.0 || getClusterSize( edep ) > 35.0 )
{
continue;
}
}
addVertex( dataRow );
......
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