00001 #ifndef SiPixelDigitizer_h 00002 #define SiPixelDigitizer_h 00003 00016 #include "FWCore/Framework/interface/EDProducer.h" 00017 #include "FWCore/Framework/interface/Event.h" 00018 #include "DataFormats/Common/interface/Handle.h" 00019 #include "FWCore/Framework/interface/EventSetup.h" 00020 00021 #include "DataFormats/Common/interface/EDProduct.h" 00022 #include "SimTracker/SiPixelDigitizer/interface/SiPixelDigitizerAlgorithm.h" 00023 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00024 #include "DataFormats/SiPixelDigi/interface/PixelDigi.h" 00025 #include "DataFormats/SiPixelDigi/interface/PixelDigiCollection.h" 00026 #include "SimDataFormats/TrackerDigiSimLink/interface/PixelDigiSimLink.h" 00027 #include "SimDataFormats/CrossingFrame/interface/MixCollection.h" 00028 //#include "SimDataFormats/TrackerDigiSimLink/interface/PixelDigiSimLinkCollection.h" 00029 00030 namespace CLHEP { 00031 class HepRandomEngine; 00032 } 00033 00034 namespace cms 00035 { 00036 class SiPixelDigitizer : public edm::EDProducer 00037 { 00038 public: 00039 00040 explicit SiPixelDigitizer(const edm::ParameterSet& conf); 00041 00042 virtual ~SiPixelDigitizer(); 00043 00044 virtual void produce(edm::Event& e, const edm::EventSetup& c); 00045 00046 virtual void beginJob() {} 00047 private: 00048 edm::ParameterSet conf_; 00049 bool first; 00050 SiPixelDigitizerAlgorithm* _pixeldigialgo; 00051 typedef std::vector<std::string> vstring; 00052 vstring trackerContainers; 00053 typedef std::map<unsigned int, std::vector<PSimHit>,std::less<unsigned int> > simhit_map; 00054 typedef simhit_map::iterator simhit_map_iterator; 00055 simhit_map SimHitMap; 00056 std::vector<edm::DetSet<PixelDigi> > theDigiVector; 00057 std::vector<edm::DetSet<PixelDigiSimLink> > theDigiLinkVector; 00058 std::string geometryType; 00059 CLHEP::HepRandomEngine* rndEngine; 00060 // std::vector<PixelDigiSimLink> linkcollector; 00061 00062 // infrastructure to reject dead pixels as defined in db (added by F.Blekman) 00063 }; 00064 } 00065 00066 00067 #endif