CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DataMixingHcalDigiWorker.h
Go to the documentation of this file.
1 #ifndef DataMixingHcalDigiWorker_h
2 #define SimDataMixingHcalDigiWorker_h
3 
21 
29 
30 
31 #include <map>
32 #include <vector>
33 #include <string>
34 
35 
36 namespace edm
37 {
39  {
40  public:
41 
43 
45  explicit DataMixingHcalDigiWorker(const edm::ParameterSet& ps);
46 
48  virtual ~DataMixingHcalDigiWorker();
49 
50  void putHcal(edm::Event &e,const edm::EventSetup& ES) ;
51  void addHcalSignals(const edm::Event &e,const edm::EventSetup& ES);
52  void addHcalPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId,const edm::EventSetup& ES);
53 
54 
55  private:
56  // data specifiers
57 
58  // Hcal
59  edm::InputTag HBHEdigiCollectionSig_; // secondary name given to collection of digis
60  edm::InputTag HOdigiCollectionSig_ ; // secondary name given to collection of digis
61  edm::InputTag HFdigiCollectionSig_ ; // secondary name given to collection of digis
62  edm::InputTag ZDCdigiCollectionSig_ ; // secondary name given to collection of digis
63 
64  edm::InputTag HBHEPileInputTag_; // InputTag for Pileup Digis collection
65  edm::InputTag HOPileInputTag_ ; // InputTag for Pileup Digis collection
66  edm::InputTag HFPileInputTag_ ; // InputTag for Pileup Digis collection
67  edm::InputTag ZDCPileInputTag_ ; // InputTag for Pileup Digis collection
68 
69  std::string HBHEDigiCollectionDM_; // secondary name to be given to collection of digis
70  std::string HODigiCollectionDM_ ; // secondary name to be given to collection of digis
71  std::string HFDigiCollectionDM_ ; // secondary name to be given to collection of digis
72  std::string ZDCDigiCollectionDM_ ; // secondary name to be given to collection of digis
73 
74  typedef std::multimap<DetId, CaloSamples> HBHEDigiMap;
75  typedef std::multimap<DetId, CaloSamples> HFDigiMap;
76  typedef std::multimap<DetId, CaloSamples> HODigiMap;
77  typedef std::multimap<DetId, CaloSamples> ZDCDigiMap;
78 
79  // typedef std::multimap<DetId, HBHEDataFrame> HBHEDigiMap;
80  // typedef std::multimap<DetId, HFDataFrame> HFDigiMap;
81  // typedef std::multimap<DetId, HODataFrame> HODigiMap;
82  // typedef std::multimap<DetId, ZDCDataFrame> ZDCDigiMap;
83 
88 
89  bool DoZDC_;
90 
91  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
92 
94 
95  };
96 }//edm
97 
98 #endif
std::multimap< DetId, CaloSamples > HFDigiMap
void putHcal(edm::Event &e, const edm::EventSetup &ES)
std::multimap< DetId, CaloSamples > HBHEDigiMap
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES)
std::multimap< DetId, CaloSamples > ZDCDigiMap
void addHcalSignals(const edm::Event &e, const edm::EventSetup &ES)
std::multimap< DetId, CaloSamples > HODigiMap