AssnsWrongPut_module.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // Class: AssnsWrongPut
3 // Module Type: producer
4 // File: AssnsWrongPut_module.cc
5 ////////////////////////////////////////////////////////////////////////
6 
11 
12 namespace art {
13  namespace test {
14  class AssnsWrongPut;
15  }
16 } // namespace art
17 
19 public:
20  struct Config {
21  };
23  explicit AssnsWrongPut(Parameters const&);
24 
25 private:
26  void produce(art::Event&) override;
27 };
28 
29 using std::size_t;
30 using std::string;
31 
33 {
34  produces<Assns<size_t, string>>();
35 }
36 
37 void
39 {
40  // Put in an Assns with reversed template arguments
41  e.put(std::make_unique<Assns<string, size_t>>());
42 }
43 
static const double ps
Definition: Units.h:103
std::string string
Definition: nybbler.cc:12
Definition: test.py:1
const double e
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:68
AssnsWrongPut(Parameters const &)
void produce(art::Event &) override
ProductID put(std::unique_ptr< PROD > &&edp, FullSemantic< Level::Run > const semantic)
Definition: DataViewImpl.h:692