CMS 3D CMS Logo

DataMixingEMWorker.h
Go to the documentation of this file.
1 #ifndef SimDataMixingEMWorker_h
2 #define SimDataMixingEMWorker_h
3 
21 
29 
30 #include <map>
31 #include <string>
32 #include <vector>
33 
34 namespace edm {
35  class ModuleCallingContext;
36 
38  public:
40 
43 
45  virtual ~DataMixingEMWorker();
46 
47  void putEM(edm::Event &e);
48  void addEMSignals(const edm::Event &e);
49  void addEMPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *);
50 
51  private:
52  // data specifiers
53 
54  edm::InputTag EBProducerSig_; // primary? name given to collection of EB calib rechits
55  edm::InputTag EEProducerSig_; // primary? name given to collection of EE calib rechits
56  edm::InputTag ESProducerSig_; // primary? name given to collection of ES calib rechits
57 
58  edm::InputTag EBrechitCollectionSig_; // secondary name given to collection of
59  // EB calib rechits
60  edm::InputTag EErechitCollectionSig_; // secondary name given to collection of
61  // EE calib rechits
62  edm::InputTag ESrechitCollectionSig_; // secondary name given to collection of
63  // 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  edm::EDGetTokenT<EBRecHitCollection> EBRecHitToken_; // Token to retrieve information
70  edm::EDGetTokenT<EERecHitCollection> EERecHitToken_; // Token to retrieve information
71  edm::EDGetTokenT<ESRecHitCollection> ESRecHitToken_; // Token to retrieve information
72 
73  edm::EDGetTokenT<EBRecHitCollection> EBPileRecHitToken_; // Token to retrieve information
74  edm::EDGetTokenT<EERecHitCollection> EEPileRecHitToken_; // Token to retrieve information
75  edm::EDGetTokenT<ESRecHitCollection> ESPileRecHitToken_; // Token to retrieve information
76 
77  std::string EBRecHitCollectionDM_; // secondary name to be given to EB
78  // collection of hits
79  std::string EERecHitCollectionDM_; // secondary name to be given to EE
80  // collection of hits
81  std::string ESRecHitCollectionDM_; // secondary name to be given to ES
82  // collection of hits
83 
84  typedef std::multimap<DetId, EcalRecHit> EBRecHitMap;
85  typedef std::multimap<DetId, EcalRecHit> EERecHitMap;
86  typedef std::multimap<DetId, EcalRecHit> ESRecHitMap;
87 
91 
92  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
93 
95  };
96 } // namespace edm
97 
98 #endif // SimDataMixingEMWorker_h
void putEM(edm::Event &e)
void addEMSignals(const edm::Event &e)
edm::EDGetTokenT< EERecHitCollection > EEPileRecHitToken_
std::multimap< DetId, EcalRecHit > ESRecHitMap
std::multimap< DetId, EcalRecHit > EERecHitMap
edm::InputTag EBrechitCollectionSig_
edm::InputTag ESPileRecHitInputTag_
edm::EDGetTokenT< EERecHitCollection > EERecHitToken_
edm::InputTag EErechitCollectionSig_
edm::EDGetTokenT< EBRecHitCollection > EBRecHitToken_
edm::EDGetTokenT< ESRecHitCollection > ESPileRecHitToken_
std::multimap< DetId, EcalRecHit > EBRecHitMap
edm::EDGetTokenT< ESRecHitCollection > ESRecHitToken_
edm::InputTag ESrechitCollectionSig_
void addEMPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
edm::InputTag EBPileRecHitInputTag_
edm::InputTag EEPileRecHitInputTag_
HLT enums.
std::tuple< uint32_t, uint32_t, uint32_t > EventId
Event index (L1A/BX/orbit)
Definition: SlinkTypes.h:14
edm::EDGetTokenT< EBRecHitCollection > EBPileRecHitToken_