CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
EcalDBCopy Class Reference

#include <EcalDBCopy.h>

Inheritance diagram for EcalDBCopy:
edm::one::EDAnalyzer<> edm::one::EDAnalyzerBase edm::EDConsumerBase

Public Member Functions

void analyze (const edm::Event &evt, const edm::EventSetup &evtSetup) override
 
 EcalDBCopy (const edm::ParameterSet &iConfig)
 
 ~EcalDBCopy () override
 
- Public Member Functions inherited from edm::one::EDAnalyzer<>
 EDAnalyzer ()=default
 
 EDAnalyzer (const EDAnalyzer &)=delete
 
SerialTaskQueueglobalLuminosityBlocksQueue () final
 
SerialTaskQueueglobalRunsQueue () final
 
const EDAnalyzeroperator= (const EDAnalyzer &)=delete
 
bool wantsGlobalLuminosityBlocks () const final
 
bool wantsGlobalRuns () const final
 
bool wantsInputProcessBlocks () const final
 
bool wantsProcessBlocks () const final
 
- Public Member Functions inherited from edm::one::EDAnalyzerBase
void callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func)
 
 EDAnalyzerBase ()
 
ModuleDescription const & moduleDescription () const
 
bool wantsStreamLuminosityBlocks () const
 
bool wantsStreamRuns () const
 
 ~EDAnalyzerBase () override
 
- Public Member Functions inherited from edm::EDConsumerBase
std::vector< ConsumesInfoconsumesInfo () const
 
void convertCurrentProcessAlias (std::string const &processName)
 Convert "@currentProcess" in InputTag process names to the actual current process name. More...
 
 EDConsumerBase ()
 
 EDConsumerBase (EDConsumerBase const &)=delete
 
 EDConsumerBase (EDConsumerBase &&)=default
 
ESProxyIndex const * esGetTokenIndices (edm::Transition iTrans) const
 
std::vector< ESProxyIndex > const & esGetTokenIndicesVector (edm::Transition iTrans) const
 
std::vector< ESRecordIndex >
const & 
esGetTokenRecordIndicesVector (edm::Transition iTrans) const
 
ProductResolverIndexAndSkipBit indexFrom (EDGetToken, BranchType, TypeID const &) const
 
void itemsMayGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
void itemsToGet (BranchType, std::vector< ProductResolverIndexAndSkipBit > &) const
 
std::vector
< ProductResolverIndexAndSkipBit >
const & 
itemsToGetFrom (BranchType iType) const
 
void labelsForToken (EDGetToken iToken, Labels &oLabels) const
 
void modulesWhoseProductsAreConsumed (std::array< std::vector< ModuleDescription const * > *, NumBranchTypes > &modulesAll, std::vector< ModuleProcessName > &modulesInPreviousProcesses, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const
 
EDConsumerBase const & operator= (EDConsumerBase const &)=delete
 
EDConsumerBaseoperator= (EDConsumerBase &&)=default
 
bool registeredToConsume (ProductResolverIndex, bool, BranchType) const
 
bool registeredToConsumeMany (TypeID const &, BranchType) const
 
void selectInputProcessBlocks (ProductRegistry const &productRegistry, ProcessBlockHelperBase const &processBlockHelperBase)
 
ProductResolverIndexAndSkipBit uncheckedIndexFrom (EDGetToken) const
 
void updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet)
 
void updateLookup (eventsetup::ESRecordsToProxyIndices const &)
 
virtual ~EDConsumerBase () noexcept(false)
 

Private Member Functions

void copyToDB (const edm::EventSetup &evtSetup, const std::string &container)
 
bool shouldCopy (const edm::EventSetup &evtSetup, const std::string &container)
 

Private Attributes

edm::ESGetToken< Alignments,
EBAlignmentRcd
ebAlignmentToken_
 
edm::ESGetToken
< EcalADCToGeVConstant,
EcalADCToGeVConstantRcd
ecalADCtoGeVToken_
 
edm::ESGetToken
< EcalChannelStatus,
EcalChannelStatusRcd
ecalChannelStatusToken_
 
edm::ESGetToken
< EcalClusterCrackCorrParameters,
EcalClusterCrackCorrParametersRcd
ecalClusterCrackCorrParametersToken_
 
edm::ESGetToken
< EcalClusterEnergyCorrectionObjectSpecificParameters,
EcalClusterEnergyCorrectionObjectSpecificParametersRcd
ecalClusterEnergyCorrectionObjectSpecificParametersToken_
 
edm::ESGetToken
< EcalClusterEnergyCorrectionParameters,
EcalClusterEnergyCorrectionParametersRcd
ecalClusterEnergyCorrectionParametersToken_
 
edm::ESGetToken
< EcalClusterEnergyUncertaintyParameters,
EcalClusterEnergyUncertaintyParametersRcd
ecalClusterEnergyUncertaintyParametersToken_
 
edm::ESGetToken
< EcalClusterLocalContCorrParameters,
EcalClusterLocalContCorrParametersRcd
ecalClusterLocalContCorrParametersToken_
 
edm::ESGetToken
< EcalDAQTowerStatus,
EcalDAQTowerStatusRcd
ecalDAQTowerStatusToken_
 
edm::ESGetToken
< EcalDCSTowerStatus,
EcalDCSTowerStatusRcd
ecalDCSTowerStatusToken_
 
edm::ESGetToken
< EcalDQMChannelStatus,
EcalDQMChannelStatusRcd
ecalDQMChannelStatusToken_
 
edm::ESGetToken
< EcalDQMTowerStatus,
EcalDQMTowerStatusRcd
ecalDQMTowerStatusToken_
 
edm::ESGetToken
< EcalGainRatios,
EcalGainRatiosRcd
ecalGainRatiosToken_
 
