34 : fromDD4hep_(ps.getParameter<bool>(
"fromDD4hep")) {
36 edm::LogVerbatim(
"HCalGeom") <<
"HcalParametersDBBuilder::HcalParametersDBBuilder called with dd4hep: "
45 desc.
add<
bool>(
"fromDD4hep",
false);
46 descriptions.
add(
"HcalParametersWriter", desc);
53 edm::LogError(
"HcalParametersDBBuilder") <<
"PoolDBOutputService unavailable";
61 edm::LogVerbatim(
"HCalGeom") <<
"HcalParametersDBBuilder::Try to access cms::DDCompactView";
64 builder.
build((*cpv), php);
67 edm::LogVerbatim(
"HCalGeom") <<
"HcalParametersDBBuilder::Try to access DDCompactView";
70 builder.
build(&(*cpv), php);
76 edm::LogError(
"HcalParametersDBBuilder") <<
"HcalParameters and HcalParametersRcd Tag already present";
Log< level::Info, true > LogVerbatim
bool build(const DDCompactView *, HcalParameters &)
#define DEFINE_FWK_MODULE(type)
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > dd4HepCompactViewToken_
void beginRun(edm::Run const &iEvent, edm::EventSetup const &) override
HcalParametersDBBuilder(const edm::ParameterSet &)
Log< level::Error, false > LogError
void createOneIOV(const T &payload, cond::Time_t firstSinceTime, const std::string &recordName)
bool isNewTagRequest(const std::string &recordName)
cond::Time_t beginOfTime() const
void analyze(edm::Event const &iEvent, edm::EventSetup const &) override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void endRun(edm::Run const &iEvent, edm::EventSetup const &) override
edm::ESGetToken< DDCompactView, IdealGeometryRecord > compactViewToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &)
ESTransientHandle< T > getTransientHandle(const ESGetToken< T, R > &iToken) const