Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:56:24

0001 #include "FWCore/Utilities/interface/InputTag.h"
0002 #include "FWCore/Framework/interface/global/EDFilter.h"
0003 #include "CondFormats/DataRecord/interface/SiStripFedCablingRcd.h"
0004 #include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
0005 
0006 class SiStripFedCabling;
0007 
0008 class LaserAlignmentEventFilter : public edm::global::EDFilter<> {
0009 public:
0010   explicit LaserAlignmentEventFilter(const edm::ParameterSet &);
0011   ~LaserAlignmentEventFilter() override;
0012 
0013 private:
0014   bool filter(edm::StreamID, edm::Event &, edm::EventSetup const &) const override;
0015 
0016   // ES token
0017   edm::ESGetToken<SiStripFedCabling, SiStripFedCablingRcd> cablingToken_;
0018 
0019   // FED RAW data input collection
0020   const edm::EDGetTokenT<FEDRawDataCollection> FED_collection_token;
0021 
0022   // filter settings
0023   const std::vector<uint16_t> las_fed_ids;     // list of FEDs used by LAS
0024   const std::vector<uint32_t> las_signal_ids;  // list of DetIds to probe for signal
0025 
0026   const uint16_t single_channel_thresh;  // signal threshold for a single channel
0027   const uint16_t channel_count_thresh;   // nr. of channels that have to contain signal for LAS event
0028 };