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
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment