117 catch (std::bad_alloc
const&) {}
130 catch (std::out_of_range
const&) {}
155 std::vector<int> intData(5, 0);
158 for (
unsigned int i = 0; i < 10; ++i) {
162 intTotal += intData.at(i);
174 using OneMebibyte = std::array<unsigned char, 1048576U>;
176 std::vector<OneMebibyte> manyMebibytes;
179 mf::LogVerbatim(
"Exploder") <<
"Now allocating: " << manyMebibytes.max_size()
180 <<
" x " <<
sizeof(OneMebibyte) <<
" bytes";
181 manyMebibytes.resize(manyMebibytes.max_size());
190 <<
"I hate the world and I am vengeful.\n";
MaybeLogger_< ELseverityLevel::ELsev_info, true > LogVerbatim
Exploder(Parameters const &config)
Constructor.
static unsigned int throwOutOfRange()
Throws a std::length_error exception.
fhicl::Atom< bool > ManageArtException
fhicl::Atom< bool > ManageBadAlloc
virtual void analyze(art::Event const &) override
Executes the iterations.
#define DEFINE_ART_MODULE(klass)
static void throwBadAlloc()
Throws a std::out_of_range exception.
EDAnalyzer(Table< Config > const &config)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
LArSoft-specific namespace.
fhicl::Atom< bool > ManageOutOfRange
static void throwArtException()
Throws a std::out_of_range exception.