2 #include "DataFormats/TestObjects/interface/OtherThing.h" 3 #include "DataFormats/TestObjects/interface/OtherThingCollection.h" 30 : token1_(consumes<OtherThingCollection>(
pset.getUntrackedParameter<
edm::
InputTag>(
"first"))),
31 token2_(consumes<OtherThingCollection>(
pset.getUntrackedParameter<
edm::
InputTag>(
"second"))) {}
37 assert(t1_.size() == t2_.size());
40 auto iter2 = t2_.begin();
41 for (
auto const&
o1 : t1_) {
42 if (
o1.ref != iter2->ref) {
44 <<
"edm::Refs are not equal" <<
o1.ref.id() <<
" " << iter2->ref.id();
51 auto iter2 = t2_.begin();
52 for (
auto const&
o1 : t1_) {
53 if (
o1.ptr != iter2->ptr) {
55 <<
"edm::Ptrs are not equal" <<
o1.ptr.id() <<
" " << iter2->ptr.id();
65 ->setComment(
"Where to get the first OtherThingCollection");
67 ->setComment(
"Where to get the second OtherThingCollection");
68 descriptions.
add(
"otherThingRefComparer",
desc);
edm::EDGetTokenT< OtherThingCollection > token1_
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< OtherThingCollection > token2_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
OtherThingRefComparer(edm::ParameterSet const &pset)
void analyze(edm::Event const &e, edm::EventSetup const &c) override