32 produces<HGCalDigiCollection>(
"EE");
33 produces<HGCalDigiCollection>(
"HEfront");
34 produces<HGCalDigiCollection>(
"HEback");
46 auto out_ee = std::make_unique<HGCalDigiCollection>();
48 for(
const auto& df_ee : *h_ee){
50 tmp.setData(df_ee.data());
51 out_ee->push_back(
tmp);
56 auto out_fh = std::make_unique<HGCalDigiCollection>();
58 for(
const auto& df_fh : *h_fh){
60 tmp.setData(df_fh.data());
61 out_fh->emplace_back(
tmp);
66 auto out_bh = std::make_unique<HGCalDigiCollection>();
68 for(
const auto& df_bh : *h_bh){
70 tmp.setData(df_bh.data());
71 out_bh->emplace_back(
tmp);
83 descriptions.
add(
"HGCDigiConverter",desc);
edm::EDGetTokenT< HGCBHDigiCollection > tok_bh_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< HGCHEDigiCollection > tok_fh_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< std::vector< double > > tmp
HGCDigiConverter(const edm::ParameterSet &)
edm::EDGetTokenT< HGCEEDigiCollection > tok_ee_
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)