diff --git a/DDCore/include/DD4hep/detail/OpticalSurfaceManagerInterna.h b/DDCore/include/DD4hep/detail/OpticalSurfaceManagerInterna.h index 6f7598669c6b174e097af36cb16077a6b60274df..de2ae1b0408ac07f54f5a58a20527cd6d80a2ed8 100644 --- a/DDCore/include/DD4hep/detail/OpticalSurfaceManagerInterna.h +++ b/DDCore/include/DD4hep/detail/OpticalSurfaceManagerInterna.h @@ -58,7 +58,7 @@ namespace dd4hep { /// No move constructor OpticalSurfaceManagerObject(OpticalSurfaceManagerObject&& copy) = delete; /// No copy constructor - OpticalSurfaceManagerObject(const OpticalSurfaceManagerObject& copy) = default; + OpticalSurfaceManagerObject(const OpticalSurfaceManagerObject& copy) = delete; /// Initializing constructor OpticalSurfaceManagerObject(Detector& det) : detector(det) {} /// Default destructor diff --git a/DDDigi/include/DDDigi/DigiAction.h b/DDDigi/include/DDDigi/DigiAction.h index e85883312d23c5fcce45e4c1e24b529c0ad8e44e..c86633ef38f900b82da310044111e610a0ce588d 100644 --- a/DDDigi/include/DDDigi/DigiAction.h +++ b/DDDigi/include/DDDigi/DigiAction.h @@ -97,7 +97,11 @@ namespace dd4hep { protected: /// Reference to the Digi context +#if defined(G__ROOT) || defined(__CLING__) || defined(__ROOTCLING__) + const DigiKernel* m_kernel; +#else const DigiKernel& m_kernel; +#endif /// Action name std::string m_name; /// Property pool diff --git a/examples/DDCodex/src/CODEXb_det.cpp b/examples/DDCodex/src/CODEXb_det.cpp index e722c507a5ffe0dbce159abbe83655000c034815..04b6f285de6febc1f97fd00c9150066ec3da05d3 100755 --- a/examples/DDCodex/src/CODEXb_det.cpp +++ b/examples/DDCodex/src/CODEXb_det.cpp @@ -119,7 +119,6 @@ static Ref_t create_element(Detector& description, xml_h e, Ref_t sens) { Stations super_stations; int num_super = 0; vector<PlacedVolume> super_places; - Box first_box; for(xml_coll_t i(x_det, _U(station)); i; ++i, ++num_super) { xml_comp_t station = i; Volume st_vol = station_vols[num_super];