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 ";
90 throw cms::Exception(
"PPSGeometryBuilder") <<
"PDetGeomDesc is empty, no geometry to save in the database.";
94 edm::LogInfo(
"PPSGeometryBuilder") <<
"Successfully wrote DB, with " << serializableData->
container_.size()
95 <<
" PDetGeomDesc items.";
97 throw cms::Exception(
"PPSGeometryBuilder") <<
"PoolDBService required.";
115 serializableData->
container_.emplace_back(serializableItem);
134 rot.GetComponents(result.
axx_,
const std::vector< double > & params() const
DetId geographicalID() const
const Translation & translation() const
const std::string & sensorType() const
edm::ESWatcher< IdealGeometryRecord > watcherIdealGeometry_
#define DEFINE_FWK_MODULE(type)
std::string compactViewTag_
PPSGeometryBuilder(const edm::ParameterSet &)
Hash writeOne(const T *payloadPtr, Time_t time, const std::string &recordName)
bool getData(T &iHolder) 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)
cond::Time_t beginOfTime() const
void buildSerializableDataFromGeoInfo(PDetGeomDesc *serializableData, const DetGeomDesc *geoInfo, int &counter)
std::vector< Item > container_
std::unique_ptr< DetGeomDesc > buildDetGeomDescFromCompactView(const DDCompactView &myCompactView, const bool isRun2)
const Container & components() const
edm::ESGetToken< DDCompactView, IdealGeometryRecord > ddToken_
const std::string & name() const
Log< level::Info, false > LogInfo
edm::Service< cond::service::PoolDBOutputService > dbService_
std::vector< double > params_
float parentZPosition() const
bool check(const edm::EventSetup &iSetup)
static std::atomic< unsigned int > counter
const RotationMatrix & rotation() const
void analyze(const edm::Event &, const edm::EventSetup &) override