CMS 3D CMS Logo

DataMixingEMWorker.h

Go to the documentation of this file.
00001 #ifndef DataMixingEMWorker_h
00002 #define SimDataMixingEMWorker_h
00003 
00017 #include "FWCore/Framework/interface/Event.h"
00018 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00019 #include "FWCore/Framework/interface/Selector.h"
00020 
00021 #include "DataFormats/Provenance/interface/ProductID.h"
00022 #include "DataFormats/Common/interface/Handle.h"
00023 #include "DataFormats/EcalRecHit/interface/EcalRecHit.h"
00024 #include "DataFormats/EcalDetId/interface/EBDetId.h"
00025 #include "DataFormats/EcalDetId/interface/EEDetId.h"
00026 #include "DataFormats/EcalDetId/interface/ESDetId.h"
00027 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
00028 
00029 #include <map>
00030 #include <vector>
00031 #include <string>
00032 
00033 
00034 namespace edm
00035 {
00036   class DataMixingEMWorker
00037     {
00038     public:
00039 
00040       DataMixingEMWorker();
00041 
00043       explicit DataMixingEMWorker(const edm::ParameterSet& ps);
00044 
00046       virtual ~DataMixingEMWorker();
00047 
00048       void putEM(edm::Event &e) ;
00049       void addEMSignals(const edm::Event &e); 
00050       void addEMPileups(const int bcr, edm::Event*,unsigned int EventId);
00051 
00052 
00053     private:
00054       // data specifiers
00055 
00056       edm::InputTag EBProducer_; // primary? name given to collection of EB calib rechits
00057       edm::InputTag EEProducer_; // primary? name given to collection of EE calib rechits
00058       edm::InputTag ESProducer_; // primary? name given to collection of ES calib rechits
00059 
00060       edm::InputTag EBrechitCollection_; // secondary name given to collection of EB calib rechits
00061       edm::InputTag EErechitCollection_; // secondary name given to collection of EE calib rechits
00062       edm::InputTag ESrechitCollection_; // secondary name given to collection of ES calib rechits
00063       std::string EBRecHitCollectionDM_; // secondary name to be given to EB collection of hits
00064       std::string EERecHitCollectionDM_; // secondary name to be given to EE collection of hits
00065       std::string ESRecHitCollectionDM_; // secondary name to be given to ES collection of hits
00066 
00067       typedef std::multimap<DetId, EcalRecHit> EBRecHitMap;
00068       typedef std::multimap<DetId, EcalRecHit> EERecHitMap;
00069       typedef std::multimap<DetId, EcalRecHit> ESRecHitMap;
00070 
00071       EBRecHitMap EBRecHitStorage_;
00072       EERecHitMap EERecHitStorage_;
00073       ESRecHitMap ESRecHitStorage_;
00074 
00075 
00076       //      unsigned int eventId_; //=0 for signal, from 1-n for pileup events
00077 
00078       Selector * sel_;
00079       std::string label_;
00080 
00081     };
00082 }//edm
00083 
00084 #endif

Generated on Tue Jun 9 17:47:14 2009 for CMSSW by  doxygen 1.5.4