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 {
41  {
42  public:
43 
45 
47  explicit DataMixingEMDigiWorker(const edm::ParameterSet& ps);
48 
50  virtual ~DataMixingEMDigiWorker();
51 
52  void putEM(edm::Event &e,const edm::EventSetup& ES) ;
53  void addEMSignals(const edm::Event &e,const edm::EventSetup& ES);
54  void addEMPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId,const edm::EventSetup& ES);
55 
56 
57  private:
59  const std::vector<float> GetPedestals (const edm::EventSetup& ES,
60  const DetId& detid) ;
61 
63  const std::vector<float> GetGainRatios(const edm::EventSetup& ES,
64  const DetId& detid) ;
65 
66  // data specifiers
67 
68  edm::InputTag EBProducerSig_; // primary? name given to collection of EB calib digis
69  edm::InputTag EEProducerSig_; // primary? name given to collection of EE calib digis
70  edm::InputTag ESProducerSig_; // primary? name given to collection of ES calib digis
71 
72  edm::InputTag EBdigiCollectionSig_; // secondary name given to collection of EB calib digis
73  edm::InputTag EEdigiCollectionSig_; // secondary name given to collection of EE calib digis
74  edm::InputTag ESdigiCollectionSig_; // secondary name given to collection of ES calib digis
75 
76  edm::InputTag EBPileInputTag_; // complete input tag for EB pileup digis
77  edm::InputTag EEPileInputTag_; // complete input tag for EE pileup digis
78  edm::InputTag ESPileInputTag_; // complete input tag for ES pileup digis
79 
80  std::string EBDigiCollectionDM_; // secondary name to be given to EB collection of hits
81  std::string EEDigiCollectionDM_; // secondary name to be given to EE collection of hits
82  std::string ESDigiCollectionDM_; // secondary name to be given to ES collection of hits
83 
84  typedef std::multimap<DetId, EBDataFrame> EBDigiMap;
85  typedef std::multimap<DetId, EEDataFrame> EEDigiMap;
86  typedef std::multimap<DetId, ESDataFrame> ESDigiMap;
87 
91 
92 
93  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
94 
96 
97  };
98 }//edm
99 
100 #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 putEM(edm::Event &e, const edm::EventSetup &ES)
void addEMPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES)
std::multimap< DetId, EEDataFrame > EEDigiMap
Definition: DetId.h:20
void addEMSignals(const edm::Event &e, const edm::EventSetup &ES)