Go to the documentation of this file.
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);
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
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
std::unique_ptr< DetGeomDesc > buildDetGeomDescFromCompactView(const DDCompactView &myCompactView, const bool isRun2)