DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
DDG4
src
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
22
VertexExtension::~VertexExtension
() {
23
}
24
26
Geant4Vertex::Geant4Vertex
(
const
Geant4Vertex
& c)
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
{
29
InstanceCount::increment
(
this
);
30
}
31
33
Geant4Vertex::Geant4Vertex
()
34
: ref(1), mask(0), x(0), y(0), z(0), time(0)
35
{
36
InstanceCount::increment
(
this
);
37
}
38
40
Geant4Vertex::~Geant4Vertex
() {
41
InstanceCount::decrement
(
this
);
42
}
43
45
Geant4Vertex
&
Geant4Vertex::operator=
(
const
Geant4Vertex
& c) {
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
58
Geant4Vertex
*
Geant4Vertex::addRef
() {
59
++
ref
;
60
return
this
;
61
}
62
63
void
Geant4Vertex::release
() {
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
Generated on Tue Dec 10 2024 18:30:10 for DD4hep by
1.8.18