Skip to content
Snippets Groups Projects
Commit 649eab60 authored by Markus Frank's avatar Markus Frank Committed by MarkusFrankATcernch
Browse files

Problems with ROOT persistency

parent 7fee829e
No related branches found
No related tags found
No related merge requests found
...@@ -64,10 +64,10 @@ namespace { class DDG4Dict {}; } ...@@ -64,10 +64,10 @@ namespace { class DDG4Dict {}; }
/// Dictionaires for Geant4 particles /// Dictionaires for Geant4 particles
#pragma link C++ class dd4hep::sim::ParticleExtension+; #pragma link C++ class dd4hep::sim::ParticleExtension+;
#pragma link C++ class std::unique_ptr<dd4hep::sim::ParticleExtension>+;
/// Auto-pointers related. ROOT cannot handle I/O! /// Auto-pointers related. ROOT cannot handle I/O!
#pragma link C++ class dd4hep::dd4hep_ptr<dd4hep::sim::DataExtension>; #pragma link C++ class dd4hep::dd4hep_ptr<dd4hep::sim::DataExtension>;
#pragma link C++ class dd4hep::dd4hep_ptr<dd4hep::sim::ParticleExtension>;
#pragma link C++ class dd4hep::sim::Geant4Particle+; #pragma link C++ class dd4hep::sim::Geant4Particle+;
#pragma link C++ class std::vector<dd4hep::sim::Geant4Particle*>+; #pragma link C++ class std::vector<dd4hep::sim::Geant4Particle*>+;
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#define DDG4_GEANT4PARTICLE_H #define DDG4_GEANT4PARTICLE_H
// Framework include files // Framework include files
#include "DD4hep/Memory.h"
// ROOT includes // ROOT includes
#include "Math/Vector4D.h" #include "Math/Vector4D.h"
...@@ -28,6 +27,7 @@ class G4VProcess; ...@@ -28,6 +27,7 @@ class G4VProcess;
#include <set> #include <set>
#include <map> #include <map>
#include <vector> #include <vector>
#include <memory>
/// Namespace for the AIDA detector description toolkit /// Namespace for the AIDA detector description toolkit
namespace dd4hep { namespace dd4hep {
...@@ -140,7 +140,7 @@ namespace dd4hep { ...@@ -140,7 +140,7 @@ namespace dd4hep {
Particles daughters; Particles daughters;
/// User data extension if required /// User data extension if required
dd4hep_ptr<ParticleExtension> extension { }; std::unique_ptr<ParticleExtension> extension { };
/// Reference to the G4VProcess, which created this track /// Reference to the G4VProcess, which created this track
const G4VProcess *process = 0; //! not persistent const G4VProcess *process = 0; //! not persistent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment