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.cpp
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 
15 // Framework include files
16 #include "DD4hep/Printout.h"
17 #include "DD4hep/InstanceCount.h"
18 #include "DDG4/Geant4Vertex.h"
19 
20 using namespace DD4hep;
21 using namespace DD4hep::Simulation;
22 
25 }
26 
29  : ref(1), mask(c.mask), x(c.x), y(c.y), z(c.z), time(c.time), out(c.out), in(c.in)
30 {
32 }
33 
36  : ref(1), mask(0), x(0), y(0), z(0), time(0)
37 {
39 }
40 
44 }
45 
48  if ( this != &c ) {
49  mask = c.mask;
50  x = c.x;
51  y = c.y;
52  z = c.z;
53  time = c.time;
54  in = c.in;
55  out = c.out;
56  }
57  return *this;
58 }
59 
61  ++ref;
62  return this;
63 }
64 
66  if ( --ref <= 0 ) delete this;
67 }
Geant4Vertex * addRef()
Increase reference count.
int ref
Reference counter.
Definition: Geant4Vertex.h:50
Geant4Vertex & operator=(const Geant4Vertex &c)
Assignment operator.
static void decrement(T *)
Decrement count according to type information.
virtual ~Geant4Vertex()
Default destructor.
Particles out
The list of outgoing particles.
Definition: Geant4Vertex.h:56
Particles in
The list of incoming particles.
Definition: Geant4Vertex.h:58
Data structure to store the MC vertex information.
Definition: Geant4Vertex.h:46
int mask
Vertex mask to associate particles from collision.
Definition: Geant4Vertex.h:52
static void increment(T *)
Increment count according to type information.
Definition: InstanceCount.h:98
void release()
Decrease reference count. Deletes object if NULL.
virtual ~VertexExtension()
Default destructor.
Geant4Vertex()
not persistent: ROOT cannot handle yet