Skip to content
Snippets Groups Projects
Commit 630bfe6f authored by Chad Lantz's avatar Chad Lantz
Browse files

Made the successful creation statement conditional on the successful creation of the detector

parent bc85b959
No related branches found
No related tags found
No related merge requests found
......@@ -80,8 +80,11 @@ void ZDC::LoadElements( std::vector < Channel* > _elements, int _runNumber){
SetElement(_elements.at(i));
}
}
if(GetChannelsVector().size() > 1) std::cout << "WARNING : more than one entry for one ZDC module. Check the config.xml" << std::endl;
std::cout << "ZDC object created with " << GetChannelsVector().size() << " channel entries " << std::endl;
if(GetChannelsVector().size() > 1)
std::cout << "WARNING : more than one entry for one ZDC module. Check the config.xml" << std::endl;
if(GetChannelsVector().size() > 0)
std::cout << "ZDC object created with " << GetChannelsVector().size() << " channel entries " << std::endl;
}
......
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