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