40 typedef std::vector<edm::EDGetTokenT<FEDRawDataCollection> >::const_iterator
tok_iterator_t;
54 : inputTags_(pset.getParameter<
std::vector<
edm::
InputTag>>(
"rawCollectionList")),
55 mainCollectionTag_(pset.getParameter<
edm::
InputTag>(
"mainCollection")),
65 produces<FEDRawDataCollection>();
77 bool alreadyACollectionFilled=
false;
83 if(alreadyACollectionFilled)
throw cms::Exception(
"BadInput") <<
"Two input collections are present." << std::endl
84 <<
"Please make sure that the input dataset has only one FEDRawDataCollector collection filled";
88 alreadyACollectionFilled =
true;
105 desc.
add<std::vector<edm::InputTag>>(
"rawCollectionList", {{
"rawDataCollector",
"",
"@skipCurrentProcess"}, {
"rawDataRepacker"}, {
"rawDataReducedFormat"}});
108 descriptions.
add(
"rawDataMapperByLabel", desc);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::InputTag filledCollectionName_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::vector< edm::EDGetTokenT< FEDRawDataCollection > > inputTokens_
static void fillDescriptions(edm::ConfigurationDescriptions &)
void produce(edm::Event &e, const edm::EventSetup &c) override
~RawDataMapperByLabel() override
Destructor.
static std::string const input
#define DEFINE_FWK_MODULE(type)
RawDataMapperByLabel(const edm::ParameterSet &pset)
Constructor.
std::vector< edm::EDGetTokenT< FEDRawDataCollection > >::const_iterator tok_iterator_t
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< edm::InputTag >::const_iterator tag_iterator_t
T const * product() const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::InputTag mainCollectionTag_
std::vector< edm::InputTag > inputTags_