File indexing completed on 2024-04-06 12:11:06
0001 #ifndef EVENTFILTER_UTILITIES_PLUGINS_EVFFEDSELECTOR
0002 #define EVENTFILTER_UTILITIES_PLUGINS_EVFFEDSELECTOR
0003
0004 #include <vector>
0005
0006 #include <FWCore/Framework/interface/global/EDProducer.h>
0007 #include <FWCore/Framework/interface/Event.h>
0008 #include <FWCore/ParameterSet/interface/ParameterSet.h>
0009 #include <FWCore/Utilities/interface/InputTag.h>
0010 #include <DataFormats/FEDRawData/interface/FEDRawDataCollection.h>
0011
0012 namespace edm {
0013 class ConfigurationDescriptions;
0014 }
0015
0016 namespace evf {
0017
0018 class EvFFEDSelector : public edm::global::EDProducer<> {
0019 public:
0020 explicit EvFFEDSelector(edm::ParameterSet const &);
0021 ~EvFFEDSelector() override {}
0022
0023 void produce(edm::StreamID, edm::Event &, edm::EventSetup const &) const final;
0024 static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);
0025
0026 private:
0027 edm::EDGetTokenT<FEDRawDataCollection> token_;
0028 std::vector<unsigned int> fedlist_;
0029 };
0030
0031 }
0032
0033 #endif