CMS 3D CMS Logo

DataMixingEMDigiWorker.h
Go to the documentation of this file.
1 #ifndef SimDataMixingEMDigiWorker_h
2 #define SimDataMixingEMDigiWorker_h
3 
21 
27 
32 
33 #include <map>
34 #include <string>
35 #include <vector>
36 
37 namespace edm {
38  class ModuleCallingContext;
39 
41  public:
43 
46 
48  virtual ~DataMixingEMDigiWorker();
49 
50  void putEM(edm::Event &e, const edm::EventSetup &ES);
51  void addEMSignals(const edm::Event &e, const edm::EventSetup &ES);
52  void addEMPileups(const int bcr,
53  const edm::EventPrincipal *,
54  unsigned int EventId,
55  const edm::EventSetup &ES,
56  ModuleCallingContext const *);
57 
58  private:
60  const std::vector<float> GetPedestals(const edm::EventSetup &ES, const DetId &detid);
61 
63  const std::vector<float> GetGainRatios(const edm::EventSetup &ES, const DetId &detid);
64 
65  // data specifiers
66 
67  edm::InputTag EBProducerSig_; // primary? name given to collection of EB calib digis
68  edm::InputTag EEProducerSig_; // primary? name given to collection of EE calib digis
69  edm::InputTag ESProducerSig_; // primary? name given to collection of ES calib digis
70 
71  edm::InputTag EBdigiCollectionSig_; // secondary name given to collection of
72  // EB calib digis
73  edm::InputTag EEdigiCollectionSig_; // secondary name given to collection of
74  // EE calib digis
75  edm::InputTag ESdigiCollectionSig_; // secondary name given to collection of
76  // ES calib digis
77 
78  edm::InputTag EBPileInputTag_; // complete input tag for EB pileup digis
79  edm::InputTag EEPileInputTag_; // complete input tag for EE pileup digis
80  edm::InputTag ESPileInputTag_; // complete input tag for ES pileup digis
81 
82  edm::EDGetTokenT<EBDigiCollection> EBDigiToken_; // Token to retrieve information
83  edm::EDGetTokenT<EEDigiCollection> EEDigiToken_; // Token to retrieve information
84  edm::EDGetTokenT<ESDigiCollection> ESDigiToken_; // Token to retrieve information
85 
86  edm::EDGetTokenT<EBDigiCollection> EBDigiPileToken_; // Token to retrieve information
87  edm::EDGetTokenT<EEDigiCollection> EEDigiPileToken_; // Token to retrieve information
88  edm::EDGetTokenT<ESDigiCollection> ESDigiPileToken_; // Token to retrieve information
89 
90  std::string EBDigiCollectionDM_; // secondary name to be given to EB
91  // collection of hits
92  std::string EEDigiCollectionDM_; // secondary name to be given to EE
93  // collection of hits
94  std::string ESDigiCollectionDM_; // secondary name to be given to ES
95  // 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  // unsigned int eventId_; //=0 for signal, from 1-n for pileup events
106 
108  };
109 } // namespace edm
110 
111 #endif // SimDataMixingEMDigiWorker_h
edm::DataMixingEMDigiWorker::EBPileInputTag_
edm::InputTag EBPileInputTag_
Definition: DataMixingEMDigiWorker.h:78
Handle.h
edm::DataMixingEMDigiWorker::ESDigiCollectionDM_
std::string ESDigiCollectionDM_
Definition: DataMixingEMDigiWorker.h:94
edm::DataMixingEMDigiWorker::ESDigiMap
std::multimap< DetId, ESDataFrame > ESDigiMap
Definition: DataMixingEMDigiWorker.h:99
edm::DataMixingEMDigiWorker::EEDigiStorage_
EEDigiMap EEDigiStorage_
Definition: DataMixingEMDigiWorker.h:102
edm::DataMixingEMDigiWorker::EEDigiPileToken_
edm::EDGetTokenT< EEDigiCollection > EEDigiPileToken_
Definition: DataMixingEMDigiWorker.h:87
edm::DataMixingEMDigiWorker::GetPedestals
const std::vector< float > GetPedestals(const edm::EventSetup &ES, const DetId &detid)
retrieve pedestals for that detid [0]=g12, [1]=g6, [2]=g12
Definition: DataMixingEMDigiWorker.cc:529
edm::DataMixingEMDigiWorker::EBDigiStorage_
EBDigiMap EBDigiStorage_
Definition: DataMixingEMDigiWorker.h:101
edm::DataMixingEMDigiWorker::EBdigiCollectionSig_
edm::InputTag EBdigiCollectionSig_
Definition: DataMixingEMDigiWorker.h:71
edm::DataMixingEMDigiWorker::EBDigiPileToken_
edm::EDGetTokenT< EBDigiCollection > EBDigiPileToken_
Definition: DataMixingEMDigiWorker.h:86
edm::EDGetTokenT< EBDigiCollection >
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::DataMixingEMDigiWorker::GetGainRatios
const std::vector< float > GetGainRatios(const edm::EventSetup &ES, const DetId &detid)
retrieve gain ratios for that detid [0]=g12, [1]=g6, [2]=g12
Definition: DataMixingEMDigiWorker.cc:556
EBDetId.h
edm::DataMixingEMDigiWorker::EEPileInputTag_
edm::InputTag EEPileInputTag_
Definition: DataMixingEMDigiWorker.h:79
EEDetId.h
edm::DataMixingEMDigiWorker::putEM
void putEM(edm::Event &e, const edm::EventSetup &ES)
Definition: DataMixingEMDigiWorker.cc:227
edm::DataMixingEMDigiWorker::ESDigiPileToken_
edm::EDGetTokenT< ESDigiCollection > ESDigiPileToken_
Definition: DataMixingEMDigiWorker.h:88
edm::DataMixingEMDigiWorker::EEDigiCollectionDM_
std::string EEDigiCollectionDM_
Definition: DataMixingEMDigiWorker.h:92
ESDetId.h
edm::DataMixingEMDigiWorker::EBDigiMap
std::multimap< DetId, EBDataFrame > EBDigiMap
Definition: DataMixingEMDigiWorker.h:97
edm::DataMixingEMDigiWorker::EBDigiCollectionDM_
std::string EBDigiCollectionDM_
Definition: DataMixingEMDigiWorker.h:90
ESDataFrame.h
DetId
Definition: DetId.h:17
edm::DataMixingEMDigiWorker
Definition: DataMixingEMDigiWorker.h:40
edm::EventPrincipal
Definition: EventPrincipal.h:46
EventPrincipal.h
EcalDigiCollections.h
ProductID.h
edm::DataMixingEMDigiWorker::EBProducerSig_
edm::InputTag EBProducerSig_
Definition: DataMixingEMDigiWorker.h:67
edm::DataMixingEMDigiWorker::label_
std::string label_
Definition: DataMixingEMDigiWorker.h:107
edm::DataMixingEMDigiWorker::ESDigiStorage_
ESDigiMap ESDigiStorage_
Definition: DataMixingEMDigiWorker.h:103
edm::DataMixingEMDigiWorker::addEMPileups
void addEMPileups(const int bcr, const edm::EventPrincipal *, unsigned int EventId, const edm::EventSetup &ES, ModuleCallingContext const *)
Definition: DataMixingEMDigiWorker.cc:149
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
Event.h
edm::DataMixingEMDigiWorker::EEDigiMap
std::multimap< DetId, EEDataFrame > EEDigiMap
Definition: DataMixingEMDigiWorker.h:98
edm::DataMixingEMDigiWorker::EEProducerSig_
edm::InputTag EEProducerSig_
Definition: DataMixingEMDigiWorker.h:68
EBDataFrame.h
edm::EventSetup
Definition: EventSetup.h:57
edm::DataMixingEMDigiWorker::~DataMixingEMDigiWorker
virtual ~DataMixingEMDigiWorker()
Definition: DataMixingEMDigiWorker.cc:65
EEDataFrame.h
edm::DataMixingEMDigiWorker::ESdigiCollectionSig_
edm::InputTag ESdigiCollectionSig_
Definition: DataMixingEMDigiWorker.h:75
edm::DataMixingEMDigiWorker::addEMSignals
void addEMSignals(const edm::Event &e, const edm::EventSetup &ES)
Definition: DataMixingEMDigiWorker.cc:67
edm::DataMixingEMDigiWorker::ESPileInputTag_
edm::InputTag ESPileInputTag_
Definition: DataMixingEMDigiWorker.h:80
edm::DataMixingEMDigiWorker::DataMixingEMDigiWorker
DataMixingEMDigiWorker()
Definition: DataMixingEMDigiWorker.cc:30
edm::DataMixingEMDigiWorker::ESDigiToken_
edm::EDGetTokenT< ESDigiCollection > ESDigiToken_
Definition: DataMixingEMDigiWorker.h:84
edm::DataMixingEMDigiWorker::EEDigiToken_
edm::EDGetTokenT< EEDigiCollection > EEDigiToken_
Definition: DataMixingEMDigiWorker.h:83
edm::DataMixingEMDigiWorker::EEdigiCollectionSig_
edm::InputTag EEdigiCollectionSig_
Definition: DataMixingEMDigiWorker.h:73
ConsumesCollector.h
ParameterSet.h
edm::DataMixingEMDigiWorker::EBDigiToken_
edm::EDGetTokenT< EBDigiCollection > EBDigiToken_
Definition: DataMixingEMDigiWorker.h:82
edm::Event
Definition: Event.h:73
edm::DataMixingEMDigiWorker::ESProducerSig_
edm::InputTag ESProducerSig_
Definition: DataMixingEMDigiWorker.h:69
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37
edm::ModuleCallingContext
Definition: ModuleCallingContext.h:29