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 
21 
29 
30 #include <map>
31 #include <vector>
32 #include <string>
33 
34 
35 namespace edm
36 {
38  {
39  public:
40 
42 
44  explicit DataMixingEMWorker(const edm::ParameterSet& ps);
45 
47  virtual ~DataMixingEMWorker();
48 
49  void putEM(edm::Event &e) ;
50  void addEMSignals(const edm::Event &e);
51  void addEMPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId);
52 
53 
54  private:
55  // data specifiers
56 
57  edm::InputTag EBProducerSig_; // primary? name given to collection of EB calib rechits
58  edm::InputTag EEProducerSig_; // primary? name given to collection of EE calib rechits
59  edm::InputTag ESProducerSig_; // primary? name given to collection of ES calib rechits
60 
61  edm::InputTag EBrechitCollectionSig_; // secondary name given to collection of EB calib rechits
62  edm::InputTag EErechitCollectionSig_; // secondary name given to collection of EE calib rechits
63  edm::InputTag ESrechitCollectionSig_; // secondary name given to collection of ES calib rechits
64 
65  edm::InputTag EBPileRecHitInputTag_; // full InputTag for pileup EB calib rechits
66  edm::InputTag EEPileRecHitInputTag_; // full InputTag for pileup EE calib rechits
67  edm::InputTag ESPileRecHitInputTag_; // full InputTag for pileup ES calib rechits
68 
69 
70 
71 
72  std::string EBRecHitCollectionDM_; // secondary name to be given to EB collection of hits
73  std::string EERecHitCollectionDM_; // secondary name to be given to EE collection of hits
74  std::string ESRecHitCollectionDM_; // secondary name to be given to ES collection of hits
75 
76  typedef std::multimap<DetId, EcalRecHit> EBRecHitMap;
77  typedef std::multimap<DetId, EcalRecHit> EERecHitMap;
78  typedef std::multimap<DetId, EcalRecHit> ESRecHitMap;
79 
83 
84 
85  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
86 
88  std::string label_;
89 
90  };
91 }//edm
92 
93 #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_