CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DataMixingEMDigiWorker.h
Go to the documentation of this file.
1 #ifndef DataMixingEMDigiWorker_h
2 #define SimDataMixingEMDigiWorker_h
3 
20 
26 
31 
32 
33 #include <map>
34 #include <vector>
35 #include <string>
36 
37 
38 namespace edm
39 {
40  class ModuleCallingContext;
41 
43  {
44  public:
45 
47 
49  explicit DataMixingEMDigiWorker(const edm::ParameterSet& ps);
50 
52  virtual ~DataMixingEMDigiWorker();
53 
54  void putEM(edm::Event &e,const edm::EventSetup& ES) ;
55  void addEMSignals(const edm::Event &e,const edm::EventSetup& ES);
56  void addEMPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId,const edm::EventSetup& ES,
57  ModuleCallingContext const*);
58 
59 
60  private:
62  const std::vector<float> GetPedestals (const edm::EventSetup& ES,
63  const DetId& detid) ;
64 
66  const std::vector<float> GetGainRatios(const edm::EventSetup& ES,
67  const DetId& detid) ;
68 
69  // data specifiers
70 
71  edm::InputTag EBProducerSig_; // primary? name given to collection of EB calib digis
72  edm::InputTag EEProducerSig_; // primary? name given to collection of EE calib digis
73  edm::InputTag ESProducerSig_; // primary? name given to collection of ES calib digis
74 
75  edm::InputTag EBdigiCollectionSig_; // secondary name given to collection of EB calib digis
76  edm::InputTag EEdigiCollectionSig_; // secondary name given to collection of EE calib digis
77  edm::InputTag ESdigiCollectionSig_; // secondary name given to collection of ES calib digis
78 
79  edm::InputTag EBPileInputTag_; // complete input tag for EB pileup digis
80  edm::InputTag EEPileInputTag_; // complete input tag for EE pileup digis
81  edm::InputTag ESPileInputTag_; // complete input tag for ES pileup digis
82 
83  std::string EBDigiCollectionDM_; // secondary name to be given to EB collection of hits
84  std::string EEDigiCollectionDM_; // secondary name to be given to EE collection of hits
85  std::string ESDigiCollectionDM_; // secondary name to be given to ES collection of hits
86 
87  typedef std::multimap<DetId, EBDataFrame> EBDigiMap;
88  typedef std::multimap<DetId, EEDataFrame> EEDigiMap;
89  typedef std::multimap<DetId, ESDataFrame> ESDigiMap;
90 
94 
95 
96  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
97 
99 
100  };
101 }//edm
102 
103 #endif
const std::vector< float > GetGainRatios(const edm::EventSetup &ES, const DetId &detid)
retrieve gain ratios for that detid [0]=g12, [1]=g6, [2]=g12
std::multimap< DetId, ESDataFrame > ESDigiMap
std::multimap< DetId, EBDataFrame > EBDigiMap
const std::vector< float > GetPedestals(const edm::EventSetup &ES, const DetId &detid)
retrieve pedestals for that detid [0]=g12, [1]=g6, [2]=g12
void addEMPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
void putEM(edm::Event &e, const edm::EventSetup &ES)
std::multimap< DetId, EEDataFrame > EEDigiMap
Definition: DetId.h:18
void addEMSignals(const edm::Event &e, const edm::EventSetup &ES)