Skip to content
Snippets Groups Projects
Commit 3e682950 authored by John Chapman's avatar John Chapman
Browse files

clang-tidy fixes for the FastCaloSim package

parent df64b80f
No related branches found
No related tags found
No related merge requests found
...@@ -96,7 +96,7 @@ public: ...@@ -96,7 +96,7 @@ public:
typedef std::vector<HepMC::ConstGenParticlePtr> MCparticleCollection ; typedef std::vector<HepMC::ConstGenParticlePtr> MCparticleCollection ;
private: private:
void LoadParametrizationsFromDir(std::string dir); void LoadParametrizationsFromDir(const std::string& dir);
void LoadParametrizationsFromFile(TDirectory& infile,MSG::Level level=MSG::INFO); void LoadParametrizationsFromFile(TDirectory& infile,MSG::Level level=MSG::INFO);
StatusCode OpenParamSource(std::string insource); StatusCode OpenParamSource(std::string insource);
......
...@@ -195,7 +195,7 @@ FastShowerCellBuilderTool::~FastShowerCellBuilderTool() ...@@ -195,7 +195,7 @@ FastShowerCellBuilderTool::~FastShowerCellBuilderTool()
} }
} }
void FastShowerCellBuilderTool::LoadParametrizationsFromDir(std::string dir) void FastShowerCellBuilderTool::LoadParametrizationsFromDir(const std::string& dir)
{ {
TString curdir=gSystem->pwd(); TString curdir=gSystem->pwd();
TString dirname=dir.c_str(); TString dirname=dir.c_str();
...@@ -521,7 +521,7 @@ StatusCode FastShowerCellBuilderTool::OpenParamSource(std::string insource) ...@@ -521,7 +521,7 @@ StatusCode FastShowerCellBuilderTool::OpenParamSource(std::string insource)
} }
insource.erase(0,3); insource.erase(0,3);
std::string::size_type strpos=insource.find(":"); std::string::size_type strpos=insource.find(':');
if(strpos==std::string::npos) { if(strpos==std::string::npos) {
ATH_MSG_WARNING("Could not parse string for database entry : "<< insource); ATH_MSG_WARNING("Could not parse string for database entry : "<< insource);
return StatusCode::SUCCESS; return StatusCode::SUCCESS;
...@@ -530,7 +530,7 @@ StatusCode FastShowerCellBuilderTool::OpenParamSource(std::string insource) ...@@ -530,7 +530,7 @@ StatusCode FastShowerCellBuilderTool::OpenParamSource(std::string insource)
ATH_MSG_DEBUG(" folder "<< cool_folder); ATH_MSG_DEBUG(" folder "<< cool_folder);
insource.erase(0,strpos+1); insource.erase(0,strpos+1);
strpos=insource.find(":"); strpos=insource.find(':');
std::string str_cool_channel=insource.substr(0,strpos); std::string str_cool_channel=insource.substr(0,strpos);
if(strpos==std::string::npos) { if(strpos==std::string::npos) {
ATH_MSG_WARNING("Could not parse string for database entry "<< insource); ATH_MSG_WARNING("Could not parse string for database entry "<< insource);
......
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