Skip to content

Commit

Permalink
apply review comments on try/catch in Vx3DHLTAnalyzer.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
francescobrivio committed Jul 12, 2022
1 parent d203acf commit 1b0f4af
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions DQM/BeamMonitor/plugins/Vx3DHLTAnalyzer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@ int Vx3DHLTAnalyzer::MyFit(vector<double>* vals) {

try {
Gauss3D->Minimize();
} catch (...) {
edm::LogError("Vx3DHLTAnalyzer") << "\tInitial matrix not pos. def.";
} catch (cms::Exception& er) {
edm::LogError("Vx3DHLTAnalyzer") << "\tCaught Minuit2 exception: " << er.what();
}
goodData = Gauss3D->Status();
edm = Gauss3D->Edm();
Expand Down Expand Up @@ -419,8 +419,8 @@ int Vx3DHLTAnalyzer::MyFit(vector<double>* vals) {

try {
Gauss3D->Minimize();
} catch (...) {
edm::LogError("Vx3DHLTAnalyzer") << "\tInitial matrix not pos. def.";
} catch (cms::Exception& er) {
edm::LogError("Vx3DHLTAnalyzer") << "\tCaught Minuit2 exception: " << er.what();
}
goodData = Gauss3D->Status();
edm = Gauss3D->Edm();
Expand Down Expand Up @@ -496,8 +496,8 @@ int Vx3DHLTAnalyzer::MyFit(vector<double>* vals) {

try {
Gauss3D->Minimize();
} catch (...) {
edm::LogError("Vx3DHLTAnalyzer") << "\tInitial matrix not pos. def.";
} catch (cms::Exception& er) {
edm::LogError("Vx3DHLTAnalyzer") << "\tCaught Minuit2 exception: " << er.what();
}
goodData = Gauss3D->Status();
edm = Gauss3D->Edm();
Expand Down Expand Up @@ -564,8 +564,8 @@ int Vx3DHLTAnalyzer::MyFit(vector<double>* vals) {

try {
Gauss3D->Minimize();
} catch (...) {
edm::LogError("Vx3DHLTAnalyzer") << "\tInitial matrix not pos. def.";
} catch (cms::Exception& er) {
edm::LogError("Vx3DHLTAnalyzer") << "\tCaught Minuit2 exception: " << er.what();
}
goodData = Gauss3D->Status();
edm = Gauss3D->Edm();
Expand Down Expand Up @@ -636,8 +636,8 @@ int Vx3DHLTAnalyzer::MyFit(vector<double>* vals) {

try {
Gauss3D->Minimize();
} catch (...) {
edm::LogError("Vx3DHLTAnalyzer") << "\tInitial matrix not pos. def.";
} catch (cms::Exception& er) {
edm::LogError("Vx3DHLTAnalyzer") << "\tCaught Minuit2 exception: " << er.what();
}
goodData = Gauss3D->Status();
edm = Gauss3D->Edm();
Expand Down

0 comments on commit 1b0f4af

Please sign in to comment.