62 assert(*dH == dExpected);
67 BOOST_REQUIRE_EQUAL(ipH->value, dExpected + 1000000 *
nSecondaries_);
72 std::ostringstream sExp;
74 sExp <<
"string value: " << std::setfill(
'0') << std::setw(7)
77 BOOST_REQUIRE_EQUAL(*sH, sExp.str());
84 for (
size_t j = 1; j < 11; ++j) {
85 BOOST_REQUIRE_EQUAL((*vdH)[
i * 10 + j - 1],
96 #ifndef ART_NO_MIX_PTRVECTOR 106 BOOST_REQUIRE_EQUAL(*(*vpdH)[
i * 3 + 0], (*vdH)[(
i * 10) + 0]);
107 BOOST_REQUIRE_EQUAL(*(*vpdH)[
i * 3 + 1], (*vdH)[(
i * 10) + 4]);
108 BOOST_REQUIRE_EQUAL(*(*vpdH)[
i * 3 + 2], (*vdH)[(
i * 10) + 8]);
109 #ifndef ART_NO_MIX_PTRVECTOR 110 BOOST_REQUIRE_EQUAL(*(*pvdH)[
i * 3 + 0], (*vdH)[(
i * 10) + 1]);
111 BOOST_REQUIRE_EQUAL(*(*pvdH)[
i * 3 + 1], (*vdH)[(
i * 10) + 5]);
112 BOOST_REQUIRE_EQUAL(*(*pvdH)[
i * 3 + 2], (*vdH)[(
i * 10) + 9]);
114 BOOST_REQUIRE_EQUAL(*(pwpH->vectorPtrDouble())[
i * 3 + 0],
115 *(*vpdH)[
i * 3 + 0]);
116 BOOST_REQUIRE_EQUAL(*(pwpH->vectorPtrDouble())[
i * 3 + 1],
117 *(*vpdH)[
i * 3 + 1]);
118 BOOST_REQUIRE_EQUAL(*(pwpH->vectorPtrDouble())[
i * 3 + 2],
119 *(*vpdH)[
i * 3 + 2]);
120 #ifndef ART_NO_MIX_PTRVECTOR 121 BOOST_REQUIRE_EQUAL(*(pwpH->ptrVectorDouble())[
i * 3 + 0],
122 *(*pvdH)[
i * 3 + 0]);
123 BOOST_REQUIRE_EQUAL(*(pwpH->ptrVectorDouble())[
i * 3 + 1],
124 *(*pvdH)[
i * 3 + 1]);
125 BOOST_REQUIRE_EQUAL(*(pwpH->ptrVectorDouble())[
i * 3 + 2],
126 *(*pvdH)[
i * 3 + 2]);
135 auto it = mv->begin();
139 for (
size_t j = 0; j < 5; ++j, ++it) {
141 1 + j * 2 + delta + 10 * (
i + nSecondaries_ * (
eventCounter_ - 1));
142 BOOST_REQUIRE_EQUAL(it->first, static_cast<cet::map_vector_key>(index));
143 size_t answer = j + 1 + 5 *
i + (
eventCounter_ - 1) * 5 * nSecondaries_;
144 BOOST_REQUIRE_EQUAL(it->second, answer);
156 auto it = mvvp->begin();
158 size_t index_base = 0;
160 std::cerr <<
"delta = " << delta <<
"\n";
161 index_base = delta + 1 + 10 * (
i + nSecondaries_ * (
eventCounter_ - 1));
162 size_t answer_base = (
eventCounter_ - 1) * 5 * nSecondaries_ +
i * 5 + 1;
163 BOOST_REQUIRE_EQUAL((*it)->first,
164 static_cast<cet::map_vector_key>(index_base + 6));
165 BOOST_REQUIRE_EQUAL((*it)->second, answer_base + 3);
167 BOOST_REQUIRE_EQUAL((*it)->first,
168 static_cast<cet::map_vector_key>(index_base + 0));
169 BOOST_REQUIRE_EQUAL((*it)->second, answer_base + 0);
171 BOOST_REQUIRE_EQUAL((*it)->first,
172 static_cast<cet::map_vector_key>(index_base + 2));
173 BOOST_REQUIRE_EQUAL((*it)->second, answer_base + 1);
175 BOOST_REQUIRE_EQUAL((*it)->first,
176 static_cast<cet::map_vector_key>(index_base + 8));
177 BOOST_REQUIRE_EQUAL((*it)->second, answer_base + 4);
179 BOOST_REQUIRE_EQUAL((*it)->first,
180 static_cast<cet::map_vector_key>(index_base + 4));
181 BOOST_REQUIRE_EQUAL((*it)->second, answer_base + 2);
188 BOOST_REQUIRE_EQUAL((*bsH),
"BlahBlahBlah");
193 BOOST_REQUIRE_EQUAL((*eidsH)[
i].
event() + ((*eidsH)[
i].subRun() * 100) +
194 (((*eidsH)[
i].
run() - 1) * 500),
std::pair< key_type, mapped_type > value_type
MixAnalyzer(fhicl::ParameterSet const &p)
EDAnalyzer(fhicl::ParameterSet const &pset)
bool getByLabel(std::string const &label, std::string const &instance, Handle< PROD > &result) const
#define DEFINE_ART_MODULE(klass)
void analyze(art::Event const &e) override
std::string mixFilterLabel_