DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
ConditionsEntry.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/InstanceCount.h"
16 #include "DDCond/ConditionsEntry.h"
17 
18 using std::string;
19 using namespace dd4hep::cond;
20 
23  : NamedObject(), detector(), value(), validity(), hash(0)
24 {
26 }
27 
29 Entry::Entry(const DetElement& det, const string& nam, const string& typ, const string& valid, int h)
30  : NamedObject(nam,typ), detector(det), value(), validity(valid), hash(h)
31 {
33 }
34 
37  : NamedObject(c), detector(c.detector), value(c.value), validity(c.validity), hash(c.hash)
38 {
40 }
41 
45 }
46 
49  if ( this != &c ) {
50  this->NamedObject::operator=(c);
51  detector = c.detector;
52  value = c.value;
53  validity = c.validity;
54  hash = c.hash;
55  }
56  return *this;
57 }
dd4hep::cond::Entry::operator=
Entry & operator=(const Entry &c)
Assignment operator.
Definition: ConditionsEntry.cpp:48
dd4hep::NamedObject::operator=
NamedObject & operator=(const NamedObject &c)=default
Assignment operator.
dd4hep::InstanceCount::increment
static void increment(T *)
Increment count according to type information.
Definition: InstanceCount.h:98
dd4hep::cond::Entry::value
std::string value
The actual conditions data.
Definition: ConditionsEntry.h:41
ConditionsEntry.h
dd4hep::cond
Namespace for implementation details of the AIDA detector description toolkit.
Definition: ConditionsCleanup.h:23
dd4hep::DetElement
Handle class describing a detector element.
Definition: DetElement.h:188
dd4hep::InstanceCount::decrement
static void decrement(T *)
Decrement count according to type information.
Definition: InstanceCount.h:102
dd4hep::cond::Entry::detector
DetElement detector
Reference to the detector element.
Definition: ConditionsEntry.h:39
dd4hep::cond::Entry::Entry
Entry()
Default constructor.
Definition: ConditionsEntry.cpp:22
dd4hep::cond::Entry::hash
int hash
Hash value of the name for fast identification.
Definition: ConditionsEntry.h:45
dd4hep::cond::Entry::validity
std::string validity
The validity string to be interpreted by the updating engine.
Definition: ConditionsEntry.h:43
dd4hep::cond::Entry::~Entry
virtual ~Entry()
Default destructor.
Definition: ConditionsEntry.cpp:43
dd4hep::NamedObject
Implementation of a named object.
Definition: NamedObject.h:30
det
DetElement::Object * det
Definition: AlignmentsCalculator.cpp:66
dd4hep::sim::hash
unsigned int hash(unsigned int initialSeed, unsigned int eventNumber, unsigned int runNumber)
calculate hash from initialSeed, eventID and runID
Definition: Geant4EventSeed.h:201
InstanceCount.h
valid
unsigned char valid
Definition: AlignmentsCalculator.cpp:69
dd4hep::cond::Entry
The intermediate conditions data used to populate the DetElement conditions.
Definition: ConditionsEntry.h:36