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;
47 class EcalSimPulseShape;
50 
51 class EcalPedestalsRcd;
66 class EcalGainRatiosRcd;
68 class EcalTBWeightsRcd;
69 class EcalLaserAlphasRcd;
78 class EBAlignmentRcd;
79 class EEAlignmentRcd;
80 class ESAlignmentRcd;
82 class EcalSampleMaskRcd;
87 
88 class EcalDBCopy : public edm::one::EDAnalyzer<> {
89 public:
90  explicit EcalDBCopy(const edm::ParameterSet& iConfig);
91  ~EcalDBCopy() override;
92 
93  void analyze(const edm::Event& evt, const edm::EventSetup& evtSetup) override;
94 
95 private:
96  bool shouldCopy(const edm::EventSetup& evtSetup, const std::string& container);
97  void copyToDB(const edm::EventSetup& evtSetup, const std::string& container);
98 
100  std::map<std::string, unsigned long long> m_cacheIDs;
101  std::map<std::string, std::string> m_records;
143 };
144 
145 #endif
edm::ESGetToken< EcalDQMTowerStatus, EcalDQMTowerStatusRcd > ecalDQMTowerStatusToken_
Definition: EcalDBCopy.h:107
std::string m_timetype
Definition: EcalDBCopy.h:99
edm::ESGetToken< EcalIntercalibConstants, EcalIntercalibConstantsRcd > ecalIntercalibConstantsToken_
Definition: EcalDBCopy.h:112
edm::ESGetToken< EcalTBWeights, EcalTBWeightsRcd > ecalTBWeightsToken_
Definition: EcalDBCopy.h:118
edm::ESGetToken< EcalLaserAlphas, EcalLaserAlphasRcd > ecalLaserAlphasToken_
Definition: EcalDBCopy.h:119
void analyze(const edm::Event &evt, const edm::EventSetup &evtSetup) override
Definition: EcalDBCopy.cc:114
void copyToDB(const edm::EventSetup &evtSetup, const std::string &container)
Definition: EcalDBCopy.cc:208
std::map< std::string, std::string > m_records
Definition: EcalDBCopy.h:101
edm::ESGetToken< EcalIntercalibErrors, EcalIntercalibErrorsRcd > ecalIntercalibErrorsToken_
Definition: EcalDBCopy.h:115
edm::ESGetToken< Alignments, EBAlignmentRcd > ebAlignmentToken_
Definition: EcalDBCopy.h:134
edm::ESGetToken< EcalSamplesCorrelation, EcalSamplesCorrelationRcd > ecalSamplesCorrelationToken_
Definition: EcalDBCopy.h:142
edm::ESGetToken< EcalWeightXtalGroups, EcalWeightXtalGroupsRcd > ecalWeightXtalGroupsToken_
Definition: EcalDBCopy.h:117
EcalDBCopy(const edm::ParameterSet &iConfig)
Definition: EcalDBCopy.cc:61
edm::ESGetToken< EcalTimeBiasCorrections, EcalTimeBiasCorrectionsRcd > ecalTimeBiasCorrectionsToken_
Definition: EcalDBCopy.h:141
edm::ESGetToken< EcalDCSTowerStatus, EcalDCSTowerStatusRcd > ecalDCSTowerStatusToken_
Definition: EcalDBCopy.h:108
edm::ESGetToken< EcalPFRecHitThresholds, EcalPFRecHitThresholdsRcd > ecalPFRecHitThresholdsToken_
Definition: EcalDBCopy.h:124
edm::ESGetToken< EcalGainRatios, EcalGainRatiosRcd > ecalGainRatiosToken_
Definition: EcalDBCopy.h:116
edm::ESGetToken< EcalClusterLocalContCorrParameters, EcalClusterLocalContCorrParametersRcd > ecalClusterLocalContCorrParametersToken_
Definition: EcalDBCopy.h:133
edm::ESGetToken< EcalSimPulseShape, EcalSimPulseShapeRcd > ecalSimPulseShapeToken_
Definition: EcalDBCopy.h:140
edm::ESGetToken< EcalTimeCalibConstants, EcalTimeCalibConstantsRcd > ecalTimeCalibToken_
Definition: EcalDBCopy.h:104
edm::ESGetToken< EcalClusterEnergyUncertaintyParameters, EcalClusterEnergyUncertaintyParametersRcd > ecalClusterEnergyUncertaintyParametersToken_
Definition: EcalDBCopy.h:126
edm::ESGetToken< EcalSimComponentShape, EcalSimComponentShapeRcd > ecalSimComponentShapeToken_
Definition: EcalDBCopy.h:139
edm::ESGetToken< EcalLinearCorrections, EcalLinearCorrectionsRcd > ecalLinearCorrectionsToken_
Definition: EcalDBCopy.h:113
edm::ESGetToken< EcalClusterEnergyCorrectionParameters, EcalClusterEnergyCorrectionParametersRcd > ecalClusterEnergyCorrectionParametersToken_
Definition: EcalDBCopy.h:128
edm::ESGetToken< EcalClusterEnergyCorrectionObjectSpecificParameters, EcalClusterEnergyCorrectionObjectSpecificParametersRcd > ecalClusterEnergyCorrectionObjectSpecificParametersToken_
Definition: EcalDBCopy.h:131
edm::ESGetToken< Alignments, ESAlignmentRcd > esAlignmentToken_
Definition: EcalDBCopy.h:136
EcalFunParams EcalClusterEnergyCorrectionObjectSpecificParameters
bool shouldCopy(const edm::EventSetup &evtSetup, const std::string &container)
Definition: EcalDBCopy.cc:122
edm::ESGetToken< EcalPedestals, EcalPedestalsRcd > ecalPedestalToken_
Definition: EcalDBCopy.h:102
edm::ESGetToken< Alignments, EEAlignmentRcd > eeAlignmentToken_
Definition: EcalDBCopy.h:135
edm::ESGetToken< EcalTPGTowerStatus, EcalTPGTowerStatusRcd > ecalTPGTowerStatusToken_
Definition: EcalDBCopy.h:111
edm::ESGetToken< EcalDAQTowerStatus, EcalDAQTowerStatusRcd > ecalDAQTowerStatusToken_
Definition: EcalDBCopy.h:109
edm::ESGetToken< EcalLaserAPDPNRatios, EcalLaserAPDPNRatiosRcd > ecalLaserAPDPNRatiosToken_
Definition: EcalDBCopy.h:120
edm::ESGetToken< EcalClusterCrackCorrParameters, EcalClusterCrackCorrParametersRcd > ecalClusterCrackCorrParametersToken_
Definition: EcalDBCopy.h:123
edm::ESGetToken< EcalSampleMask, EcalSampleMaskRcd > ecalSampleMaskToken_
Definition: EcalDBCopy.h:138
edm::ESGetToken< EcalChannelStatus, EcalChannelStatusRcd > ecalChannelStatusToken_
Definition: EcalDBCopy.h:105
edm::ESGetToken< EcalTimeOffsetConstant, EcalTimeOffsetConstantRcd > ecalTimeOffsetConstantToken_
Definition: EcalDBCopy.h:137
edm::ESGetToken< EcalLaserAPDPNRatiosRef, EcalLaserAPDPNRatiosRefRcd > ecalLaserAPDPNRatiosRefToken_
Definition: EcalDBCopy.h:121
edm::ESGetToken< EcalADCToGeVConstant, EcalADCToGeVConstantRcd > ecalADCtoGeVToken_
Definition: EcalDBCopy.h:103
edm::ESGetToken< EcalDQMChannelStatus, EcalDQMChannelStatusRcd > ecalDQMChannelStatusToken_
Definition: EcalDBCopy.h:106
HLT enums.
~EcalDBCopy() override
Definition: EcalDBCopy.cc:112
edm::ESGetToken< EcalTPGCrystalStatus, EcalTPGCrystalStatusRcd > ecalTPGCrystalStatusToken_
Definition: EcalDBCopy.h:110
std::map< std::string, unsigned long long > m_cacheIDs
Definition: EcalDBCopy.h:100
edm::ESGetToken< EcalIntercalibConstantsMC, EcalIntercalibConstantsMCRcd > ecalIntercalibConstantsMCToken_
Definition: EcalDBCopy.h:114