DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Geant4Vertex.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 #ifndef DDG4_GEANT4VERTEX_H
14 #define DDG4_GEANT4VERTEX_H
15 
16 // Framework include files
17 #include <DD4hep/Memory.h>
18 
19 // C/C++ include files
20 #include <set>
21 
23 namespace dd4hep {
24 
26  namespace sim {
27 
28  // Forward declarations
29  class Geant4Vertex;
30 
33  public:
37  virtual ~VertexExtension();
38  };
39 
41 
45  class Geant4Vertex {
46  public:
47  typedef std::set<int> Particles;
49  int ref;
50  int mask;
53  double x,y,z,time;
60  Geant4Vertex();
63  Geant4Vertex(const Geant4Vertex& c);
65  virtual ~Geant4Vertex();
71  void release();
72  };
73 
74  } // End namespace sim
75 } // End namespace dd4hep
76 #endif // DDG4_GEANT4VERTEX_H
dd4hep::sim::Geant4Vertex::y
double y
Definition: Geant4Vertex.h:53
dd4hep::sim::Geant4Vertex::mask
int mask
Vertex mask to associate particles from collision.
Definition: Geant4Vertex.h:51
dd4hep::sim::Geant4Vertex::addRef
Geant4Vertex * addRef()
Increase reference count.
Definition: Geant4Vertex.cpp:58
dd4hep::sim::Geant4Vertex::Particles
std::set< int > Particles
Definition: Geant4Vertex.h:47
dd4hep::sim::Geant4Vertex::extension
dd4hep_ptr< VertexExtension > extension
User data extension if required.
Definition: Geant4Vertex.h:59
dd4hep::sim::VertexExtension
Base class to extend the basic vertex class used by DDG4 with user information.
Definition: Geant4Vertex.h:32
dd4hep::sim::Geant4Vertex::~Geant4Vertex
virtual ~Geant4Vertex()
Default destructor.
Definition: Geant4Vertex.cpp:40
dd4hep::sim::Geant4Vertex::operator=
Geant4Vertex & operator=(const Geant4Vertex &c)
Assignment operator.
Definition: Geant4Vertex.cpp:45
dd4hep::sim::Geant4Vertex::x
double x
Vertex data.
Definition: Geant4Vertex.h:53
dd4hep::sim::VertexExtension::VertexExtension
VertexExtension()
Default constructor.
Definition: Geant4Vertex.h:35
dd4hep::sim::Geant4Vertex::out
Particles out
The list of outgoing particles.
Definition: Geant4Vertex.h:55
dd4hep::sim::Geant4Vertex::release
void release()
Decrease reference count. Deletes object if NULL.
Definition: Geant4Vertex.cpp:63
dd4hep::sim::VertexExtension::~VertexExtension
virtual ~VertexExtension()
Default destructor.
Definition: Geant4Vertex.cpp:22
Memory.h
dd4hep::sim::Geant4Vertex::ref
int ref
Reference counter.
Definition: Geant4Vertex.h:49
dd4hep::sim::Geant4Vertex::Geant4Vertex
Geant4Vertex()
Default constructor.
Definition: Geant4Vertex.cpp:33
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::sim::Geant4Vertex::time
double time
Definition: Geant4Vertex.h:53
dd4hep::sim::Geant4Vertex::in
Particles in
The list of incoming particles.
Definition: Geant4Vertex.h:57
dd4hep::sim::Geant4Vertex::z
double z
Definition: Geant4Vertex.h:53
dd4hep::sim::Geant4Vertex
Data structure to store the MC vertex information.
Definition: Geant4Vertex.h:45
dd4hep::dd4hep_ptr
Out version of the std auto_ptr implementation base either on auto_ptr or unique_ptr.
Definition: Memory.h:46