diff --git a/DDCore/include/DD4hep/Memory.h b/DDCore/include/DD4hep/Memory.h index 3b49a0163603ebfa2d96cb2c0b4056a7d8cafde1..f8ac6671f223addee2c89907b9e075f07bbc6058 100644 --- a/DDCore/include/DD4hep/Memory.h +++ b/DDCore/include/DD4hep/Memory.h @@ -29,8 +29,6 @@ // C/C++ include files #include <memory> -// Use std::auto_ptr<T> instead of std::unique_ptr<T> -#define DD4HEP_DD4HEP_PTR_AUTO /// Namespace for the AIDA detector description toolkit namespace dd4hep { diff --git a/DDG4/include/DDG4/DDG4Dict.h b/DDG4/include/DDG4/DDG4Dict.h index 87e2f612b85cacb5a6520149e56eb73aa732ae42..e4140aa95ac3ecfed36a351ab51b18ae9a9c436d 100644 --- a/DDG4/include/DDG4/DDG4Dict.h +++ b/DDG4/include/DDG4/DDG4Dict.h @@ -70,11 +70,6 @@ using namespace std; #pragma link C++ class dd4hep::dd4hep_ptr<dd4hep::sim::DataExtension>; #pragma link C++ class dd4hep::dd4hep_ptr<dd4hep::sim::ParticleExtension>; -#ifdef DD4HEP_DD4HEP_PTR_AUTO -#pragma link C++ class dd4hep::dd4hep_ptr<dd4hep::sim::DataExtension>::base_t; -#pragma link C++ class dd4hep::dd4hep_ptr<dd4hep::sim::ParticleExtension>::base_t; -#endif - #pragma link C++ class dd4hep::sim::Geant4Particle+; #pragma link C++ class vector<dd4hep::sim::Geant4Particle*>+; #pragma link C++ class map<int,dd4hep::sim::Geant4Particle*>+; diff --git a/DDG4/include/DDG4/Geant4Data.h b/DDG4/include/DDG4/Geant4Data.h index 12347d918b4c3a932f41b9317a268285cd05986d..f0fe658acd7fe47eeaf6a3a8fe6c256f1e0d1efa 100644 --- a/DDG4/include/DDG4/Geant4Data.h +++ b/DDG4/include/DDG4/Geant4Data.h @@ -124,11 +124,7 @@ namespace dd4hep { /// Original Geant 4 track identifier of the creating track (debugging) long g4ID = -1; /// User data extension if required -#ifdef DD4HEP_DD4HEP_PTR_AUTO - dd4hep_ptr<DataExtension> extension; -#else dd4hep_ptr<DataExtension> extension; //! not persisten. ROOT cannot handle -#endif /// Utility class describing the monte carlo contribution of a given particle to a hit. /** diff --git a/DDG4/include/DDG4/Geant4Particle.h b/DDG4/include/DDG4/Geant4Particle.h index 6fbfb622e8e2acd7a122f5fbde35368b7356d276..fe9cb2400a84ff26432699da5bd9c8a3534951ae 100644 --- a/DDG4/include/DDG4/Geant4Particle.h +++ b/DDG4/include/DDG4/Geant4Particle.h @@ -127,11 +127,7 @@ namespace dd4hep { Particles daughters; /// User data extension if required -#ifdef DD4HEP_DD4HEP_PTR_AUTO - dd4hep_ptr<ParticleExtension> extension; -#else dd4hep_ptr<ParticleExtension> extension; //! not persisten. ROOT cannot handle -#endif const G4VProcess *process = 0; //! not persistent /// Default constructor Geant4Particle(); diff --git a/DDG4/include/DDG4/Geant4Vertex.h b/DDG4/include/DDG4/Geant4Vertex.h index 7d5b41934322398fa5b34012f98018f7049c8dfe..46dc604c63bdf889087a075300eaf8502102f826 100644 --- a/DDG4/include/DDG4/Geant4Vertex.h +++ b/DDG4/include/DDG4/Geant4Vertex.h @@ -56,11 +56,7 @@ namespace dd4hep { /// The list of incoming particles Particles in; /// User data extension if required -#ifdef DD4HEP_DD4HEP_PTR_AUTO - dd4hep_ptr<VertexExtension> extension; -#else dd4hep_ptr<VertexExtension> extension; //! not persistent: ROOT cannot handle yet -#endif /// Default constructor Geant4Vertex(); /// Copy constructor diff --git a/DDG4/python/DDG4Dict.C b/DDG4/python/DDG4Dict.C index cff433871734d7426b0cbc8f6b1ff47fe37ec08e..0f4270710e27b7766b20d1f5a53211f762edcac1 100644 --- a/DDG4/python/DDG4Dict.C +++ b/DDG4/python/DDG4Dict.C @@ -241,9 +241,6 @@ typedef dd4hep::sim::Geant4ActionCreation Geant4ActionCreation; #pragma link C++ class dd4hep::dd4hep_ptr<dd4hep::sim::VertexExtension>+; #pragma link C++ class dd4hep::dd4hep_ptr<dd4hep::sim::PrimaryExtension>+; #pragma link C++ class dd4hep::dd4hep_ptr<dd4hep::sim::Geant4InputAction::Particles>; -#ifdef DD4HEP_DD4HEP_PTR_AUTO -#pragma link C++ class dd4hep::dd4hep_ptr<dd4hep::sim::Geant4InputAction::Particles>::base_t; -#endif // Basic stuff #pragma link C++ class dd4hep::sim::Geant4ActionCreation;