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 
21 
27 
32 
33 
34 #include <map>
35 #include <vector>
36 #include <string>
37 
38 
39 namespace edm
40 {
42  {
43  public:
44 
46 
48  explicit DataMixingEMDigiWorker(const edm::ParameterSet& ps);
49 
51  virtual ~DataMixingEMDigiWorker();
52 
53  void putEM(edm::Event &e,const edm::EventSetup& ES) ;
54  void addEMSignals(const edm::Event &e,const edm::EventSetup& ES);
55  void addEMPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId,const edm::EventSetup& ES);
56 
57 
58  private:
60  const std::vector<float> GetPedestals (const edm::EventSetup& ES,
61  const DetId& detid) ;
62 
64  const std::vector<float> GetGainRatios(const edm::EventSetup& ES,
65  const DetId& detid) ;
66 
67  // data specifiers
68 
69  edm::InputTag EBProducerSig_; // primary? name given to collection of EB calib digis
70  edm::InputTag EEProducerSig_; // primary? name given to collection of EE calib digis
71  edm::InputTag ESProducerSig_; // primary? name given to collection of ES calib digis
72 
73  edm::InputTag EBdigiCollectionSig_; // secondary name given to collection of EB calib digis
74  edm::InputTag EEdigiCollectionSig_; // secondary name given to collection of EE calib digis
75  edm::InputTag ESdigiCollectionSig_; // secondary name given to collection of ES calib digis
76 
77  edm::InputTag EBPileInputTag_; // complete input tag for EB pileup digis
78  edm::InputTag EEPileInputTag_; // complete input tag for EE pileup digis
79  edm::InputTag ESPileInputTag_; // complete input tag for ES pileup digis
80 
81  std::string EBDigiCollectionDM_; // secondary name to be given to EB collection of hits
82  std::string EEDigiCollectionDM_; // secondary name to be given to EE collection of hits
83  std::string ESDigiCollectionDM_; // secondary name to be given to ES collection of hits
84 
85  typedef std::multimap<DetId, EBDataFrame> EBDigiMap;
86  typedef std::multimap<DetId, EEDataFrame> EEDigiMap;
87  typedef std::multimap<DetId, ESDataFrame> ESDigiMap;
88 
92 
93 
94  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
95 
97  std::string label_;
98 
99  };
100 }//edm
101 
102 #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)