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 <vector>
32 #include <string>
33 
34 
35 namespace edm
36 {
37  class ModuleCallingContext;
38 
40  {
41  public:
42 
44 
47 
49  virtual ~DataMixingEMWorker();
50 
51  void putEM(edm::Event &e) ;
52  void addEMSignals(const edm::Event &e);
53  void addEMPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId,
54  ModuleCallingContext const*);
55 
56 
57  private:
58  // data specifiers
59 
60  edm::InputTag EBProducerSig_; // primary? name given to collection of EB calib rechits
61  edm::InputTag EEProducerSig_; // primary? name given to collection of EE calib rechits
62  edm::InputTag ESProducerSig_; // primary? name given to collection of ES calib rechits
63 
64  edm::InputTag EBrechitCollectionSig_; // secondary name given to collection of EB calib rechits
65  edm::InputTag EErechitCollectionSig_; // secondary name given to collection of EE calib rechits
66  edm::InputTag ESrechitCollectionSig_; // secondary name given to collection of ES calib rechits
67 
68  edm::InputTag EBPileRecHitInputTag_; // full InputTag for pileup EB calib rechits
69  edm::InputTag EEPileRecHitInputTag_; // full InputTag for pileup EE calib rechits
70  edm::InputTag ESPileRecHitInputTag_; // full InputTag for pileup ES calib rechits
71 
72  edm::EDGetTokenT<EBRecHitCollection> EBRecHitToken_ ; // Token to retrieve information
73  edm::EDGetTokenT<EERecHitCollection> EERecHitToken_ ; // Token to retrieve information
74  edm::EDGetTokenT<ESRecHitCollection> ESRecHitToken_ ; // Token to retrieve information
75 
76  edm::EDGetTokenT<EBRecHitCollection> EBPileRecHitToken_ ; // Token to retrieve information
77  edm::EDGetTokenT<EERecHitCollection> EEPileRecHitToken_ ; // Token to retrieve information
78  edm::EDGetTokenT<ESRecHitCollection> ESPileRecHitToken_ ; // Token to retrieve information
79 
80 
81 
82  std::string EBRecHitCollectionDM_; // secondary name to be given to EB collection of hits
83  std::string EERecHitCollectionDM_; // secondary name to be given to EE collection of hits
84  std::string ESRecHitCollectionDM_; // secondary name to be given to ES collection of hits
85 
86  typedef std::multimap<DetId, EcalRecHit> EBRecHitMap;
87  typedef std::multimap<DetId, EcalRecHit> EERecHitMap;
88  typedef std::multimap<DetId, EcalRecHit> ESRecHitMap;
89 
90  EBRecHitMap EBRecHitStorage_;
91  EERecHitMap EERecHitStorage_;
92  ESRecHitMap ESRecHitStorage_;
93 
94 
95  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
96 
98 
99  };
100 }//edm
101 
102 #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.
edm::EDGetTokenT< EBRecHitCollection > EBPileRecHitToken_