edm::ESGetToken
< EcalIntercalibConstantsMC,
EcalIntercalibConstantsMCRcd
ecalIntercalibConstantsMCToken_
 
edm::ESGetToken
< EcalIntercalibConstants,
EcalIntercalibConstantsRcd
ecalIntercalibConstantsToken_
 
edm::ESGetToken
< EcalIntercalibErrors,
EcalIntercalibErrorsRcd
ecalIntercalibErrorsToken_
 
edm::ESGetToken
< EcalLaserAlphas,
EcalLaserAlphasRcd
ecalLaserAlphasToken_
 
edm::ESGetToken
< EcalLaserAPDPNRatiosRef,
EcalLaserAPDPNRatiosRefRcd
ecalLaserAPDPNRatiosRefToken_
 
edm::ESGetToken
< EcalLaserAPDPNRatios,
EcalLaserAPDPNRatiosRcd
ecalLaserAPDPNRatiosToken_
 
edm::ESGetToken
< EcalLinearCorrections,
EcalLinearCorrectionsRcd
ecalLinearCorrectionsToken_
 
edm::ESGetToken< EcalPedestals,
EcalPedestalsRcd
ecalPedestalToken_
 
edm::ESGetToken
< EcalPFRecHitThresholds,
EcalPFRecHitThresholdsRcd
ecalPFRecHitThresholdsToken_
 
edm::ESGetToken
< EcalSampleMask,
EcalSampleMaskRcd
ecalSampleMaskToken_
 
edm::ESGetToken
< EcalSamplesCorrelation,
EcalSamplesCorrelationRcd
ecalSamplesCorrelationToken_
 
edm::ESGetToken
< EcalSimPulseShape,
EcalSimPulseShapeRcd
ecalSimPulseShapeToken_
 
edm::ESGetToken< EcalTBWeights,
EcalTBWeightsRcd
ecalTBWeightsToken_
 
edm::ESGetToken
< EcalTimeBiasCorrections,
EcalTimeBiasCorrectionsRcd
ecalTimeBiasCorrectionsToken_
 
edm::ESGetToken
< EcalTimeCalibConstants,
EcalTimeCalibConstantsRcd
ecalTimeCalibToken_
 
edm::ESGetToken
< EcalTimeOffsetConstant,
EcalTimeOffsetConstantRcd
ecalTimeOffsetConstantToken_
 
edm::ESGetToken
< EcalTPGCrystalStatus,
EcalTPGCrystalStatusRcd
ecalTPGCrystalStatusToken_
 
edm::ESGetToken
< EcalTPGTowerStatus,
EcalTPGTowerStatusRcd
ecalTPGTowerStatusToken_
 
edm::ESGetToken
< EcalWeightXtalGroups,
EcalWeightXtalGroupsRcd
ecalWeightXtalGroupsToken_
 
edm::ESGetToken< Alignments,
EEAlignmentRcd
eeAlignmentToken_
 
edm::ESGetToken< Alignments,
ESAlignmentRcd
esAlignmentToken_
 
std::map< std::string,
unsigned long long > 
m_cacheIDs
 
std::map< std::string,
std::string > 
m_records
 
std::string m_timetype
 

Additional Inherited Members

- Public Types inherited from edm::one::EDAnalyzerBase
typedef EDAnalyzerBase ModuleType
 
- Public Types inherited from edm::EDConsumerBase
typedef ProductLabels Labels
 
- Static Public Member Functions inherited from edm::one::EDAnalyzerBase
static const std::string & baseType ()
 
static void fillDescriptions (ConfigurationDescriptions &descriptions)
 
static void prevalidate (ConfigurationDescriptions &descriptions)
 
- Protected Member Functions inherited from edm::EDConsumerBase
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > consumes (edm::InputTag const &tag)
 
template<BranchType B = InEvent>
EDConsumerBaseAdaptor< Bconsumes (edm::InputTag tag) noexcept
 
EDGetToken consumes (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken consumes (TypeToGet const &id, edm::InputTag const &tag)
 
ConsumesCollector consumesCollector ()
 Use a ConsumesCollector to gather consumes information from helper functions. More...
 
template<typename ProductType , BranchType B = InEvent>
void consumesMany ()
 
void consumesMany (const TypeToGet &id)
 
template<BranchType B>
void consumesMany (const TypeToGet &id)
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes ()
 
template<typename ESProduct , typename ESRecord , Transition Tr = Transition::Event>
auto esConsumes (ESInputTag const &tag)
 
template<Transition Tr = Transition::Event>
constexpr auto esConsumes ()
 
template<Transition Tr = Transition::Event>
auto esConsumes (ESInputTag tag)
 
template<Transition Tr = Transition::Event>
ESGetTokenGeneric esConsumes (eventsetup::EventSetupRecordKey const &iRecord, eventsetup::DataKey const &iKey)
 Used with EventSetupRecord::doGet. More...
 
template<typename ProductType , BranchType B = InEvent>
EDGetTokenT< ProductType > mayConsume (edm::InputTag const &tag)
 
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
template<BranchType B>
EDGetToken mayConsume (const TypeToGet &id, edm::InputTag const &tag)
 
void resetItemsToGetFrom (BranchType iType)
 

Detailed Description

Definition at line 86 of file EcalDBCopy.h.

Constructor & Destructor Documentation

EcalDBCopy::EcalDBCopy ( const edm::ParameterSet iConfig)
explicit

Definition at line 59 of file EcalDBCopy.cc.

References edm::ParameterSet::getParameter(), m_cacheIDs, m_records, GlobalPosition_Frontier_DevDB_cff::record, AlCaHLTBitMon_QueryRunRegistry::string, and copyEcalPFRecHitThresholds_cfg::toCopy.

60  : m_timetype(iConfig.getParameter<std::string>("timetype")),
61  m_cacheIDs(),
62  m_records(),
97  std::string container;
99  typedef std::vector<edm::ParameterSet> Parameters;
100  Parameters toCopy = iConfig.getParameter<Parameters>("toCopy");
101  for (auto& iparam : toCopy) {
102  container = iparam.getParameter<std::string>("container");
103  record = iparam.getParameter<std::string>("record");
104  m_cacheIDs.emplace(container, 0);
105  m_records.emplace(container, record);
106  }
107 }
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
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
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
vector< ParameterSet > Parameters
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
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
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
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
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
EcalDBCopy::~EcalDBCopy ( )
override

