DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Geant4Vertex.h
Go to the documentation of this file.
1 // $Id: $
2 //==========================================================================
3 // AIDA Detector description implementation for LCD
4 //--------------------------------------------------------------------------
5 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
6 // All rights reserved.
7 //
8 // For the licensing terms see $DD4hepINSTALL/LICENSE.
9 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
10 //
11 // Author : M.Frank
12 //
13 //==========================================================================
14 #ifndef DD4HEP_GEANT4VERTEX_H
15 #define DD4HEP_GEANT4VERTEX_H
16 
17 // Framework include files
18 #include "DD4hep/Memory.h"
19 
20 // C/C++ include files
21 #include <set>
22 
24 namespace DD4hep {
25 
27  namespace Simulation {
28 
29  // Forward declarations
30  class Geant4Vertex;
31 
34  public:
38  virtual ~VertexExtension();
39  };
40 
42 
46  class Geant4Vertex {
47  public:
48  typedef std::set<int> Particles;
50  int ref;
51  int mask;
54  double x,y,z,time;
60 #ifdef DD4HEP_DD4HEP_PTR_AUTO
62 #else
64 #endif
65  Geant4Vertex();
68  Geant4Vertex(const Geant4Vertex& c);
70  virtual ~Geant4Vertex();
76  void release();
77  };
78 
79  } // End namespace Simulation
80 } // End namespace DD4hep
81 #endif // DD4HEP_GEANT4VERTEX_H
Geant4Vertex * addRef()
Increase reference count.
int ref
Reference counter.
Definition: Geant4Vertex.h:50
Geant4Vertex & operator=(const Geant4Vertex &c)
Assignment operator.
virtual ~Geant4Vertex()
Default destructor.
dd4hep_ptr< VertexExtension > extension
User data extension if required.
Definition: Geant4Vertex.h:63
Particles out
The list of outgoing particles.
Definition: Geant4Vertex.h:56
Particles in
The list of incoming particles.
Definition: Geant4Vertex.h:58
Out version of the std auto_ptr implementation base either on auto_ptr or unique_ptr.
Definition: Memory.h:43
Data structure to store the MC vertex information.
Definition: Geant4Vertex.h:46
VertexExtension()
Default constructor.
Definition: Geant4Vertex.h:36
int mask
Vertex mask to associate particles from collision.
Definition: Geant4Vertex.h:52
void release()
Decrease reference count. Deletes object if NULL.
Base class to extend the basic vertex class used by DDG4 with user information.
Definition: Geant4Vertex.h:33
virtual ~VertexExtension()
Default destructor.
Geant4Vertex()
not persistent: ROOT cannot handle yet