Go to the documentation of this file.
47 : fromDD4hep_(iConfig.getUntrackedParameter<
bool>(
"fromDD4hep",
false)),
48 compactViewTag_(iConfig.getUntrackedParameter<
std::
string>(
"compactViewTag",
"XMLIdealGeometryESSource_CTPPS")),
50 dd4hepToken_(esConsumes(
edm::
ESInputTag(
"", compactViewTag_))) {}
57 std::unique_ptr<DetGeomDesc> geoInfoRoot =
nullptr;
59 edm::LogInfo(
"PPSGeometryBuilder") <<
"Got IdealGeometryRecord ";
88 throw cms::Exception(
"PPSGeometryBuilder") <<
"PDetGeomDesc is empty, no geometry to save in the database.";
92 edm::LogInfo(
"PPSGeometryBuilder") <<
"Successfully wrote DB, with " << serializableData->
container_.size()
93 <<
" PDetGeomDesc items.";
95 throw cms::Exception(
"PPSGeometryBuilder") <<
"PoolDBService required.";
113 serializableData->
container_.emplace_back(serializableItem);
edm::ESWatcher< IdealGeometryRecord > watcherIdealGeometry_
bool check(const edm::EventSetup &iSetup)
PPSGeometryBuilder(const edm::ParameterSet &)
cond::Time_t beginOfTime() const
std::string compactViewTag_
const Translation & translation() const
const std::string & sensorType() const
PDetGeomDesc::Item buildItemFromDetGeomDesc(const DetGeomDesc *geoInfo)
Log< level::Info, false > LogInfo
float parentZPosition() const
void buildSerializableDataFromGeoInfo(PDetGeomDesc *serializableData, const DetGeomDesc *geoInfo, int &counter)
DetId geographicalID() const
#define DEFINE_FWK_MODULE(type)
std::vector< Item > container_
edm::Service< cond::service::PoolDBOutputService > dbService_
const Container & components() const
edm::ESGetToken< cms::DDCompactView, IdealGeometryRecord > dd4hepToken_
const std::string & name() const
static std::atomic< unsigned int > counter
void analyze(const edm::Event &, const edm::EventSetup &) override
bool getData(T &iHolder) const
std::unique_ptr< DetGeomDesc > buildDetGeomDescFromCompactView(const DDCompactView &myCompactView)
ROOT::Math::Rotation3D DDRotationMatrix
A DDRotationMatrix is currently implemented with a ROOT Rotation3D.
edm::ESGetToken< DDCompactView, IdealGeometryRecord > ddToken_
Hash writeOne(const T *payload, Time_t time, const std::string &recordName)
const std::vector< double > & params() const
const RotationMatrix & rotation() const