|
|
Go to the documentation of this file.
33 #include "DD4hep/Detector.h"
66 : fromDB_(iConfig.getParameter<
bool>(
"fromDB")),
67 appendToDataLabel_(iConfig.getParameter<
string>(
"appendToDataLabel")),
69 rootDDName_(iConfig.getParameter<
string>(
"rootDDName")),
70 label_(iConfig.getParameter<
string>(
"label")) {
78 findingRecord<IdealMagneticFieldRecord>();
85 findingRecord<IdealGeometryRecord>();
95 desc.add<
string>(
"rootDDName",
"cms:OCMS");
96 desc.add<
string>(
"label",
"");
97 desc.add<
bool>(
"fromDB",
false);
98 descriptions.
add(
"DDDetectorESProducer",
desc);
101 descDB.
add<
string>(
"rootDDName",
"cms:OCMS");
102 descDB.
add<
string>(
"label",
"Extended");
103 descDB.
add<
bool>(
"fromDB",
true);
104 descriptions.
add(
"DDDetectorESProducerFromDB", descDB);
110 oInterval =
ValidityInterval(IOVSyncValue::beginOfTime(), IOVSyncValue::endOfTime());
117 unique_ptr<vector<unsigned char> > tb = (*gdd).getUncompressedBlob();
119 return make_unique<cms::DDDetector>(
label_,
string(tb->begin(), tb->end()),
true);
129 unique_ptr<vector<unsigned char> > tb = (*gdd).getUncompressedBlob();
131 return make_unique<cms::DDDetector>(
label_,
string(tb->begin(), tb->end()),
true);
const string appendToDataLabel_
edm::ESGetToken< FileBlob, GeometryFileRcd > geomToken_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void setIntervalFor(const eventsetup::EventSetupRecordKey &, const IOVSyncValue &, ValidityInterval &) override
ReturnType produceGeom(const IdealGeometryRecord &)
static void fillDescriptions(ConfigurationDescriptions &)
dd4hep::Detector Detector
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
unique_ptr< DDDetector > ReturnType
DDDetectorESProducer(const ParameterSet &)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ESTransientHandle< ProductT > getTransientHandle(ESGetToken< ProductT, DepRecordT > const &iToken) const
#define DEFINE_FWK_EVENTSETUP_SOURCE(type)
~DDDetectorESProducer() override
ReturnType produceMagField(const IdealMagneticFieldRecord &)
std::pair< Time_t, Time_t > ValidityInterval
const string confGeomXMLFiles_
Log< level::Info, true > LogVerbatim
T getParameter(std::string const &) const
edm::ESGetToken< FileBlob, MFGeometryFileRcd > mfToken_
Namespace of DDCMS conversion namespace.