test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DataMixingHcalWorker.h
Go to the documentation of this file.
1 #ifndef DataMixingHcalWorker_h
2 #define SimDataMixingHcalWorker_h
3 
21 
25 
26 #include <map>
27 #include <vector>
28 #include <string>
29 
30 
31 namespace edm
32 {
33  class ModuleCallingContext;
34 
36  {
37  public:
38 
40 
43 
45  virtual ~DataMixingHcalWorker();
46 
47  void putHcal(edm::Event &e) ;
48  void addHcalSignals(const edm::Event &e);
49  void addHcalPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId,
50  ModuleCallingContext const*);
51 
52 
53  private:
54  // data specifiers
55 
56  // Hcal
57  edm::InputTag HBHErechitCollectionSig_; // secondary name given to collection of EB rechits
58  edm::InputTag HOrechitCollectionSig_ ; // secondary name given to collection of EB rechits
59  edm::InputTag HFrechitCollectionSig_ ; // secondary name given to collection of EB rechits
60  edm::InputTag ZDCrechitCollectionSig_ ; // secondary name given to collection of EB rechits
61 
62  edm::InputTag HBHEPileRecHitInputTag_ ; // InputTag for HB RecHits for Pileup
63  edm::InputTag HOPileRecHitInputTag_ ; // InputTag for HO RecHits for Pileup
64  edm::InputTag HFPileRecHitInputTag_ ; // InputTag for HF RecHits for Pileup
65  edm::InputTag ZDCPileRecHitInputTag_ ; // InputTag for ZDC RecHits for Pileup
66 
67  edm::EDGetTokenT<HBHERecHitCollection> HBHERecHitToken_ ; // Token to retrieve information
68  edm::EDGetTokenT<HORecHitCollection> HORecHitToken_ ; // Token to retrieve information
69  edm::EDGetTokenT<HFRecHitCollection> HFRecHitToken_ ; // Token to retrieve information
70  edm::EDGetTokenT<ZDCRecHitCollection> ZDCRecHitToken_ ; // Token to retrieve information
71 
72  edm::EDGetTokenT<HBHERecHitCollection> HBHERecHitPToken_ ; // Token to retrieve information
73  edm::EDGetTokenT<HORecHitCollection> HORecHitPToken_ ; // Token to retrieve information
74  edm::EDGetTokenT<HFRecHitCollection> HFRecHitPToken_ ; // Token to retrieve information
75  edm::EDGetTokenT<ZDCRecHitCollection> ZDCRecHitPToken_ ; // Token to retrieve information
76 
77  std::string HBHERecHitCollectionDM_; // secondary name to be given to EB collection of hits
78  std::string HORecHitCollectionDM_ ; // secondary name to be given to EB collection of hits
79  std::string HFRecHitCollectionDM_ ; // secondary name to be given to EB collection of hits
80  std::string ZDCRecHitCollectionDM_ ; // secondary name to be given to EB collection of hits
81 
82  typedef std::multimap<DetId, HBHERecHit> HBHERecHitMap;
83  typedef std::multimap<DetId, HFRecHit> HFRecHitMap;
84  typedef std::multimap<DetId, HORecHit> HORecHitMap;
85  typedef std::multimap<DetId, ZDCRecHit> ZDCRecHitMap;
86 
91 
92 
93  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
94 
96 
97  };
98 }//edm
99 
100 #endif
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_
edm::EDGetTokenT< HORecHitCollection > HORecHitPToken_