Definition at line 109 of file EcalDBCopy.cc.

109 {}

Member Function Documentation

void EcalDBCopy::analyze ( const edm::Event evt,
const edm::EventSetup evtSetup 
)
overridevirtual

Implements edm::one::EDAnalyzerBase.

Definition at line 111 of file EcalDBCopy.cc.

References copyToDB(), m_records, and shouldCopy().

111  {
112  for (const auto& irec : m_records) {
113  if (shouldCopy(evtSetup, irec.first)) {
114  copyToDB(evtSetup, irec.first);
115  }
116  }
117 }
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
bool shouldCopy(const edm::EventSetup &evtSetup, const std::string &container)
Definition: EcalDBCopy.cc:119
void EcalDBCopy::copyToDB ( const edm::EventSetup evtSetup,
const std::string &  container 
)
private

Definition at line 203 of file EcalDBCopy.cc.

References cond::service::PoolDBOutputService::beginOfTime(), filterCSVwithJSON::copy, cond::service::PoolDBOutputService::createOneIOV(), ebAlignmentToken_, EcalSamplesCorrelation::EBG12SamplesCorrelation, EcalSamplesCorrelation::EBG1SamplesCorrelation, EcalSamplesCorrelation::EBG6SamplesCorrelation, EcalTimeBiasCorrections::EBTimeCorrAmplitudeBins, EcalTimeBiasCorrections::EBTimeCorrShiftBins, ecalADCtoGeVToken_, ecalChannelStatusToken_, ecalClusterCrackCorrParametersToken_, ecalClusterEnergyCorrectionObjectSpecificParametersToken_, ecalClusterEnergyCorrectionParametersToken_, ecalClusterEnergyUncertaintyParametersToken_, ecalClusterLocalContCorrParametersToken_, ecalDAQTowerStatusToken_, ecalDCSTowerStatusToken_, ecalDQMChannelStatusToken_, ecalDQMTowerStatusToken_, ecalGainRatiosToken_, ecalIntercalibConstantsMCToken_, ecalIntercalibConstantsToken_, ecalIntercalibErrorsToken_, ecalLaserAlphasToken_, ecalLaserAPDPNRatiosRefToken_, ecalLaserAPDPNRatiosToken_, ecalLinearCorrectionsToken_, ecalPedestalToken_, ecalPFRecHitThresholdsToken_, ecalSampleMaskToken_, ecalSamplesCorrelationToken_, ecalSimPulseShapeToken_, ecalTBWeightsToken_, ecalTimeBiasCorrectionsToken_, ecalTimeCalibToken_, ecalTimeOffsetConstantToken_, ecalTPGCrystalStatusToken_, ecalTPGTowerStatusToken_, ecalWeightXtalGroupsToken_, eeAlignmentToken_, EcalSamplesCorrelation::EEG12SamplesCorrelation, EcalSamplesCorrelation::EEG1SamplesCorrelation, EcalSamplesCorrelation::EEG6SamplesCorrelation, EcalTimeBiasCorrections::EETimeCorrAmplitudeBins, EcalTimeBiasCorrections::EETimeCorrShiftBins, esAlignmentToken_, Exception, edm::EventSetup::getData(), edm::Service< T >::isAvailable(), m_records, getGTfromDQMFile::obj, align_cfg::recordName, AlCaHLTBitMon_QueryRunRegistry::string, and cond::service::PoolDBOutputService::writeOneIOV().

Referenced by analyze().

