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