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 {
34  {
35  public:
36 
38 
40  explicit DataMixingHcalWorker(const edm::ParameterSet& ps);
41 
43  virtual ~DataMixingHcalWorker();
44 
45  void putHcal(edm::Event &e) ;
46  void addHcalSignals(const edm::Event &e);
47  void addHcalPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId);
48 
49 
50  private:
51  // data specifiers
52 
53  // Hcal
54  edm::InputTag HBHErechitCollectionSig_; // secondary name given to collection of EB rechits
55  edm::InputTag HOrechitCollectionSig_ ; // secondary name given to collection of EB rechits
56  edm::InputTag HFrechitCollectionSig_ ; // secondary name given to collection of EB rechits
57  edm::InputTag ZDCrechitCollectionSig_ ; // secondary name given to collection of EB rechits
58 
59  edm::InputTag HBHEPileRecHitInputTag_ ; // InputTag for HB RecHits for Pileup
60  edm::InputTag HOPileRecHitInputTag_ ; // InputTag for HO RecHits for Pileup
61  edm::InputTag HFPileRecHitInputTag_ ; // InputTag for HF RecHits for Pileup
62  edm::InputTag ZDCPileRecHitInputTag_ ; // InputTag for ZDC RecHits for Pileup
63 
64  std::string HBHERecHitCollectionDM_; // secondary name to be given to EB collection of hits
65  std::string HORecHitCollectionDM_ ; // secondary name to be given to EB collection of hits
66  std::string HFRecHitCollectionDM_ ; // secondary name to be given to EB collection of hits
67  std::string ZDCRecHitCollectionDM_ ; // secondary name to be given to EB collection of hits
68 
69  typedef std::multimap<DetId, HBHERecHit> HBHERecHitMap;
70  typedef std::multimap<DetId, HFRecHit> HFRecHitMap;
71  typedef std::multimap<DetId, HORecHit> HORecHitMap;
72  typedef std::multimap<DetId, ZDCRecHit> ZDCRecHitMap;
73 
78 
79 
80  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
81 
83  std::string label_;
84 
85  };
86 }//edm
87 
88 #endif
std::multimap< DetId, HORecHit > HORecHitMap
void addHcalSignals(const edm::Event &e)
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId)
std::multimap< DetId, HBHERecHit > HBHERecHitMap
std::multimap< DetId, ZDCRecHit > ZDCRecHitMap
std::multimap< DetId, HFRecHit > HFRecHitMap