203  {
205  if (!dbOutput.isAvailable()) {
206  throw cms::Exception("PoolDBOutputService is not available");
207  }
208 
209  std::string recordName = m_records[container];
210 
211  if (container == "EcalPedestals") {
212  const auto& obj = evtSetup.getData(ecalPedestalToken_);
213  edm::LogInfo("EcalDBCopy") << "ped pointer is: " << &obj << std::endl;
214  dbOutput->createOneIOV<const EcalPedestals>(obj, dbOutput->beginOfTime(), recordName);
215 
216  } else if (container == "EcalADCToGeVConstant") {
217  const auto& obj = evtSetup.getData(ecalADCtoGeVToken_);
218  edm::LogInfo("EcalDBCopy") << "adc pointer is: " << &obj << std::endl;
219  dbOutput->createOneIOV<const EcalADCToGeVConstant>(obj, dbOutput->beginOfTime(), recordName);
220 
221  } else if (container == "EcalTimeCalibConstants") {
222  const auto& obj = evtSetup.getData(ecalTimeCalibToken_);
223  edm::LogInfo("EcalDBCopy") << "adc pointer is: " << &obj << std::endl;
224  dbOutput->createOneIOV<const EcalTimeCalibConstants>(obj, dbOutput->beginOfTime(), recordName);
225 
226  } else if (container == "EcalChannelStatus") {
227  const auto& obj = evtSetup.getData(ecalChannelStatusToken_);
228  edm::LogInfo("EcalDBCopy") << "channel status pointer is: " << &obj << std::endl;
229  dbOutput->createOneIOV<const EcalChannelStatus>(obj, dbOutput->beginOfTime(), recordName);
230 
231  } else if (container == "EcalDQMChannelStatus") {
232  const auto& obj = evtSetup.getData(ecalDQMChannelStatusToken_);
233  edm::LogInfo("EcalDBCopy") << "DQM channel status pointer is: " << &obj << std::endl;
234  dbOutput->createOneIOV<const EcalDQMChannelStatus>(obj, dbOutput->beginOfTime(), recordName);
235 
236  } else if (container == "EcalDQMTowerStatus") {
237  const auto& obj = evtSetup.getData(ecalDQMTowerStatusToken_);
238  edm::LogInfo("EcalDBCopy") << "DQM Tower status pointer is: " << &obj << std::endl;
239  dbOutput->createOneIOV<const EcalDQMTowerStatus>(obj, dbOutput->beginOfTime(), recordName);
240 
241  } else if (container == "EcalDCSTowerStatus") {
242  const auto& obj = evtSetup.getData(ecalDCSTowerStatusToken_);
243  edm::LogInfo("EcalDBCopy") << "channel status pointer is: " << &obj << std::endl;
244  dbOutput->createOneIOV<const EcalDCSTowerStatus>(obj, dbOutput->beginOfTime(), recordName);
245 
246  } else if (container == "EcalDAQTowerStatus") {
247  const auto& obj = evtSetup.getData(ecalDAQTowerStatusToken_);
248  edm::LogInfo("EcalDBCopy") << "DAQ channel status pointer is: " << &obj << std::endl;
249  dbOutput->createOneIOV<const EcalDAQTowerStatus>(obj, dbOutput->beginOfTime(), recordName);
250 
251  } else if (container == "EcalTPGCrystalStatus") {
252  const auto& obj = evtSetup.getData(ecalTPGCrystalStatusToken_);
253  edm::LogInfo("EcalDBCopy") << "TPG channel status pointer is: " << &obj << std::endl;
254  dbOutput->createOneIOV<const EcalTPGCrystalStatus>(obj, dbOutput->beginOfTime(), recordName);
255 
256  } else if (container == "EcalTPGTowerStatus") {
257  const auto& obj = evtSetup.getData(ecalTPGTowerStatusToken_);
258  edm::LogInfo("EcalDBCopy") << "TPG tower status pointer is: " << &obj << std::endl;
259  dbOutput->createOneIOV<const EcalTPGTowerStatus>(obj, dbOutput->beginOfTime(), recordName);
260 
261  } else if (container == "EcalIntercalibConstants") {
262  const auto& obj = evtSetup.getData(ecalIntercalibConstantsToken_);
263  edm::LogInfo("EcalDBCopy") << "inter pointer is: " << &obj << std::endl;
264  dbOutput->createOneIOV<const EcalIntercalibConstants>(obj, dbOutput->beginOfTime(), recordName);
265 
266  } else if (container == "EcalLinearCorrections") {
267  const auto& obj = evtSetup.getData(ecalLinearCorrectionsToken_);
268  edm::LogInfo("EcalDBCopy") << "inter pointer is: " << &obj << std::endl;
269  dbOutput->createOneIOV<const EcalLinearCorrections>(obj, dbOutput->beginOfTime(), recordName);
270 
271  } else if (container == "EcalIntercalibConstantsMC") {
272  const auto& obj = evtSetup.getData(ecalIntercalibConstantsMCToken_);
273  edm::LogInfo("EcalDBCopy") << "intercalib MC pointer is: " << &obj << std::endl;
274  dbOutput->createOneIOV<const EcalIntercalibConstantsMC>(obj, dbOutput->beginOfTime(), recordName);
275 
276  } else if (container == "EcalIntercalibErrors") {
277  const auto& obj = evtSetup.getData(ecalIntercalibErrorsToken_);
278  edm::LogInfo("EcalDBCopy") << "inter pointer is: " << &obj << std::endl;
279  dbOutput->createOneIOV<const EcalIntercalibErrors>(obj, dbOutput->beginOfTime(), recordName);
280 
281  } else if (container == "EcalGainRatios") {
282  const auto& obj = evtSetup.getData(ecalGainRatiosToken_);
283  edm::LogInfo("EcalDBCopy") << "gain pointer is: " << &obj << std::endl;
284  dbOutput->createOneIOV<const EcalGainRatios>(obj, dbOutput->beginOfTime(), recordName);
285 
286  } else if (container == "EcalWeightXtalGroups") {
287  const auto& obj = evtSetup.getData(ecalWeightXtalGroupsToken_);
288  edm::LogInfo("EcalDBCopy") << "weight pointer is: " << &obj << std::endl;
289  dbOutput->createOneIOV<const EcalWeightXtalGroups>(obj, dbOutput->beginOfTime(), recordName);
290 
291  } else if (container == "EcalTBWeights") {
292  const auto& obj = evtSetup.getData(ecalTBWeightsToken_);
293  edm::LogInfo("EcalDBCopy") << "tbweight pointer is: " << &obj << std::endl;
294  dbOutput->createOneIOV<const EcalTBWeights>(obj, dbOutput->beginOfTime(), recordName);
295 
296  } else if (container == "EcalLaserAlphas") {
297  const auto& obj = evtSetup.getData(ecalLaserAlphasToken_);
298  edm::LogInfo("EcalDBCopy") << "ecalLaserAlpha pointer is: " << &obj << std::endl;
299  dbOutput->createOneIOV<const EcalLaserAlphas>(obj, dbOutput->beginOfTime(), recordName);
300 
301  } else if (container == "EcalLaserAPDPNRatios") {
302  const auto& obj = evtSetup.getData(ecalLaserAPDPNRatiosToken_);
303  edm::LogInfo("EcalDBCopy") << "tbweight pointer is: " << &obj << std::endl;
304  dbOutput->createOneIOV<const EcalLaserAPDPNRatios>(obj, dbOutput->beginOfTime(), recordName);
305 
306  } else if (container == "EcalLaserAPDPNRatiosRef") {
307  const auto& obj = evtSetup.getData(ecalLaserAPDPNRatiosRefToken_);
308  edm::LogInfo("EcalDBCopy") << "tbweight pointer is: " << &obj << std::endl;
309  dbOutput->createOneIOV<const EcalLaserAPDPNRatiosRef>(obj, dbOutput->beginOfTime(), recordName);
310 
311  } else if (container == "EcalClusterCrackCorrParameters") {
312  const auto& obj = evtSetup.getData(ecalClusterCrackCorrParametersToken_);
313  edm::LogInfo("EcalDBCopy") << "cluster crack pointer is: " << &obj << std::endl;
314  dbOutput->createOneIOV<const EcalClusterCrackCorrParameters>(obj, dbOutput->beginOfTime(), recordName);
315 
316  } else if (container == "EcalPFRecHitThresholds") {
317  const auto& obj = evtSetup.getData(ecalPFRecHitThresholdsToken_);
318  edm::LogInfo("EcalDBCopy") << "Ecal PF rec hit thresholds pointer is: " << &obj << std::endl;
319  dbOutput->createOneIOV<const EcalPFRecHitThresholds>(obj, dbOutput->beginOfTime(), recordName);
320 
321  } else if (container == "EcalClusterEnergyUncertaintyParameters") {
322  const auto& obj = evtSetup.getData(ecalClusterEnergyUncertaintyParametersToken_);
323  edm::LogInfo("EcalDBCopy") << "tbweight pointer is: " << &obj << std::endl;
325 
326  } else if (container == "EcalClusterEnergyCorrectionParameters") {
327  const auto& obj = evtSetup.getData(ecalClusterEnergyCorrectionParametersToken_);
328  edm::LogInfo("EcalDBCopy") << "tbweight pointer is: " << &obj << std::endl;
330 
331  } else if (container == "EcalClusterEnergyCorrectionObjectSpecificParameters") {
333  edm::LogInfo("EcalDBCopy") << "tbweight pointer is: " << &obj << std::endl;
335  obj, dbOutput->beginOfTime(), recordName);
336 
337  } else if (container == "EcalClusterLocalContCorrParameters") {
338  const auto& obj = evtSetup.getData(ecalClusterLocalContCorrParametersToken_);
339  edm::LogInfo("EcalDBCopy") << "tbweight pointer is: " << &obj << std::endl;
341 
342  } else if (container == "EBAlignment") {
343  const auto& obj = evtSetup.getData(ebAlignmentToken_);
344  edm::LogInfo("EcalDBCopy") << "EB alignment pointer is: " << &obj << std::endl;
345  dbOutput->createOneIOV<const Alignments>(obj, dbOutput->beginOfTime(), recordName);
346 
347  } else if (container == "EEAlignment") {
348  const auto& obj = evtSetup.getData(eeAlignmentToken_);
349  edm::LogInfo("EcalDBCopy") << "EE alignment pointer is: " << &obj << std::endl;
350  dbOutput->createOneIOV<const Alignments>(obj, dbOutput->beginOfTime(), recordName);
351 
352  } else if (container == "ESAlignment") {
353  const auto& obj = evtSetup.getData(esAlignmentToken_);
354  edm::LogInfo("EcalDBCopy") << "ES alignment pointer is: " << &obj << std::endl;
355  dbOutput->createOneIOV<const Alignments>(obj, dbOutput->beginOfTime(), recordName);
356 
357  } else if (container == "EcalTimeOffsetConstant") {
358  const auto& obj = evtSetup.getData(ecalTimeOffsetConstantToken_);
359  edm::LogInfo("EcalDBCopy") << "TimeOffset pointer is: " << &obj << std::endl;
360  dbOutput->createOneIOV<const EcalTimeOffsetConstant>(obj, dbOutput->beginOfTime(), recordName);
361 
362  } else if (container == "EcalSampleMask") {
363  const auto& obj = evtSetup.getData(ecalSampleMaskToken_);
364  edm::LogInfo("EcalDBCopy") << "sample mask pointer is: " << &obj << std::endl;
365  dbOutput->createOneIOV<const EcalSampleMask>(obj, dbOutput->beginOfTime(), recordName);
366 
367  } else if (container == "EcalSimPulseShape") {
368  const auto& obj = evtSetup.getData(ecalSimPulseShapeToken_);
369  dbOutput->createOneIOV<const EcalSimPulseShape>(obj, dbOutput->beginOfTime(), recordName);
370 
371  } else if (container == "EcalTimeBiasCorrections") {
372  const auto& obj = evtSetup.getData(ecalTimeBiasCorrectionsToken_);
373  edm::LogInfo("EcalDBCopy") << "TimeBiasCorrections pointer is: " << &obj << std::endl;
375  std::vector<float> vect = obj.EBTimeCorrAmplitudeBins;
376  copy(vect.begin(), vect.end(), back_inserter(bias_.EBTimeCorrAmplitudeBins));
377  vect = obj.EBTimeCorrShiftBins;
378  copy(vect.begin(), vect.end(), back_inserter(bias_.EBTimeCorrShiftBins));
379  vect = obj.EETimeCorrAmplitudeBins;
380  copy(vect.begin(), vect.end(), back_inserter(bias_.EETimeCorrAmplitudeBins));
381  vect = obj.EETimeCorrShiftBins;
382  copy(vect.begin(), vect.end(), back_inserter(bias_.EETimeCorrShiftBins));
383  dbOutput->writeOneIOV(bias_, dbOutput->beginOfTime(), "EcalTimeBiasCorrectionsRcd");
384 
385  } else if (container == "EcalSamplesCorrelation") {
386  const auto& obj = evtSetup.getData(ecalSamplesCorrelationToken_);
387  edm::LogInfo("EcalDBCopy") << "SamplesCorrelation pointer is: " << &obj << std::endl;
388  EcalSamplesCorrelation correl_;
389  std::vector<double> vect = obj.EBG12SamplesCorrelation;
390  copy(vect.begin(), vect.end(), back_inserter(correl_.EBG12SamplesCorrelation));
391  vect = obj.EBG6SamplesCorrelation;
392  copy(vect.begin(), vect.end(), back_inserter(correl_.EBG6SamplesCorrelation));
393  vect = obj.EBG1SamplesCorrelation;
394  copy(vect.begin(), vect.end(), back_inserter(correl_.EBG1SamplesCorrelation));
395  vect = obj.EEG12SamplesCorrelation;
396  copy(vect.begin(), vect.end(), back_inserter(correl_.EEG12SamplesCorrelation));
397  vect = obj.EEG6SamplesCorrelation;
398  copy(vect.begin(), vect.end(), back_inserter(correl_.EEG6SamplesCorrelation));
399  vect = obj.EEG1SamplesCorrelation;
400  copy(vect.begin(), vect.end(), back_inserter(correl_.EEG1SamplesCorrelation));
401  dbOutput->writeOneIOV(correl_, dbOutput->beginOfTime(), "EcalSamplesCorrelationRcd");
402 
403  } else {
404  throw cms::Exception("Unknown container");
405  }
406 
407  edm::LogInfo("EcalDBCopy") << "EcalDBCopy wrote " << recordName << std::endl;
408 }
edm::ESGetToken< EcalDQMTowerStatus, EcalDQMTowerStatusRcd > ecalDQMTowerStatusToken_
Definition: EcalDBCopy.h:105
edm::ESGetToken< EcalIntercalibConstants, EcalIntercalibConstantsRcd > ecalIntercalibConstantsToken_
Definition: EcalDBCopy.h:110
std::vector< float > EBTimeCorrShiftBins
edm::ESGetToken< EcalTBWeights, EcalTBWeightsRcd > ecalTBWeightsToken_
Definition: EcalDBCopy.h:116
edm::ESGetToken< EcalLaserAlphas, EcalLaserAlphasRcd > ecalLaserAlphasToken_
Definition: EcalDBCopy.h:117
std::map< std::string, std::string > m_records
Definition: EcalDBCopy.h:99
edm::ESGetToken< EcalIntercalibErrors, EcalIntercalibErrorsRcd > ecalIntercalibErrorsToken_
Definition: EcalDBCopy.h:113
std::vector< double > EBG12SamplesCorrelation
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
edm::ESGetToken< EcalTimeBiasCorrections, EcalTimeBiasCorrectionsRcd > ecalTimeBiasCorrectionsToken_
Definition: EcalDBCopy.h:138
tuple recordName
Definition: align_cfg.py:66
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
void createOneIOV(const T &payload, cond::Time_t firstSinceTime, const std::string &recordName)
std::vector< double > EBG6SamplesCorrelation
std::vector< float > EBTimeCorrAmplitudeBins
bool getData(T &iHolder) const
Definition: EventSetup.h:122
std::vector< float > EETimeCorrShiftBins
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
std::vector< float > EETimeCorrAmplitudeBins
edm::ESGetToken< EcalClusterEnergyUncertaintyParameters, EcalClusterEnergyUncertaintyParametersRcd > ecalClusterEnergyUncertaintyParametersToken_
Definition: EcalDBCopy.h:124
bool isAvailable() const
Definition: Service.h:40
Hash writeOneIOV(const T &payload, Time_t time, const std::string &recordName)
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
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
Log< level::Info, false > LogInfo
edm::ESGetToken< EcalLaserAPDPNRatios, EcalLaserAPDPNRatiosRcd > ecalLaserAPDPNRatiosToken_
Definition: EcalDBCopy.h:118
edm::ESGetToken< EcalClusterCrackCorrParameters, EcalClusterCrackCorrParametersRcd > ecalClusterCrackCorrParametersToken_
Definition: EcalDBCopy.h:121
std::vector< double > EBG1SamplesCorrelation
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
std::vector< double > EEG1SamplesCorrelation
std::vector< double > EEG12SamplesCorrelation
edm::ESGetToken< EcalTPGCrystalStatus, EcalTPGCrystalStatusRcd > ecalTPGCrystalStatusToken_
Definition: EcalDBCopy.h:108
std::vector< double > EEG6SamplesCorrelation
edm::ESGetToken< EcalIntercalibConstantsMC, EcalIntercalibConstantsMCRcd > ecalIntercalibConstantsMCToken_
Definition: EcalDBCopy.h:112
bool EcalDBCopy::shouldCopy ( const edm::EventSetup evtSetup,
const std::string &  container 
)
private

