DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
DDEveEventData.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 <DDEve/DDEveEventData.h>
16 
17 using namespace dd4hep;
18 
21  : particle(0), x(0.0), y(0.0), z(0.0), deposit(0.0)
22 {
23 }
24 
26 DDEveHit::DDEveHit(int p, float xx, float yy, float zz, float d)
27  : particle(p), x(xx), y(yy), z(zz), deposit(d)
28 {
29 }
30 
33  : particle(c.particle), x(c.x), y(c.y), z(c.z), deposit(c.deposit)
34 {
35 }
36 
39 }
40 
43  if ( this != &c ) {
44  x = c.x;
45  y = c.y;
46  z = c.z;
47  deposit = c.deposit;
48  }
49  return *this;
50 }
51 
54  : id(c.id), parent(c.parent), pdgID(c.pdgID),
55  vsx(c.vsx), vsy(c.vsy), vsz(c.vsz), vex(c.vex), vey(c.vey), vez(c.vez),
56  psx(c.psx), psy(c.psy), psz(c.psz),
57  energy(c.energy), time(c.time), daughters(c.daughters) {
58 }
59 
62  : id(0), parent(0), pdgID(0),
63  vsx(0.0), vsy(0.0), vsz(0.0), vex(0.0), vey(0.0), vez(0.0),
64  psx(0.0), psy(0.0), psz(0.0),
65  energy(0.0), time(0.0), daughters() {
66 }
67 
70 {
71 }
72 
75  if ( this != &c ) {
76  id = c.id;
77  parent = c.parent;
78  pdgID = c.pdgID;
79  vsx = c.vsx;
80  vsy = c.vsy;
81  vsz = c.vsz;
82  vex = c.vex;
83  vey = c.vey;
84  vez = c.vez;
85  psx = c.psx;
86  psy = c.psy;
87  psz = c.psz;
88  energy = c.energy;
89  time = c.time;
90  daughters = c.daughters;
91  }
92  return *this;
93 }
94 
95 
dd4hep::DDEveHit
DDEve event classes: Basic hit.
Definition: DDEveEventData.h:29
dd4hep::DDEveParticle::vez
double vez
Definition: DDEveEventData.h:60
dd4hep::DDEveHit::DDEveHit
DDEveHit()
Default constructor.
Definition: DDEveEventData.cpp:20
dd4hep::DDEveParticle::DDEveParticle
DDEveParticle()
Default constructor.
Definition: DDEveEventData.cpp:61
dd4hep::DDEveParticle::psx
double psx
Definition: DDEveEventData.h:61
dd4hep::DDEveHit::~DDEveHit
~DDEveHit()
Default destructor.
Definition: DDEveEventData.cpp:38
dd4hep::DDEveParticle::vsx
double vsx
Definition: DDEveEventData.h:59
dd4hep::DDEveParticle::~DDEveParticle
virtual ~DDEveParticle()
Default destructor.
Definition: DDEveEventData.cpp:69
dd4hep::DDEveParticle::vsy
double vsy
Definition: DDEveEventData.h:59
dd4hep::DDEveHit::x
float x
Hit position.
Definition: DDEveEventData.h:34
dd4hep::DDEveParticle::vsz
double vsz
Definition: DDEveEventData.h:59
DDEveEventData.h
dd4hep::DDEveParticle::id
int id
Definition: DDEveEventData.h:58
dd4hep::DDEveParticle::energy
double energy
Definition: DDEveEventData.h:61
dd4hep::DDEveParticle::time
double time
Definition: DDEveEventData.h:61
dd4hep::DDEveHit::deposit
float deposit
Energy deposit.
Definition: DDEveEventData.h:36
dd4hep::DDEveParticle::parent
int parent
Definition: DDEveEventData.h:58
dd4hep::DDEveParticle::daughters
std::set< int > daughters
Definition: DDEveEventData.h:62
dd4hep::DDEveParticle::pdgID
int pdgID
Definition: DDEveEventData.h:58
dd4hep::DDEveHit::operator=
DDEveHit & operator=(const DDEveHit &c)
Assignment operator.
Definition: DDEveEventData.cpp:42
dd4hep::DDEveParticle::psy
double psy
Definition: DDEveEventData.h:61
dd4hep::DDEveParticle::psz
double psz
Definition: DDEveEventData.h:61
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::DDEveParticle::operator=
DDEveParticle & operator=(const DDEveParticle &c)
Assignment operator.
Definition: DDEveEventData.cpp:74
dd4hep::DDEveHit::y
float y
Definition: DDEveEventData.h:34
dd4hep::DDEveHit::z
float z
Definition: DDEveEventData.h:34
dd4hep::DDEveParticle
Data structure to store the MC particle information.
Definition: DDEveEventData.h:56
dd4hep::DDEveParticle::vey
double vey
Definition: DDEveEventData.h:60
dd4hep::DDEveParticle::vex
double vex
Definition: DDEveEventData.h:60