CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DataMixingEMWorker.h
Go to the documentation of this file.
1 #ifndef DataMixingEMWorker_h
2 #define SimDataMixingEMWorker_h
3 
20 
28 
29 #include <map>
30 #include <vector>
31 #include <string>
32 
33 
34 namespace edm
35 {
37  {
38  public:
39 
41 
43  explicit DataMixingEMWorker(const edm::ParameterSet& ps);
44 
46  virtual ~DataMixingEMWorker();
47 
48  void putEM(edm::Event &e) ;
49  void addEMSignals(const edm::Event &e);
50  void addEMPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId);
51 
52 
53  private:
54  // data specifiers
55 
56  edm::InputTag EBProducerSig_; // primary? name given to collection of EB calib rechits
57  edm::InputTag EEProducerSig_; // primary? name given to collection of EE calib rechits
58  edm::InputTag ESProducerSig_; // primary? name given to collection of ES calib rechits
59 
60  edm::InputTag EBrechitCollectionSig_; // secondary name given to collection of EB calib rechits
61  edm::InputTag EErechitCollectionSig_; // secondary name given to collection of EE calib rechits
62  edm::InputTag ESrechitCollectionSig_; // secondary name given to collection of ES calib rechits
63 
64  edm::InputTag EBPileRecHitInputTag_; // full InputTag for pileup EB calib rechits
65  edm::InputTag EEPileRecHitInputTag_; // full InputTag for pileup EE calib rechits
66  edm::InputTag ESPileRecHitInputTag_; // full InputTag for pileup ES calib rechits
67 
68 
69 
70 
71  std::string EBRecHitCollectionDM_; // secondary name to be given to EB collection of hits
72  std::string EERecHitCollectionDM_; // secondary name to be given to EE collection of hits
73  std::string ESRecHitCollectionDM_; // secondary name to be given to ES collection of hits
74 
75  typedef std::multimap<DetId, EcalRecHit> EBRecHitMap;
76  typedef std::multimap<DetId, EcalRecHit> EERecHitMap;
77  typedef std::multimap<DetId, EcalRecHit> ESRecHitMap;
78 
82 
83 
84  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
85 
87 
88  };
89 }//edm
90 
91 #endif
void putEM(edm::Event &e)
void addEMSignals(const edm::Event &e)
std::multimap< DetId, EcalRecHit > ESRecHitMap
std::multimap< DetId, EcalRecHit > EERecHitMap
edm::InputTag EBrechitCollectionSig_
edm::InputTag ESPileRecHitInputTag_
edm::InputTag EErechitCollectionSig_
void addEMPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId)
std::multimap< DetId, EcalRecHit > EBRecHitMap
edm::InputTag ESrechitCollectionSig_
edm::InputTag EBPileRecHitInputTag_
edm::InputTag EEPileRecHitInputTag_