|
|
#include <EcalDBCopy.h>
|
void | analyze (const edm::Event &evt, const edm::EventSetup &evtSetup) override |
|
| EcalDBCopy (const edm::ParameterSet &iConfig) |
|
| ~EcalDBCopy () override |
|
void | callWhenNewProductsRegistered (std::function< void(BranchDescription const &)> const &func) |
|
| EDAnalyzer () |
|
SerialTaskQueue * | globalLuminosityBlocksQueue () |
|
SerialTaskQueue * | globalRunsQueue () |
|
ModuleDescription const & | moduleDescription () const |
|
std::string | workerType () const |
|
| ~EDAnalyzer () override |
|
std::vector< ConsumesInfo > | consumesInfo () const |
|
void | convertCurrentProcessAlias (std::string const &processName) |
| Convert "@currentProcess" in InputTag process names to the actual current process name. More...
|
|
| EDConsumerBase () |
|
| EDConsumerBase (EDConsumerBase &&)=default |
|
| EDConsumerBase (EDConsumerBase const &)=delete |
|
ESProxyIndex const * | esGetTokenIndices (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::vector< ModuleDescription const * > &modules, ProductRegistry const &preg, std::map< std::string, ModuleDescription const * > const &labelsToDesc, std::string const &processName) const |
|
EDConsumerBase & | operator= (EDConsumerBase &&)=default |
|
EDConsumerBase const & | operator= (EDConsumerBase const &)=delete |
|
bool | registeredToConsume (ProductResolverIndex, bool, BranchType) const |
|
bool | registeredToConsumeMany (TypeID const &, BranchType) const |
|
ProductResolverIndexAndSkipBit | uncheckedIndexFrom (EDGetToken) const |
|
void | updateLookup (BranchType iBranchType, ProductResolverIndexHelper const &, bool iPrefetchMayGet) |
|
void | updateLookup (eventsetup::ESRecordsToProxyIndices const &) |
|
virtual | ~EDConsumerBase () noexcept(false) |
|
|
typedef EDAnalyzer | ModuleType |
|
typedef ProductLabels | Labels |
|
static const std::string & | baseType () |
|
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
|
static void | prevalidate (ConfigurationDescriptions &) |
|
static bool | wantsGlobalLuminosityBlocks () |
|
static bool | wantsGlobalRuns () |
|
static bool | wantsStreamLuminosityBlocks () |
|
static bool | wantsStreamRuns () |
|
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | consumes (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) |
|
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<BranchType B> |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
|
template<typename ProductType , BranchType B = InEvent> |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
|
Definition at line 18 of file EcalDBCopy.h.
◆ EcalDBCopy()
◆ ~EcalDBCopy()
EcalDBCopy::~EcalDBCopy |
( |
| ) |
|
|
override |
◆ analyze()
◆ copyToDB()
void EcalDBCopy::copyToDB |
( |
const edm::EventSetup & |
evtSetup, |
|
|
std::string |
container |
|
) |
| |
|
private |
Definition at line 202 of file EcalDBCopy.cc.
210 if (container ==
"EcalPedestals") {
218 }
else if (container ==
"EcalADCToGeVConstant") {
227 }
else if (container ==
"EcalTimeCalibConstants") {
236 }
else if (container ==
"EcalChannelStatus") {
240 std::cout <<
"channel status pointer is: " <<
obj << std::endl;
245 }
else if (container ==
"EcalDQMChannelStatus") {
249 std::cout <<
"DQM channel status pointer is: " <<
obj << std::endl;
253 }
else if (container ==
"EcalDQMTowerStatus") {
257 std::cout <<
"DQM Tower status pointer is: " <<
obj << std::endl;
261 }
else if (container ==
"EcalDCSTowerStatus") {
265 std::cout <<
"channel status pointer is: " <<
obj << std::endl;
270 }
else if (container ==
"EcalDAQTowerStatus") {
274 std::cout <<
"DAQ channel status pointer is: " <<
obj << std::endl;
279 }
else if (container ==
"EcalTPGCrystalStatus") {
283 std::cout <<
"TPG channel status pointer is: " <<
obj << std::endl;
288 }
else if (container ==
"EcalTPGTowerStatus") {
292 std::cout <<
"TPG tower status pointer is: " <<
obj << std::endl;
297 }
else if (container ==
"EcalIntercalibConstants") {
305 }
else if (container ==
"EcalLinearCorrections") {
313 }
else if (container ==
"EcalIntercalibConstantsMC") {
317 std::cout <<
"intercalib MC pointer is: " <<
obj << std::endl;
321 }
else if (container ==
"EcalIntercalibErrors") {
329 }
else if (container ==
"EcalGainRatios") {
337 }
else if (container ==
"EcalWeightXtalGroups") {
345 }
else if (container ==
"EcalTBWeights") {
349 std::cout <<
"tbweight pointer is: " <<
obj << std::endl;
353 }
else if (container ==
"EcalLaserAlphas") {
357 std::cout <<
"ecalLaserAlpha pointer is: " <<
obj << std::endl;
361 }
else if (container ==
"EcalLaserAPDPNRatios") {
365 std::cout <<
"tbweight pointer is: " <<
obj << std::endl;
369 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
373 std::cout <<
"tbweight pointer is: " <<
obj << std::endl;
377 }
else if (container ==
"EcalClusterCrackCorrParameters") {
381 std::cout <<
"cluster crack pointer is: " <<
obj << std::endl;
385 }
else if (container ==
"EcalPFRecHitThresholds") {
389 std::cout <<
"Ecal PF rec hit thresholds pointer is: " <<
obj << std::endl;
393 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
397 std::cout <<
"tbweight pointer is: " <<
obj << std::endl;
401 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
405 std::cout <<
"tbweight pointer is: " <<
obj << std::endl;
409 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
413 std::cout <<
"tbweight pointer is: " <<
obj << std::endl;
420 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
424 std::cout <<
"tbweight pointer is: " <<
obj << std::endl;
428 }
else if (container ==
"EBAlignment") {
432 std::cout <<
"EB alignment pointer is: " <<
obj << std::endl;
436 }
else if (container ==
"EEAlignment") {
440 std::cout <<
"EE alignment pointer is: " <<
obj << std::endl;
444 }
else if (container ==
"ESAlignment") {
448 std::cout <<
"ES alignment pointer is: " <<
obj << std::endl;
452 }
else if (container ==
"EcalTimeOffsetConstant") {
456 std::cout <<
"TimeOffset pointer is: " <<
obj << std::endl;
460 }
else if (container ==
"EcalSampleMask") {
464 std::cout <<
"sample mask pointer is: " <<
obj << std::endl;
468 }
else if (container ==
"EcalSimPulseShape") {
475 }
else if (container ==
"EcalTimeBiasCorrections") {
479 std::cout <<
"TimeBiasCorrections pointer is: " <<
obj << std::endl;
482 std::vector<float> vect =
obj->EBTimeCorrAmplitudeBins;
484 vect =
obj->EBTimeCorrShiftBins;
486 vect =
obj->EETimeCorrAmplitudeBins;
488 vect =
obj->EETimeCorrShiftBins;
492 }
else if (container ==
"EcalSamplesCorrelation") {
496 std::cout <<
"SamplesCorrelation pointer is: " <<
obj << std::endl;
499 std::vector<double> vect =
obj->EBG12SamplesCorrelation;
501 vect =
obj->EBG6SamplesCorrelation;
503 vect =
obj->EBG1SamplesCorrelation;
505 vect =
obj->EEG12SamplesCorrelation;
507 vect =
obj->EEG6SamplesCorrelation;
509 vect =
obj->EEG1SamplesCorrelation;
References cond::service::PoolDBOutputService::beginOfTime(), filterCSVwithJSON::copy, gather_cfg::cout, cond::service::PoolDBOutputService::createNewIOV(), EcalSamplesCorrelation::EBG12SamplesCorrelation, EcalSamplesCorrelation::EBG1SamplesCorrelation, EcalSamplesCorrelation::EBG6SamplesCorrelation, EcalTimeBiasCorrections::EBTimeCorrAmplitudeBins, EcalTimeBiasCorrections::EBTimeCorrShiftBins, EcalSamplesCorrelation::EEG12SamplesCorrelation, EcalSamplesCorrelation::EEG1SamplesCorrelation, EcalSamplesCorrelation::EEG6SamplesCorrelation, EcalTimeBiasCorrections::EETimeCorrAmplitudeBins, EcalTimeBiasCorrections::EETimeCorrShiftBins, cond::service::PoolDBOutputService::endOfTime(), Exception, edm::EventSetup::get(), get, patZpeak::handle, edm::Service< T >::isAvailable(), m_records, getGTfromDQMFile::obj, align_cfg::recordName, AlCaHLTBitMon_QueryRunRegistry::string, and cond::service::PoolDBOutputService::writeOne().
Referenced by analyze().
◆ shouldCopy()
bool EcalDBCopy::shouldCopy |
( |
const edm::EventSetup & |
evtSetup, |
|
|
std::string |
container |
|
) |
| |
|
private |
Definition at line 118 of file EcalDBCopy.cc.
119 unsigned long long cacheID = 0;
120 if (container ==
"EcalPedestals") {
122 }
else if (container ==
"EcalADCToGeVConstant") {
124 }
else if (container ==
"EcalLinearCorrections") {
126 }
else if (container ==
"EcalIntercalibConstants") {
128 }
else if (container ==
"EcalIntercalibConstantsMC") {
130 }
else if (container ==
"EcalIntercalibErrors") {
132 }
else if (container ==
"EcalGainRatios") {
134 }
else if (container ==
"EcalWeightXtalGroups") {
136 }
else if (container ==
"EcalTBWeights") {
138 }
else if (container ==
"EcalLaserAPDPNRatios") {
140 }
else if (container ==
"EcalLaserAPDPNRatiosRef") {
142 }
else if (container ==
"EcalLaserAlphas") {
144 }
else if (container ==
"EcalChannelStatus") {
146 }
else if (container ==
"EcalDQMTowerStatus") {
148 }
else if (container ==
"EcalDQMChannelStatus") {
150 }
else if (container ==
"EcalDCSTowerStatus") {
152 }
else if (container ==
"EcalDAQTowerStatus") {
154 }
else if (container ==
"EcalTimeCalibConstants") {
156 }
else if (container ==
"EcalClusterCrackCorrParameters") {
158 }
else if (container ==
"EcalPFRecHitThresholds") {
160 }
else if (container ==
"EcalClusterEnergyUncertaintyParameters") {
162 }
else if (container ==
"EcalClusterEnergyCorrectionParameters") {
164 }
else if (container ==
"EcalClusterEnergyCorrectionObjectSpecificParameters") {
166 }
else if (container ==
"EcalClusterLocalContCorrParameters") {
168 }
else if (container ==
"EcalTPGCrystalStatus") {
170 }
else if (container ==
"EcalTPGTowerStatus") {
172 }
else if (container ==
"EBAlignment") {
174 }
else if (container ==
"EEAlignment") {
176 }
else if (container ==
"ESAlignment") {
178 }
else if (container ==
"EcalTimeOffsetConstant") {
180 }
else if (container ==
"EcalSampleMask") {
182 }
else if (container ==
"EcalTimeBiasCorrections") {
184 }
else if (container ==
"EcalSimPulseShape") {
186 }
else if (container ==
"EcalSamplesCorrelation") {
References Exception, edm::EventSetup::get(), and m_cacheIDs.
Referenced by analyze().
◆ m_cacheIDs
std::map<std::string, unsigned long long> EcalDBCopy::m_cacheIDs |
|
private |
◆ m_records
std::map<std::string, std::string> EcalDBCopy::m_records |
|
private |
◆ m_timetype
std::string EcalDBCopy::m_timetype |
|
private |
EcalLaserAPDPNRatiosRefMap EcalLaserAPDPNRatiosRef
cond::Time_t beginOfTime() const
EcalDQMTowerStatusMap EcalDQMTowerStatus
EcalLaserAlphaMap EcalLaserAlphas
std::vector< double > EEG1SamplesCorrelation
EcalPFRecHitThresholdsMap EcalPFRecHitThresholds
void copyToDB(const edm::EventSetup &evtSetup, std::string container)
EcalGainRatioMap EcalGainRatios
std::vector< float > EETimeCorrAmplitudeBins
std::vector< float > EETimeCorrShiftBins
EcalFunParams EcalClusterEnergyCorrectionObjectSpecificParameters
std::vector< double > EBG12SamplesCorrelation
void createNewIOV(const T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t, const std::string &recordName)
std::map< std::string, std::string > m_records
std::vector< float > EBTimeCorrAmplitudeBins
EcalIntercalibConstantMap EcalIntercalibConstants
EcalPedestalsMap EcalPedestals
EcalCondObjectContainer< EcalXtalGroupId > EcalWeightXtalGroups
EcalTimeDependentCorrections EcalLinearCorrections
std::vector< double > EBG1SamplesCorrelation
std::vector< double > EEG12SamplesCorrelation
std::map< std::string, unsigned long long > m_cacheIDs
EcalChannelStatusMap EcalChannelStatus
cond::Time_t endOfTime() const
EcalTPGCrystalStatusMap EcalTPGCrystalStatus
T getParameter(std::string const &) const
bool shouldCopy(const edm::EventSetup &evtSetup, std::string container)
EcalDCSTowerStatusMap EcalDCSTowerStatus
EcalFunParams EcalClusterCrackCorrParameters
Hash writeOne(const T *payload, Time_t time, const std::string &recordName)
EcalFunParams EcalClusterLocalContCorrParameters
EcalIntercalibErrorMap EcalIntercalibErrors
EcalDQMChannelStatusMap EcalDQMChannelStatus
EcalFunParams EcalClusterEnergyCorrectionParameters
EcalFunParams EcalClusterEnergyUncertaintyParameters
std::vector< double > EBG6SamplesCorrelation
EcalDAQTowerStatusMap EcalDAQTowerStatus
EcalTimeCalibConstantMap EcalTimeCalibConstants
std::vector< float > EBTimeCorrShiftBins
vector< ParameterSet > Parameters
std::vector< double > EEG6SamplesCorrelation
EcalIntercalibConstantMCMap EcalIntercalibConstantsMC