Definition at line 119 of file EcalDBCopy.cc.

References Exception, edm::EventSetup::get(), and m_cacheIDs.

Referenced by analyze().

119  {
120  unsigned long long cacheID = 0;
121  if (container == "EcalPedestals") {
122  cacheID = evtSetup.get<EcalPedestalsRcd>().cacheIdentifier();
123  } else if (container == "EcalADCToGeVConstant") {
124  cacheID = evtSetup.get<EcalADCToGeVConstantRcd>().cacheIdentifier();
125  } else if (container == "EcalLinearCorrections") {
126  cacheID = evtSetup.get<EcalLinearCorrectionsRcd>().cacheIdentifier();
127  } else if (container == "EcalIntercalibConstants") {
128  cacheID = evtSetup.get<EcalIntercalibConstantsRcd>().cacheIdentifier();
129  } else if (container == "EcalIntercalibConstantsMC") {
130  cacheID = evtSetup.get<EcalIntercalibConstantsMCRcd>().cacheIdentifier();
131  } else if (container == "EcalIntercalibErrors") {
132  cacheID = evtSetup.get<EcalIntercalibErrorsRcd>().cacheIdentifier();
133  } else if (container == "EcalGainRatios") {
134  cacheID = evtSetup.get<EcalGainRatiosRcd>().cacheIdentifier();
135  } else if (container == "EcalWeightXtalGroups") {
136  cacheID = evtSetup.get<EcalWeightXtalGroupsRcd>().cacheIdentifier();
137  } else if (container == "EcalTBWeights") {
138  cacheID = evtSetup.get<EcalTBWeightsRcd>().cacheIdentifier();
139  } else if (container == "EcalLaserAPDPNRatios") {
140  cacheID = evtSetup.get<EcalLaserAPDPNRatiosRcd>().cacheIdentifier();
141  } else if (container == "EcalLaserAPDPNRatiosRef") {
142  cacheID = evtSetup.get<EcalTBWeightsRcd>().cacheIdentifier();
143  } else if (container == "EcalLaserAlphas") {
144  cacheID = evtSetup.get<EcalTBWeightsRcd>().cacheIdentifier();
145  } else if (container == "EcalChannelStatus") {
146  cacheID = evtSetup.get<EcalChannelStatusRcd>().cacheIdentifier();
147  } else if (container == "EcalDQMTowerStatus") {
148  cacheID = evtSetup.get<EcalDQMTowerStatusRcd>().cacheIdentifier();
149  } else if (container == "EcalDQMChannelStatus") {
150  cacheID = evtSetup.get<EcalDQMChannelStatusRcd>().cacheIdentifier();
151  } else if (container == "EcalDCSTowerStatus") {
152  cacheID = evtSetup.get<EcalDCSTowerStatusRcd>().cacheIdentifier();
153  } else if (container == "EcalDAQTowerStatus") {
154  cacheID = evtSetup.get<EcalDAQTowerStatusRcd>().cacheIdentifier();
155  } else if (container == "EcalTimeCalibConstants") {
156  cacheID = evtSetup.get<EcalTimeCalibConstantsRcd>().cacheIdentifier();
157  } else if (container == "EcalClusterCrackCorrParameters") {
158  cacheID = evtSetup.get<EcalClusterCrackCorrParametersRcd>().cacheIdentifier();
159  } else if (container == "EcalPFRecHitThresholds") {
160  cacheID = evtSetup.get<EcalPFRecHitThresholdsRcd>().cacheIdentifier();
161  } else if (container == "EcalClusterEnergyUncertaintyParameters") {
162  cacheID = evtSetup.get<EcalClusterEnergyUncertaintyParametersRcd>().cacheIdentifier();
163  } else if (container == "EcalClusterEnergyCorrectionParameters") {
164  cacheID = evtSetup.get<EcalClusterEnergyCorrectionParametersRcd>().cacheIdentifier();
165  } else if (container == "EcalClusterEnergyCorrectionObjectSpecificParameters") {
166  cacheID = evtSetup.get<EcalClusterEnergyCorrectionObjectSpecificParametersRcd>().cacheIdentifier();
167  } else if (container == "EcalClusterLocalContCorrParameters") {
168  cacheID = evtSetup.get<EcalClusterLocalContCorrParametersRcd>().cacheIdentifier();
169  } else if (container == "EcalTPGCrystalStatus") {
170  cacheID = evtSetup.get<EcalTPGCrystalStatusRcd>().cacheIdentifier();
171  } else if (container == "EcalTPGTowerStatus") {
172  cacheID = evtSetup.get<EcalTPGTowerStatusRcd>().cacheIdentifier();
173  } else if (container == "EBAlignment") {
174  cacheID = evtSetup.get<EBAlignmentRcd>().cacheIdentifier();
175  } else if (container == "EEAlignment") {
176  cacheID = evtSetup.get<EEAlignmentRcd>().cacheIdentifier();
177  } else if (container == "ESAlignment") {
178  cacheID = evtSetup.get<ESAlignmentRcd>().cacheIdentifier();
179  } else if (container == "EcalTimeOffsetConstant") {
180  cacheID = evtSetup.get<EcalTimeOffsetConstantRcd>().cacheIdentifier();
181  } else if (container == "EcalSampleMask") {
182  cacheID = evtSetup.get<EcalSampleMaskRcd>().cacheIdentifier();
183  } else if (container == "EcalTimeBiasCorrections") {
184  cacheID = evtSetup.get<EcalTimeBiasCorrectionsRcd>().cacheIdentifier();
185  } else if (container == "EcalSimPulseShape") {
186  cacheID = evtSetup.get<EcalSimPulseShapeRcd>().cacheIdentifier();
187  } else if (container == "EcalSamplesCorrelation") {
188  cacheID = evtSetup.get<EcalSamplesCorrelationRcd>().cacheIdentifier();
189  }
190 
191  else {
192  throw cms::Exception("Unknown container");
193  }
194 
195  if (m_cacheIDs[container] == cacheID) {
196  return false;
197  } else {
198  m_cacheIDs[container] = cacheID;
199  return true;
200  }
201 }
T get() const
Definition: EventSetup.h:82
std::map< std::string, unsigned long long > m_cacheIDs
Definition: EcalDBCopy.h:98

