7 #include "cetlib_except/exception.h" 18 using namespace fhicl;
53 vector<int const*> ptrs;
56 cerr <<
"SizeMismatch expected a view of size " <<
nvalues_ 57 <<
" but the obtained size is " << sz <<
'\n';
59 <<
"Expected a view of size " <<
nvalues_ 60 <<
" but the obtained size is " << sz <<
'\n';
62 for (
size_t k = 0;
k != sz; ++
k) {
63 if (*ptrs[
k] != (
int)(e.
id().
event() +
k)) {
64 cerr <<
"ValueMismatch at position " <<
k <<
" expected value " 65 << e.
id().
event() +
k <<
" but obtained " << *ptrs[
k] <<
'\n';
67 <<
"At position " <<
k <<
" expected value " << e.
id().
event() +
k 68 <<
" but obtained " << *ptrs[
k] <<
'\n';
def analyze(root, level, gtrees, gbranches, doprint)
string const moduleLabel_
void analyze(Event const &, ProcessingFrame const &) override
#define DEFINE_ART_MODULE(klass)
ViewToken< int > const viewToken_
EventNumber_t event() const
std::size_t getView(std::string const &moduleLabel, std::string const &productInstanceName, std::string const &processName, std::vector< ELEMENT const * > &result) const
cet::coded_exception< error, detail::translate > exception