CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/SimMuon/GEMDigitizer/src/GEMCSCPadDigiProducer.h

Go to the documentation of this file.
00001 #ifndef GEMCSCPadDigiProducer_h
00002 #define GEMCSCPadDigiProducer_h
00003 
00004 #include "FWCore/Framework/interface/EDProducer.h"
00005 #include "FWCore/Framework/interface/Event.h"
00006 #include "FWCore/Framework/interface/EventSetup.h"
00007 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00008 #include "FWCore/Utilities/interface/InputTag.h"
00009 
00010 #include "DataFormats/GEMDigi/interface/GEMDigiCollection.h"
00011 #include "DataFormats/GEMDigi/interface/GEMCSCPadDigiCollection.h"
00012 
00013 class GEMGeometry;
00014 
00017 
00018 class GEMCSCPadDigiProducer : public edm::EDProducer
00019 {
00020 public:
00021 
00022   //typedef GEMDigitizer::StripDigiSimLinks StripDigiSimLinks;
00023 
00024   explicit GEMCSCPadDigiProducer(const edm::ParameterSet& ps);
00025   virtual ~GEMCSCPadDigiProducer();
00026 
00027   virtual void beginRun( edm::Run&, const edm::EventSetup& );
00028   virtual void endRun( edm::Run&, const edm::EventSetup& ) {}
00029 
00031   virtual void produce(edm::Event& e, const edm::EventSetup& c);
00032 
00033 private:
00034   
00035   void buildPads(const GEMDigiCollection &digis, GEMCSCPadDigiCollection &out_pads, GEMCSCPadDigiCollection &out_co_pads);
00036 
00038   edm::InputTag input_;
00039 
00042   int maxDeltaBX_;
00043 
00044   const GEMGeometry * geometry_;
00045 };
00046 
00047 #endif
00048