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