Member Data Documentation

edm::ESGetToken<Alignments, EBAlignmentRcd> EcalDBCopy::ebAlignmentToken_
private

Definition at line 132 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalADCToGeVConstant, EcalADCToGeVConstantRcd> EcalDBCopy::ecalADCtoGeVToken_
private

Definition at line 101 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalChannelStatus, EcalChannelStatusRcd> EcalDBCopy::ecalChannelStatusToken_
private

Definition at line 103 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalClusterCrackCorrParameters, EcalClusterCrackCorrParametersRcd> EcalDBCopy::ecalClusterCrackCorrParametersToken_
private

Definition at line 121 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalClusterEnergyCorrectionObjectSpecificParameters, EcalClusterEnergyCorrectionObjectSpecificParametersRcd> EcalDBCopy::ecalClusterEnergyCorrectionObjectSpecificParametersToken_
private

Definition at line 129 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalClusterEnergyCorrectionParameters, EcalClusterEnergyCorrectionParametersRcd> EcalDBCopy::ecalClusterEnergyCorrectionParametersToken_
private

Definition at line 126 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalClusterEnergyUncertaintyParameters, EcalClusterEnergyUncertaintyParametersRcd> EcalDBCopy::ecalClusterEnergyUncertaintyParametersToken_
private

Definition at line 124 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalClusterLocalContCorrParameters, EcalClusterLocalContCorrParametersRcd> EcalDBCopy::ecalClusterLocalContCorrParametersToken_
private

