Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:16:30

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 "DD4hep/InstanceCount.h"
0016 #include "DDCond/ConditionsEntry.h"
0017 
0018 using std::string;
0019 using namespace dd4hep::cond;
0020 
0021 /// Default constructor
0022 Entry::Entry()
0023   : NamedObject(), detector(), value(), validity(), hash(0)
0024 {
0025   InstanceCount::increment(this);
0026 }
0027 
0028 /// Initializing constructor
0029 Entry::Entry(const DetElement& det, const string& nam, const string& typ, const string& valid, int h)
0030   : NamedObject(nam,typ), detector(det), value(), validity(valid), hash(h)
0031 {
0032   InstanceCount::increment(this);
0033 }
0034 
0035 /// Copy constructor
0036 Entry::Entry(const Entry& c)
0037   : NamedObject(c), detector(c.detector), value(c.value), validity(c.validity), hash(c.hash)
0038 {
0039   InstanceCount::increment(this);
0040 }
0041 
0042 /// Default destructor
0043 Entry::~Entry()   {
0044   InstanceCount::decrement(this);
0045 }
0046 
0047 /// Assignment operator
0048 Entry& Entry::operator=(const Entry& c)   {
0049   if ( this != &c )  {
0050     this->NamedObject::operator=(c);
0051     detector = c.detector;
0052     value    = c.value;
0053     validity = c.validity;
0054     hash     = c.hash;
0055   }
0056   return *this;
0057 }