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 
22 
30 
31 
32 #include <map>
33 #include <vector>
34 #include <string>
35 
36 
37 namespace edm
38 {
39  class ModuleCallingContext;
40 
42  {
43  public:
44 
46 
49 
51  virtual ~DataMixingHcalDigiWorker();
52 
53  void putHcal(edm::Event &e,const edm::EventSetup& ES) ;
54  void addHcalSignals(const edm::Event &e,const edm::EventSetup& ES);
55  void addHcalPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId,const edm::EventSetup& ES,
56  ModuleCallingContext const*);
57 
58 
59  private:
60  // data specifiers
61 
62  // Hcal
63  edm::InputTag HBHEdigiCollectionSig_; // secondary name given to collection of digis
64  edm::InputTag HOdigiCollectionSig_ ; // secondary name given to collection of digis
65  edm::InputTag HFdigiCollectionSig_ ; // secondary name given to collection of digis
66  edm::InputTag ZDCdigiCollectionSig_ ; // secondary name given to collection of digis
67 
68  edm::InputTag HBHEPileInputTag_; // InputTag for Pileup Digis collection
69  edm::InputTag HOPileInputTag_ ; // InputTag for Pileup Digis collection
70  edm::InputTag HFPileInputTag_ ; // InputTag for Pileup Digis collection
71  edm::InputTag ZDCPileInputTag_ ; // InputTag for Pileup Digis collection
72 
73  edm::EDGetTokenT<HBHEDigiCollection> HBHEDigiToken_ ; // Token to retrieve information
74  edm::EDGetTokenT<HODigiCollection> HODigiToken_ ; // Token to retrieve information
75  edm::EDGetTokenT<HFDigiCollection> HFDigiToken_ ; // Token to retrieve information
76  edm::EDGetTokenT<ZDCDigiCollection> ZDCDigiToken_ ; // Token to retrieve information
77 
78  edm::EDGetTokenT<HBHEDigiCollection> HBHEDigiPToken_ ; // Token to retrieve information
79  edm::EDGetTokenT<HODigiCollection> HODigiPToken_ ; // Token to retrieve information
80  edm::EDGetTokenT<HFDigiCollection> HFDigiPToken_ ; // Token to retrieve information
81  edm::EDGetTokenT<ZDCDigiCollection> ZDCDigiPToken_ ; // Token to retrieve information
82 
83 
84  std::string HBHEDigiCollectionDM_; // secondary name to be given to collection of digis
85  std::string HODigiCollectionDM_ ; // secondary name to be given to collection of digis
86  std::string HFDigiCollectionDM_ ; // secondary name to be given to collection of digis
87  std::string ZDCDigiCollectionDM_ ; // secondary name to be given to collection of digis
88 
89  typedef std::multimap<DetId, CaloSamples> HBHEDigiMap;
90  typedef std::multimap<DetId, CaloSamples> HFDigiMap;
91  typedef std::multimap<DetId, CaloSamples> HODigiMap;
92  typedef std::multimap<DetId, CaloSamples> ZDCDigiMap;
93 
94  // typedef std::multimap<DetId, HBHEDataFrame> HBHEDigiMap;
95  // typedef std::multimap<DetId, HFDataFrame> HFDigiMap;
96  // typedef std::multimap<DetId, HODataFrame> HODigiMap;
97  // typedef std::multimap<DetId, ZDCDataFrame> ZDCDigiMap;
98 
103 
104  bool DoZDC_;
105 
106  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
107 
109 
110  };
111 }//edm
112 
113 #endif
edm::EDGetTokenT< HBHEDigiCollection > HBHEDigiPToken_
edm::EDGetTokenT< HODigiCollection > HODigiToken_
edm::EDGetTokenT< ZDCDigiCollection > ZDCDigiToken_
edm::EDGetTokenT< HODigiCollection > HODigiPToken_
void addHcalPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
std::multimap< DetId, CaloSamples > HFDigiMap
edm::EDGetTokenT< ZDCDigiCollection > ZDCDigiPToken_
edm::EDGetTokenT< HFDigiCollection > HFDigiPToken_
void putHcal(edm::Event &e, const edm::EventSetup &ES)
std::multimap< DetId, CaloSamples > HBHEDigiMap
edm::EDGetTokenT< HFDigiCollection > HFDigiToken_
std::multimap< DetId, CaloSamples > ZDCDigiMap
void addHcalSignals(const edm::Event &e, const edm::EventSetup &ES)
edm::EDGetTokenT< HBHEDigiCollection > HBHEDigiToken_
std::multimap< DetId, CaloSamples > HODigiMap