10 #include "DataFormats/TestObjects/interface/ToyProducts.h" 36 std::vector<std::unique_ptr<int>>
foo;
37 foo.emplace_back(std::make_unique<int>(1));
40 std::vector<std::unique_ptr<IntProduct>> foo2;
41 foo2.emplace_back(std::make_unique<IntProduct>(1));
62 desc.add<
bool>(
"testVecUniqInt",
true);
70 assert(vecUniqInt.size() == 1);
71 for (
const auto& elem : vecUniqInt) {
73 assert(elem.get() !=
nullptr);
78 <<
"I am now getting a valid pointer, please update the test";
84 assert(vecUniqIntProd.size() == 1);
85 for (
const auto& elem : vecUniqIntProd) {
86 assert(elem.get() !=
nullptr);
T getParameter(std::string const &) const
ExistingDictionaryTestAnalyzer(edm::ParameterSet const &iConfig)
const edm::EDGetTokenT< std::vector< std::unique_ptr< int > > > vecUniqIntToken_
void produce(edm::StreamID id, edm::Event &iEvent, edm::EventSetup const &) const override
const edm::EDPutTokenT< int > intToken_
const edm::EDPutTokenT< std::vector< std::unique_ptr< int > > > vecUniqIntToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ExistingDictionaryTestProducer(edm::ParameterSet const &)
Log< level::Error, false > LogError
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
void addDefault(ParameterSetDescription const &psetDescription)
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::EDGetTokenT< std::vector< std::unique_ptr< IntProduct > > > vecUniqIntProdToken_
void analyze(edm::StreamID id, edm::Event const &iEvent, edm::EventSetup const &) const override
const edm::EDPutTokenT< std::vector< std::unique_ptr< IntProduct > > > vecUniqIntProdToken_
const edm::EDGetTokenT< int > intToken_
const bool testVecUniqInt_