EvFFEDSelector

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
#ifndef EVENTFILTER_UTILITIES_PLUGINS_EVFFEDSELECTOR
#define EVENTFILTER_UTILITIES_PLUGINS_EVFFEDSELECTOR

#include <vector>

#include <FWCore/Framework/interface/global/EDProducer.h>
#include <FWCore/Framework/interface/Event.h>
#include <FWCore/ParameterSet/interface/ParameterSet.h>
#include <FWCore/Utilities/interface/InputTag.h>
#include <DataFormats/FEDRawData/interface/FEDRawDataCollection.h>

namespace edm {
  class ConfigurationDescriptions;
}

namespace evf {

  class EvFFEDSelector : public edm::global::EDProducer<> {
  public:
    explicit EvFFEDSelector(edm::ParameterSet const &);
    ~EvFFEDSelector() override {}

    void produce(edm::StreamID, edm::Event &, edm::EventSetup const &) const final;
    static void fillDescriptions(edm::ConfigurationDescriptions &descriptions);

  private:
    edm::EDGetTokenT<FEDRawDataCollection> token_;
    std::vector<unsigned int> fedlist_;
  };

}  // namespace evf

#endif