DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Geant4Vertex.cpp
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 
14 // Framework include files
15 #include <DD4hep/Printout.h>
16 #include <DD4hep/InstanceCount.h>
17 #include <DDG4/Geant4Vertex.h>
18 
19 using namespace dd4hep::sim;
20 
23 }
24 
27  : ref(1), mask(c.mask), x(c.x), y(c.y), z(c.z), time(c.time), out(c.out), in(c.in)
28 {
30 }
31 
34  : ref(1), mask(0), x(0), y(0), z(0), time(0)
35 {
37 }
38 
42 }
43 
46  if ( this != &c ) {
47  mask = c.mask;
48  x = c.x;
49  y = c.y;
50  z = c.z;
51  time = c.time;
52  in = c.in;
53  out = c.out;
54  }
55  return *this;
56 }
57 
59  ++ref;
60  return this;
61 }
62 
64  if ( --ref <= 0 ) delete this;
65 }
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::InstanceCount::increment
static void increment(T *)
Increment count according to type information.
Definition: InstanceCount.h:98
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::InstanceCount::decrement
static void decrement(T *)
Decrement count according to type information.
Definition: InstanceCount.h:102
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
Geant4Vertex.h
dd4hep::sim::VertexExtension::~VertexExtension
virtual ~VertexExtension()
Default destructor.
Definition: Geant4Vertex.cpp:22
dd4hep::sim
Namespace for the Geant4 based simulation part of the AIDA detector description toolkit.
Definition: Geant4Output2EDM4hep.cpp:49
dd4hep::sim::Geant4Vertex::ref
int ref
Reference counter.
Definition: Geant4Vertex.h:49
dd4hep::sim::Geant4Vertex::Geant4Vertex
Geant4Vertex()
Default constructor.
Definition: Geant4Vertex.cpp:33
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
InstanceCount.h
Printout.h