CMS 3D CMS Logo

EcalDBCopy.h
Go to the documentation of this file.
1 #ifndef ECALDBCOPY_H
2 #define ECALDBCOPY_H
3 
6 
30 #include <string>
31 #include <map>
32 
33 namespace edm {
34  class ParameterSet;
35  class Event;
36  class EventSetup;
37 } // namespace edm
38 
40 class EcalTPGTowerStatus;
41 class EcalTBWeights;
43 class Alignments;
45 class EcalSampleMask;
46 class EcalSimPulseShape;
49 
50 class EcalPedestalsRcd;
65 class EcalGainRatiosRcd;
67 class EcalTBWeightsRcd;
68 class EcalLaserAlphasRcd;
77 class EBAlignmentRcd;
78 class EEAlignmentRcd;
79 class ESAlignmentRcd;
81 class EcalSampleMaskRcd;
85 
86 class EcalDBCopy : public edm::one::EDAnalyzer<> {
87 public:
88  explicit EcalDBCopy(const edm::ParameterSet& iConfig);
89  ~EcalDBCopy() override;
90 
91  void analyze(const edm::Event& evt, const edm::EventSetup& evtSetup) override;
92 
93 private:
94  bool shouldCopy(const edm::EventSetup& evtSetup, const std::string& container);
95  void copyToDB(const edm::EventSetup& evtSetup, const std::string& container);
96 
98  std::map<std::string, unsigned long long> m_cacheIDs;
99  std::map<std::string, std::string> m_records;
140 };
141 
142 #endif
edm::ESGetToken< EcalDQMTowerStatus, EcalDQMTowerStatusRcd > ecalDQMTowerStatusToken_
Definition: EcalDBCopy.h:105
std::string m_timetype
Definition: EcalDBCopy.h:97
edm::ESGetToken< EcalIntercalibConstants, EcalIntercalibConstantsRcd > ecalIntercalibConstantsToken_
Definition: EcalDBCopy.h:110
edm::ESGetToken< EcalTBWeights, EcalTBWeightsRcd > ecalTBWeightsToken_
Definition: EcalDBCopy.h:116
edm::ESGetToken< EcalLaserAlphas, EcalLaserAlphasRcd > ecalLaserAlphasToken_
Definition: EcalDBCopy.h:117
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
Definition: EcalDBCopy.cc:111
void copyToDB(const edm::EventSetup &evtSetup, const std::string &container)
Definition: EcalDBCopy.cc:203
std::map< std::string, std::string > m_records
Definition: EcalDBCopy.h:99
edm::ESGetToken< EcalIntercalibErrors, EcalIntercalibErrorsRcd > ecalIntercalibErrorsToken_
Definition: EcalDBCopy.h:113
edm::ESGetToken< Alignments, EBAlignmentRcd > ebAlignmentToken_
Definition: EcalDBCopy.h:132
edm::ESGetToken< EcalSamplesCorrelation, EcalSamplesCorrelationRcd > ecalSamplesCorrelationToken_
Definition: EcalDBCopy.h:139
edm::ESGetToken< EcalWeightXtalGroups, EcalWeightXtalGroupsRcd > ecalWeightXtalGroupsToken_
Definition: EcalDBCopy.h:115
EcalDBCopy(const edm::ParameterSet &iConfig)
Definition: EcalDBCopy.cc:59
edm::ESGetToken< EcalTimeBiasCorrections, EcalTimeBiasCorrectionsRcd > ecalTimeBiasCorrectionsToken_
Definition: EcalDBCopy.h:138
edm::ESGetToken< EcalDCSTowerStatus, EcalDCSTowerStatusRcd > ecalDCSTowerStatusToken_
Definition: EcalDBCopy.h:106
edm::ESGetToken< EcalPFRecHitThresholds, EcalPFRecHitThresholdsRcd > ecalPFRecHitThresholdsToken_
Definition: EcalDBCopy.h:122
edm::ESGetToken< EcalGainRatios, EcalGainRatiosRcd > ecalGainRatiosToken_
Definition: EcalDBCopy.h:114
edm::ESGetToken< EcalClusterLocalContCorrParameters, EcalClusterLocalContCorrParametersRcd > ecalClusterLocalContCorrParametersToken_
Definition: EcalDBCopy.h:131
edm::ESGetToken< EcalSimPulseShape, EcalSimPulseShapeRcd > ecalSimPulseShapeToken_
Definition: EcalDBCopy.h:137
edm::ESGetToken< EcalTimeCalibConstants, EcalTimeCalibConstantsRcd > ecalTimeCalibToken_
Definition: EcalDBCopy.h:102
edm::ESGetToken< EcalClusterEnergyUncertaintyParameters, EcalClusterEnergyUncertaintyParametersRcd > ecalClusterEnergyUncertaintyParametersToken_
Definition: EcalDBCopy.h:124
edm::ESGetToken< EcalLinearCorrections, EcalLinearCorrectionsRcd > ecalLinearCorrectionsToken_
Definition: EcalDBCopy.h:111
edm::ESGetToken< EcalClusterEnergyCorrectionParameters, EcalClusterEnergyCorrectionParametersRcd > ecalClusterEnergyCorrectionParametersToken_
Definition: EcalDBCopy.h:126
edm::ESGetToken< EcalClusterEnergyCorrectionObjectSpecificParameters, EcalClusterEnergyCorrectionObjectSpecificParametersRcd > ecalClusterEnergyCorrectionObjectSpecificParametersToken_
Definition: EcalDBCopy.h:129
edm::ESGetToken< Alignments, ESAlignmentRcd > esAlignmentToken_
Definition: EcalDBCopy.h:134
EcalFunParams EcalClusterEnergyCorrectionObjectSpecificParameters
bool shouldCopy(const edm::EventSetup &evtSetup, const std::string &container)
Definition: EcalDBCopy.cc:119
edm::ESGetToken< EcalPedestals, EcalPedestalsRcd > ecalPedestalToken_
Definition: EcalDBCopy.h:100
edm::ESGetToken< Alignments, EEAlignmentRcd > eeAlignmentToken_
Definition: EcalDBCopy.h:133
edm::ESGetToken< EcalTPGTowerStatus, EcalTPGTowerStatusRcd > ecalTPGTowerStatusToken_
Definition: EcalDBCopy.h:109
edm::ESGetToken< EcalDAQTowerStatus, EcalDAQTowerStatusRcd > ecalDAQTowerStatusToken_
Definition: EcalDBCopy.h:107
edm::ESGetToken< EcalLaserAPDPNRatios, EcalLaserAPDPNRatiosRcd > ecalLaserAPDPNRatiosToken_
Definition: EcalDBCopy.h:118
edm::ESGetToken< EcalClusterCrackCorrParameters, EcalClusterCrackCorrParametersRcd > ecalClusterCrackCorrParametersToken_
Definition: EcalDBCopy.h:121
edm::ESGetToken< EcalSampleMask, EcalSampleMaskRcd > ecalSampleMaskToken_
Definition: EcalDBCopy.h:136
edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > ecalChannelStatusToken_
Definition: EcalDBCopy.h:103
edm::ESGetToken< EcalTimeOffsetConstant, EcalTimeOffsetConstantRcd > ecalTimeOffsetConstantToken_
Definition: EcalDBCopy.h:135
edm::ESGetToken< EcalLaserAPDPNRatiosRef, EcalLaserAPDPNRatiosRefRcd > ecalLaserAPDPNRatiosRefToken_
Definition: EcalDBCopy.h:119
edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcd > ecalADCtoGeVToken_
Definition: EcalDBCopy.h:101
edm::ESGetToken< EcalDQMChannelStatus, EcalDQMChannelStatusRcd > ecalDQMChannelStatusToken_
Definition: EcalDBCopy.h:104
HLT enums.
~EcalDBCopy() override
Definition: EcalDBCopy.cc:109
edm::ESGetToken< EcalTPGCrystalStatus, EcalTPGCrystalStatusRcd > ecalTPGCrystalStatusToken_
Definition: EcalDBCopy.h:108
std::map< std::string, unsigned long long > m_cacheIDs
Definition: EcalDBCopy.h:98
edm::ESGetToken< EcalIntercalibConstantsMC, EcalIntercalibConstantsMCRcd > ecalIntercalibConstantsMCToken_
Definition: EcalDBCopy.h:112