test
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 {
41  class ModuleCallingContext;
42 
44  {
45  public:
46 
48 
51 
53  virtual ~DataMixingEMDigiWorker();
54 
55  void putEM(edm::Event &e,const edm::EventSetup& ES) ;
56  void addEMSignals(const edm::Event &e,const edm::EventSetup& ES);
57  void addEMPileups(const int bcr, const edm::EventPrincipal*,unsigned int EventId,const edm::EventSetup& ES,
58  ModuleCallingContext const*);
59 
60 
61  private:
63  const std::vector<float> GetPedestals (const edm::EventSetup& ES,
64  const DetId& detid) ;
65 
67  const std::vector<float> GetGainRatios(const edm::EventSetup& ES,
68  const DetId& detid) ;
69 
70  // data specifiers
71 
72  edm::InputTag EBProducerSig_; // primary? name given to collection of EB calib digis
73  edm::InputTag EEProducerSig_; // primary? name given to collection of EE calib digis
74  edm::InputTag ESProducerSig_; // primary? name given to collection of ES calib digis
75 
76  edm::InputTag EBdigiCollectionSig_; // secondary name given to collection of EB calib digis
77  edm::InputTag EEdigiCollectionSig_; // secondary name given to collection of EE calib digis
78  edm::InputTag ESdigiCollectionSig_; // secondary name given to collection of ES calib digis
79 
80  edm::InputTag EBPileInputTag_; // complete input tag for EB pileup digis
81  edm::InputTag EEPileInputTag_; // complete input tag for EE pileup digis
82  edm::InputTag ESPileInputTag_; // complete input tag for ES pileup digis
83 
84  edm::EDGetTokenT<EBDigiCollection> EBDigiToken_ ; // Token to retrieve information
85  edm::EDGetTokenT<EEDigiCollection> EEDigiToken_ ; // Token to retrieve information
86  edm::EDGetTokenT<ESDigiCollection> ESDigiToken_ ; // Token to retrieve information
87 
88  edm::EDGetTokenT<EBDigiCollection> EBDigiPileToken_ ; // Token to retrieve information
89  edm::EDGetTokenT<EEDigiCollection> EEDigiPileToken_ ; // Token to retrieve information
90  edm::EDGetTokenT<ESDigiCollection> ESDigiPileToken_ ; // Token to retrieve information
91 
92 
93  std::string EBDigiCollectionDM_; // secondary name to be given to EB collection of hits
94  std::string EEDigiCollectionDM_; // secondary name to be given to EE collection of hits
95  std::string ESDigiCollectionDM_; // secondary name to be given to ES collection of hits
96 
97  typedef std::multimap<DetId, EBDataFrame> EBDigiMap;
98  typedef std::multimap<DetId, EEDataFrame> EEDigiMap;
99  typedef std::multimap<DetId, ESDataFrame> ESDigiMap;
100 
104 
105 
106  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
107 
109 
110  };
111 }//edm
112 
113 #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
edm::EDGetTokenT< EEDigiCollection > EEDigiPileToken_
edm::EDGetTokenT< ESDigiCollection > ESDigiPileToken_
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)
edm::EDGetTokenT< EBDigiCollection > EBDigiToken_
edm::EDGetTokenT< ESDigiCollection > ESDigiToken_
edm::EDGetTokenT< EEDigiCollection > EEDigiToken_
edm::EDGetTokenT< EBDigiCollection > EBDigiPileToken_