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 8731add commit 2029f5c
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 @@ -342,8 +342,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 @@ -418,8 +418,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 @@ -495,8 +495,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 @@ -563,8 +563,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 @@ -635,8 +635,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 2029f5c

Please sign in to comment.