Definition at line 131 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalDAQTowerStatus, EcalDAQTowerStatusRcd> EcalDBCopy::ecalDAQTowerStatusToken_
private

Definition at line 107 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalDCSTowerStatus, EcalDCSTowerStatusRcd> EcalDBCopy::ecalDCSTowerStatusToken_
private

Definition at line 106 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalDQMChannelStatus, EcalDQMChannelStatusRcd> EcalDBCopy::ecalDQMChannelStatusToken_
private

Definition at line 104 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalDQMTowerStatus, EcalDQMTowerStatusRcd> EcalDBCopy::ecalDQMTowerStatusToken_
private

Definition at line 105 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalGainRatios, EcalGainRatiosRcd> EcalDBCopy::ecalGainRatiosToken_
private

Definition at line 114 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalIntercalibConstantsMC, EcalIntercalibConstantsMCRcd> EcalDBCopy::ecalIntercalibConstantsMCToken_
private

Definition at line 112 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalIntercalibConstants, EcalIntercalibConstantsRcd> EcalDBCopy::ecalIntercalibConstantsToken_
private

Definition at line 110 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalIntercalibErrors, EcalIntercalibErrorsRcd> EcalDBCopy::ecalIntercalibErrorsToken_
private

Definition at line 113 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalLaserAlphas, EcalLaserAlphasRcd> EcalDBCopy::ecalLaserAlphasToken_
private

