Skip to content
Snippets Groups Projects
Commit aadbe96b authored by Jana Schaarschmidt's avatar Jana Schaarschmidt
Browse files

deleting prob vector from PCAEnergyParametrization and adding size check in...

deleting prob vector from PCAEnergyParametrization and adding size check in EnergyBinParametrization


Former-commit-id: e54a59a35e7b77ca865f55677ec2180cfdc72496
parent c2135e7c
No related branches found
No related tags found
No related merge requests found
......@@ -51,8 +51,6 @@ class TFCSPCAEnergyParametrization:public TFCSEnergyParametrization
std::vector<TVectorD*> m_Gauss_rms;
std::vector<std::vector<TFCS1DFunction*> > m_cumulative;
std::vector<float> m_pcabinprob;
int m_numberpcabins;
ClassDefOverride(TFCSPCAEnergyParametrization,1) //TFCSPCAEnergyParametrization
......
......@@ -91,6 +91,13 @@ void TFCSEnergyBinParametrization::load_pdgid_Ekin_bin_probability_from_file(int
if(!pcabinprobvector)
{
ATH_MSG_ERROR("TFCSEnergyBinParametrization::"<<prob_object_name<<" is null");
return;
}
if((unsigned int)pcabinprobvector->GetNoElements()!=m_pdgid_Ebin_probability[id].size())
{
ATH_MSG_ERROR("TFCSEnergyBinParametrization::set_pdgid_Ekin_bin_probability(): size of prob array does not match! in.size()="<<pcabinprobvector->GetNoElements()<<" instance="<<m_pdgid_Ebin_probability[id].size());
return;
}
float* prob =pcabinprobvector->GetMatrixArray();
......
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