Go to the documentation of this file.
39 typedef std::vector<edm::EDGetTokenT<FEDRawDataCollection>>::const_iterator
tok_iterator_t;
59 produces<FEDRawDataCollection>();
65 bool alreadyACollectionFilled =
false;
69 if (
e.getByToken(*inputTok,
input)) {
70 if (
input.isValid()) {
71 if (alreadyACollectionFilled)
73 <<
"Two input collections are present." << std::endl
74 <<
"Please make sure that the input dataset has only one FEDRawDataCollector collection filled";
78 alreadyACollectionFilled =
true;
83 throw cms::Exception(
"BadInput") <<
"The filled collection has changed!";
86 e.put(std::make_unique<FEDRawDataCollection>(*
input.product()));
95 desc.
add<std::vector<edm::InputTag>>(
97 {{
"rawDataCollector",
"",
"@skipCurrentProcess"}, {
"rawDataRepacker"}, {
"rawDataReducedFormat"}});
100 descriptions.
add(
"rawDataMapperByLabel", desc);
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static const std::string input
std::vector< edm::EDGetTokenT< FEDRawDataCollection > > inputTokens_
edm::InputTag filledCollectionName_
~RawDataMapperByLabel() override
Destructor.
void produce(edm::Event &e, const edm::EventSetup &c) override
static void fillDescriptions(edm::ConfigurationDescriptions &)
RawDataMapperByLabel(const edm::ParameterSet &pset)
Constructor.
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< edm::EDGetTokenT< FEDRawDataCollection > >::const_iterator tok_iterator_t
edm::InputTag mainCollectionTag_
std::vector< edm::InputTag >::const_iterator tag_iterator_t
std::vector< edm::InputTag > inputTags_