Go to the source code of this file.
template<typename T >
void check_for_conversion |
( |
art::View< T > const & |
v | ) |
|
Definition at line 139 of file SimpleDerivedAnalyzer_module.cc.
144 auto const event_num =
e.id().event();
145 std::vector<T const*> ptrs;
146 auto sz =
e.getView(token, ptrs);
147 assert(sz == nvalues);
150 sz =
e.getView(tokenForCurrentProcess, ptrs);
151 assert(sz == nvalues);
154 assert(
e.getView(token, v));
155 assert(v.
vals().size() == nvalues);
158 assert(
e.getView(tokenForCurrentProcess, v2));
159 assert(v2.vals().size() == nvalues);
163 v.
vals().front() = 0;
166 for (std::size_t
i = 0, sz = pvec.
size();
i != sz; ++
i) {
167 assert(*pvec[
i] == *v.
vals()[
i + 1]);
void fill(PtrVector< T > &pv) const
void verify_elements(std::vector< T > const &ptrs, std::size_t sz, art::EventNumber_t event_num, std::size_t)
template<class T >
void verify_elements |
( |
std::vector< T > const & |
ptrs, |
|
|
std::size_t |
sz, |
|
|
art::EventNumber_t |
event_num, |
|
|
std::size_t |
|
|
) |
| |
Definition at line 124 of file SimpleDerivedAnalyzer_module.cc.
129 for (std::size_t
k = 0;
k != sz; ++
k) {
130 assert((
unsigned)ptrs[
k]->
key == sz -
k + event_num);
131 double expect = 1.5 *
k + 100.0;
132 assert(ptrs[
k]->
value == expect);
133 assert(ptrs[
k]->
dummy() == 16.25);
cet::LibraryManager dummy("noplugin")