File indexing completed on 2025-01-08 03:36:09
0001 #ifndef RawDataCollectorByLabel_H
0002 #define RawDataCollectorByLabel_H
0003
0004
0005
0006
0007
0008 #include "FWCore/Framework/interface/MakerMacros.h"
0009 #include "FWCore/Framework/interface/stream/EDProducer.h"
0010 #include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
0011 #include "DataFormats/Common/interface/Handle.h"
0012 #include "FWCore/Utilities/interface/InputTag.h"
0013
0014 class RawDataCollectorByLabel : public edm::stream::EDProducer<> {
0015 public:
0016
0017 RawDataCollectorByLabel(const edm::ParameterSet& pset);
0018
0019
0020 ~RawDataCollectorByLabel() override = default;
0021
0022 void produce(edm::Event& e, const edm::EventSetup& c) override;
0023
0024 static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0025
0026 private:
0027 typedef std::vector<edm::InputTag>::const_iterator tag_iterator_t;
0028 typedef std::vector<edm::EDGetTokenT<FEDRawDataCollection> >::const_iterator tok_iterator_t;
0029
0030 std::vector<edm::InputTag> inputTags_;
0031 std::vector<edm::EDGetTokenT<FEDRawDataCollection> > inputTokens_;
0032 int verbose_;
0033 };
0034
0035 #endif