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 {
38  class ModuleCallingContext;
39 
41  {
42  public:
43 
45 
47  explicit DataMixingHcalDigiWorker(const edm::ParameterSet& ps);
48 
50  virtual ~DataMixingHcalDigiWorker();
51 
52  void putHcal(edm::Event &e,const edm::EventSetup& ES) ;
53  void addHcalSignals(const edm::Event &e,const edm::EventSetup& ES);
54  void addHcalPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId,const edm::EventSetup& ES,
55  ModuleCallingContext const*);
56 
57 
58  private:
59  // data specifiers
60 
61  // Hcal
62  edm::InputTag HBHEdigiCollectionSig_; // secondary name given to collection of digis
63  edm::InputTag HOdigiCollectionSig_ ; // secondary name given to collection of digis
64  edm::InputTag HFdigiCollectionSig_ ; // secondary name given to collection of digis
65  edm::InputTag ZDCdigiCollectionSig_ ; // secondary name given to collection of digis
66 
67  edm::InputTag HBHEPileInputTag_; // InputTag for Pileup Digis collection
68  edm::InputTag HOPileInputTag_ ; // InputTag for Pileup Digis collection
69  edm::InputTag HFPileInputTag_ ; // InputTag for Pileup Digis collection
70  edm::InputTag ZDCPileInputTag_ ; // InputTag for Pileup Digis collection
71 
72  std::string HBHEDigiCollectionDM_; // secondary name to be given to collection of digis
73  std::string HODigiCollectionDM_ ; // secondary name to be given to collection of digis
74  std::string HFDigiCollectionDM_ ; // secondary name to be given to collection of digis
75  std::string ZDCDigiCollectionDM_ ; // secondary name to be given to collection of digis
76 
77  typedef std::multimap<DetId, CaloSamples> HBHEDigiMap;
78  typedef std::multimap<DetId, CaloSamples> HFDigiMap;
79  typedef std::multimap<DetId, CaloSamples> HODigiMap;
80  typedef std::multimap<DetId, CaloSamples> ZDCDigiMap;
81 
82  // typedef std::multimap<DetId, HBHEDataFrame> HBHEDigiMap;
83  // typedef std::multimap<DetId, HFDataFrame> HFDigiMap;
84  // typedef std::multimap<DetId, HODataFrame> HODigiMap;
85  // typedef std::multimap<DetId, ZDCDataFrame> ZDCDigiMap;
86 
91 
92  bool DoZDC_;
93 
94  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
95 
97 
98  };
99 }//edm
100 
101 #endif
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
std::multimap< DetId, CaloSamples > HFDigiMap
void putHcal(edm::Event &e, const edm::EventSetup &ES)
std::multimap< DetId, CaloSamples > HBHEDigiMap
std::multimap< DetId, CaloSamples > ZDCDigiMap
void addHcalSignals(const edm::Event &e, const edm::EventSetup &ES)
std::multimap< DetId, CaloSamples > HODigiMap