Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-07-28 22:45:51

0001 #ifndef MaskedRctInputDigiProducer_h
0002 #define MaskedRctInputDigiProducer_h
0003 
0004 // -*- C++ -*-
0005 //
0006 // Package:    MaskedRctInputDigiProducer
0007 // Class:      MaskedRctInputDigiProducer
0008 //
0009 /**\class MaskedRctInputDigiProducer MaskedRctInputDigiProducer.cc
0010 L1Trigger/MaskedRctInputDigiProducer/src/MaskedRctInputDigiProducer.cc
0011 
0012  Description: Takes collections of ECAL and HCAL digis, masks some towers
0013 according to a mask in a text file, and creates new collections for use by the
0014 RCT.
0015 
0016  Implementation:
0017      <Notes on implementation>
0018 */
0019 //
0020 // Original Author:  pts/65
0021 //         Created:  Fri Nov 23 12:08:31 CET 2007
0022 //
0023 //
0024 
0025 // system include files
0026 #include <memory>
0027 
0028 // user include files
0029 #include "FWCore/Framework/interface/global/EDProducer.h"
0030 #include "FWCore/Framework/interface/ESHandle.h"
0031 #include "FWCore/Framework/interface/Event.h"
0032 #include "FWCore/Framework/interface/EventSetup.h"
0033 #include "FWCore/Framework/interface/Frameworkfwd.h"
0034 #include "FWCore/Framework/interface/MakerMacros.h"
0035 
0036 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0037 
0038 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
0039 #include "DataFormats/HcalDigi/interface/HcalDigiCollections.h"
0040 
0041 //
0042 // class declaration
0043 //
0044 
0045 class MaskedRctInputDigiProducer : public edm::global::EDProducer<> {
0046 public:
0047   explicit MaskedRctInputDigiProducer(const edm::ParameterSet &);
0048   ~MaskedRctInputDigiProducer() override;
0049 
0050 private:
0051   void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override;
0052 
0053   // ----------member data ---------------------------
0054 
0055   bool useEcal_;
0056   bool useHcal_;
0057   edm::EDGetTokenT<EcalTrigPrimDigiCollection> ecalDigisToken_;
0058   edm::EDGetTokenT<HcalTrigPrimDigiCollection> hcalDigisToken_;
0059   edm::FileInPath maskFile_;
0060 };
0061 #endif