Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:14:11

0001 //==========================================================================
0002 //  AIDA Detector description implementation 
0003 //--------------------------------------------------------------------------
0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
0005 // All rights reserved.
0006 //
0007 // For the licensing terms see $DD4hepINSTALL/LICENSE.
0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
0009 //
0010 // Author     : M.Frank
0011 //
0012 //==========================================================================
0013 
0014 // Framework include files
0015 #include <DDEve/DDEveEventData.h>
0016 
0017 using namespace dd4hep;
0018 
0019 /// Default constructor
0020 DDEveHit::DDEveHit()
0021   : particle(0), x(0.0), y(0.0), z(0.0), deposit(0.0) 
0022 {
0023 }
0024 
0025 /// Initializing constructor
0026 DDEveHit::DDEveHit(int p, float xx, float yy, float zz, float d) 
0027   : particle(p), x(xx), y(yy), z(zz), deposit(d) 
0028 {
0029 }
0030 
0031 /// Copy constructor
0032 DDEveHit::DDEveHit(const DDEveHit& c)
0033   : particle(c.particle), x(c.x), y(c.y), z(c.z), deposit(c.deposit) 
0034 {
0035 }
0036 
0037 /// Default destructor
0038 DDEveHit::~DDEveHit()  {
0039 }
0040 
0041 /// Assignment operator
0042 DDEveHit& DDEveHit::operator=(const DDEveHit& c)  {
0043   if ( this != &c )  {
0044     x = c.x;
0045     y = c.y;
0046     z = c.z;
0047     deposit = c.deposit;
0048   }
0049   return *this;
0050 }
0051 
0052 /// Copy constructor
0053 DDEveParticle::DDEveParticle(const DDEveParticle& c)
0054   : id(c.id), parent(c.parent), pdgID(c.pdgID),
0055     vsx(c.vsx), vsy(c.vsy), vsz(c.vsz), vex(c.vex), vey(c.vey), vez(c.vez), 
0056     psx(c.psx), psy(c.psy), psz(c.psz), 
0057     energy(c.energy), time(c.time), daughters(c.daughters)  {
0058 }
0059 
0060 /// Default constructor
0061 DDEveParticle::DDEveParticle()
0062   : id(0), parent(0), pdgID(0),
0063     vsx(0.0), vsy(0.0), vsz(0.0), vex(0.0), vey(0.0), vez(0.0), 
0064     psx(0.0), psy(0.0), psz(0.0), 
0065     energy(0.0), time(0.0), daughters() {
0066 }
0067 
0068 /// Default destructor
0069 DDEveParticle::~DDEveParticle()  
0070 {
0071 }
0072 
0073 /// Assignment operator
0074 DDEveParticle& DDEveParticle::operator=(const DDEveParticle& c)   {
0075   if ( this != &c )  {
0076     id = c.id; 
0077     parent = c.parent;
0078     pdgID = c.pdgID;
0079     vsx = c.vsx;
0080     vsy = c.vsy;
0081     vsz = c.vsz; 
0082     vex = c.vex;
0083     vey = c.vey;
0084     vez = c.vez; 
0085     psx = c.psx;
0086     psy = c.psy;
0087     psz = c.psz; 
0088     energy = c.energy;
0089     time = c.time;
0090     daughters = c.daughters;
0091   }
0092   return *this;
0093 }
0094 
0095