Definition at line 117 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalLaserAPDPNRatiosRef, EcalLaserAPDPNRatiosRefRcd> EcalDBCopy::ecalLaserAPDPNRatiosRefToken_
private

Definition at line 119 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalLaserAPDPNRatios, EcalLaserAPDPNRatiosRcd> EcalDBCopy::ecalLaserAPDPNRatiosToken_
private

Definition at line 118 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalLinearCorrections, EcalLinearCorrectionsRcd> EcalDBCopy::ecalLinearCorrectionsToken_
private

Definition at line 111 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalPedestals, EcalPedestalsRcd> EcalDBCopy::ecalPedestalToken_
private

Definition at line 100 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalPFRecHitThresholds, EcalPFRecHitThresholdsRcd> EcalDBCopy::ecalPFRecHitThresholdsToken_
private

Definition at line 122 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalSampleMask, EcalSampleMaskRcd> EcalDBCopy::ecalSampleMaskToken_
private

Definition at line 136 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalSamplesCorrelation, EcalSamplesCorrelationRcd> EcalDBCopy::ecalSamplesCorrelationToken_
private

Definition at line 139 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalSimPulseShape, EcalSimPulseShapeRcd> EcalDBCopy::ecalSimPulseShapeToken_
private

Definition at line 137 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalTBWeights, EcalTBWeightsRcd> EcalDBCopy::ecalTBWeightsToken_
private

Definition at line 116 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalTimeBiasCorrections, EcalTimeBiasCorrectionsRcd> EcalDBCopy::ecalTimeBiasCorrectionsToken_
private

Definition at line 138 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalTimeCalibConstants, EcalTimeCalibConstantsRcd> EcalDBCopy::ecalTimeCalibToken_
private

Definition at line 102 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalTimeOffsetConstant, EcalTimeOffsetConstantRcd> EcalDBCopy::ecalTimeOffsetConstantToken_
private

Definition at line 135 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalTPGCrystalStatus, EcalTPGCrystalStatusRcd> EcalDBCopy::ecalTPGCrystalStatusToken_
private

Definition at line 108 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalTPGTowerStatus, EcalTPGTowerStatusRcd> EcalDBCopy::ecalTPGTowerStatusToken_
private

Definition at line 109 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<EcalWeightXtalGroups, EcalWeightXtalGroupsRcd> EcalDBCopy::ecalWeightXtalGroupsToken_
private

Definition at line 115 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<Alignments, EEAlignmentRcd> EcalDBCopy::eeAlignmentToken_
private

Definition at line 133 of file EcalDBCopy.h.

Referenced by copyToDB().

edm::ESGetToken<Alignments, ESAlignmentRcd> EcalDBCopy::esAlignmentToken_
private

Definition at line 134 of file EcalDBCopy.h.

Referenced by copyToDB().

std::map<std::string, unsigned long long> EcalDBCopy::m_cacheIDs
private

Definition at line 98 of file EcalDBCopy.h.

Referenced by EcalDBCopy(), and shouldCopy().

std::map<std::string, std::string> EcalDBCopy::m_records
private

Definition at line 99 of file EcalDBCopy.h.

Referenced by analyze(), copyToDB(), and EcalDBCopy().

std::string EcalDBCopy::m_timetype
private

Definition at line 97 of file EcalDBCopy.h.