CMS 3D CMS Logo

DataMixingHcalWorker.h
Go to the documentation of this file.
1 #ifndef SimDataMixingHcalWorker_h
2 #define SimDataMixingHcalWorker_h
3 
21 
25 
26 #include <map>
27 #include <string>
28 #include <vector>
29 
30 namespace edm {
31  class ModuleCallingContext;
32 
34  public:
36 
39 
41  virtual ~DataMixingHcalWorker();
42 
43  void putHcal(edm::Event &e);
44  void addHcalSignals(const edm::Event &e);
45  void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *);
46 
47  private:
48  // data specifiers
49 
50  // Hcal
51  edm::InputTag HBHErechitCollectionSig_; // secondary name given to collection
52  // of EB rechits
53  edm::InputTag HOrechitCollectionSig_; // secondary name given to collection of
54  // EB rechits
55  edm::InputTag HFrechitCollectionSig_; // secondary name given to collection of
56  // EB rechits
57  edm::InputTag ZDCrechitCollectionSig_; // secondary name given to collection
58  // of EB rechits
59 
60  edm::InputTag HBHEPileRecHitInputTag_; // InputTag for HB RecHits for Pileup
61  edm::InputTag HOPileRecHitInputTag_; // InputTag for HO RecHits for Pileup
62  edm::InputTag HFPileRecHitInputTag_; // InputTag for HF RecHits for Pileup
63  edm::InputTag ZDCPileRecHitInputTag_; // InputTag for ZDC RecHits for Pileup
64 
65  edm::EDGetTokenT<HBHERecHitCollection> HBHERecHitToken_; // Token to retrieve information
66  edm::EDGetTokenT<HORecHitCollection> HORecHitToken_; // Token to retrieve information
67  edm::EDGetTokenT<HFRecHitCollection> HFRecHitToken_; // Token to retrieve information
68  edm::EDGetTokenT<ZDCRecHitCollection> ZDCRecHitToken_; // Token to retrieve information
69 
71  edm::EDGetTokenT<HORecHitCollection> HORecHitPToken_; // Token to retrieve information
72  edm::EDGetTokenT<HFRecHitCollection> HFRecHitPToken_; // Token to retrieve information
73  edm::EDGetTokenT<ZDCRecHitCollection> ZDCRecHitPToken_; // Token to retrieve information
74 
75  std::string HBHERecHitCollectionDM_; // secondary name to be given to EB
76  // collection of hits
77  std::string HORecHitCollectionDM_; // secondary name to be given to EB
78  // collection of hits
79  std::string HFRecHitCollectionDM_; // secondary name to be given to EB
80  // collection of hits
81  std::string ZDCRecHitCollectionDM_; // secondary name to be given to EB
82  // collection of hits
83 
84  typedef std::multimap<DetId, HBHERecHit> HBHERecHitMap;
85  typedef std::multimap<DetId, HFRecHit> HFRecHitMap;
86  typedef std::multimap<DetId, HORecHit> HORecHitMap;
87  typedef std::multimap<DetId, ZDCRecHit> ZDCRecHitMap;
88 
93 
94  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
95 
97  };
98 } // namespace edm
99 
100 #endif // SimDataMixingHcalWorker_h
std::multimap< DetId, HORecHit > HORecHitMap
void addHcalSignals(const edm::Event &e)
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, ModuleCallingContext const *)
edm::EDGetTokenT< ZDCRecHitCollection > ZDCRecHitToken_
edm::EDGetTokenT< ZDCRecHitCollection > ZDCRecHitPToken_
edm::EDGetTokenT< HORecHitCollection > HORecHitToken_
std::multimap< DetId, HBHERecHit > HBHERecHitMap
edm::EDGetTokenT< HBHERecHitCollection > HBHERecHitPToken_
std::multimap< DetId, ZDCRecHit > ZDCRecHitMap
edm::EDGetTokenT< HFRecHitCollection > HFRecHitToken_
std::multimap< DetId, HFRecHit > HFRecHitMap
edm::EDGetTokenT< HBHERecHitCollection > HBHERecHitToken_
edm::EDGetTokenT< HFRecHitCollection > HFRecHitPToken_
HLT enums.
std::tuple< uint32_t, uint32_t, uint32_t > EventId
Event index (L1A/BX/orbit)
Definition: SlinkTypes.h:14
edm::EDGetTokenT< HORecHitCollection > HORecHitPToken_