58 produces<AssocOneToOne>();
59 produces<AssocOneToOne>(
"twoArg");
60 produces<AssocOneToValue>();
61 produces<AssocOneToValue>(
"handleArg");
62 produces<AssocOneToMany>();
63 produces<AssocOneToManyWithQuality>();
64 produces<AssocOneToOneView>();
65 produces<AssocOneToOneView>(
"twoArg");
80 auto assoc1 = std::make_unique<AssocOneToOne>(&
event.productGetter());
81 assoc1->insert(
edm::Ref<std::vector<int> >(inputCollection1, 0),
edm::Ref<std::vector<int> >(inputCollection2, 1));
82 assoc1->insert(
edm::Ref<std::vector<int> >(inputCollection1, 2),
edm::Ref<std::vector<int> >(inputCollection2, 3));
85 auto assoc2 = std::make_unique<AssocOneToOne>(inputCollection1, inputCollection2);
86 assoc2->insert(
edm::Ref<std::vector<int> >(inputCollection1, 0),
edm::Ref<std::vector<int> >(inputCollection2, 1));
87 assoc2->insert(
edm::Ref<std::vector<int> >(inputCollection1, 2),
edm::Ref<std::vector<int> >(inputCollection2, 4));
90 auto assoc3 = std::make_unique<AssocOneToValue>(&
event.productGetter());
91 assoc3->insert(
edm::Ref<std::vector<int> >(inputCollection1, 0), 11.0);
92 assoc3->insert(
edm::Ref<std::vector<int> >(inputCollection1, 2), 12.0);
95 auto assoc4 = std::make_unique<AssocOneToValue>(inputCollection1);
96 assoc4->insert(
edm::Ref<std::vector<int> >(inputCollection1, 0), 21.0);
97 assoc4->insert(
edm::Ref<std::vector<int> >(inputCollection1, 2), 22.0);
98 event.put(
std::move(assoc4),
"handleArg");
100 auto assoc5 = std::make_unique<AssocOneToMany>(&
event.productGetter());
101 assoc5->insert(
edm::Ref<std::vector<int> >(inputCollection1, 0),
edm::Ref<std::vector<int> >(inputCollection2, 1));
102 assoc5->insert(
edm::Ref<std::vector<int> >(inputCollection1, 2),
edm::Ref<std::vector<int> >(inputCollection2, 4));
103 assoc5->insert(
edm::Ref<std::vector<int> >(inputCollection1, 2),
edm::Ref<std::vector<int> >(inputCollection2, 6));
106 auto assoc6 = std::make_unique<AssocOneToManyWithQuality>(&
event.productGetter());
107 assoc6->insert(
edm::Ref<std::vector<int> >(inputCollection1, 0),
109 assoc6->insert(
edm::Ref<std::vector<int> >(inputCollection1, 2),
111 assoc6->insert(
edm::Ref<std::vector<int> >(inputCollection1, 2),
119 auto assoc7 = std::make_unique<AssocOneToOneView>(&
event.productGetter());
120 assoc7->insert(inputView1.
refAt(0), inputView2->refAt(3));
121 assoc7->insert(inputView1.
refAt(2), inputView2->refAt(4));
127 assoc8->insert(inputView1.
refAt(0), inputView2->refAt(5));
128 assoc8->insert(inputView1.
refAt(2), inputView2->refAt(6));
edm::AssociationMap< edm::OneToMany< std::vector< int >, std::vector< int > > > AssocOneToMany
edm::AssociationMap< edm::OneToValue< std::vector< int >, double > > AssocOneToValue
void produce(edm::Event &, edm::EventSetup const &) override
RefToBase< value_type > refAt(size_type i) const
~AssociationMapProducer() override
edm::AssociationMap< edm::OneToManyWithQuality< std::vector< int >, std::vector< int >, double > > AssocOneToManyWithQuality
Tag::data_type data_type
insert data type
edm::EDGetTokenT< edm::View< int > > inputToken1V_
edm::AssociationMap< edm::OneToOne< std::vector< int >, std::vector< int > > > AssocOneToOne
edm::AssociationMap< edm::OneToOne< edm::View< int >, edm::View< int > > > AssocOneToOneView
edm::EDGetTokenT< std::vector< int > > inputToken2_
edm::EDGetTokenT< edm::View< int > > inputToken2V_
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< std::vector< int > > inputToken1_
RefToBaseProd< T > makeRefToBaseProdFrom(RefToBase< T > const &iRef, Event const &iEvent)
AssociationMapProducer(edm::ParameterSet const &)