DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep  Rev:Unversioneddirectory
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ConditionsEntry.cpp
Go to the documentation of this file.
1 // $Id$
2 //==========================================================================
3 // AIDA Detector description implementation for LCD
4 //--------------------------------------------------------------------------
5 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
6 // All rights reserved.
7 //
8 // For the licensing terms see $DD4hepINSTALL/LICENSE.
9 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
10 //
11 // Author : M.Frank
12 //
13 //==========================================================================
14 
15 // Framework include files
16 #include "DD4hep/InstanceCount.h"
17 #include "DDCond/ConditionsEntry.h"
18 
19 using std::string;
20 using namespace DD4hep::Conditions;
21 
23 Entry::Entry(const DD4hep::Geometry::DetElement& det, const string& nam, const string& typ, const string& valid, int h)
24  : NamedObject(nam,typ), detector(det), value(), validity(valid), hash(h)
25 {
27 }
28 
31  : NamedObject(c), detector(c.detector), value(c.value), validity(c.validity)
32 {
34 }
35 
39 }
40 
43  if ( this != &c ) {
44  this->NamedObject::operator=(c);
45  detector = c.detector;
46  value = c.value;
47  validity = c.validity;
48  }
49  return *this;
50 }
Entry & operator=(const Entry &c)
Assignment operator.
std::string validity
The validity string to be interpreted by the updating engine.
static void decrement(T *)
Decrement count according to type information.
The intermediate conditions data used to populate the DetElement conditions.
Implementation of a named object.
Definition: NamedObject.h:31
Geometry::DetElement detector
Reference to the detector element.
virtual ~Entry()
Default destructor.
Entry()
Default constructor.
unsigned int hash(unsigned int initialSeed, unsigned int eventNumber, unsigned int runNumber)
calculate hash from initialSeed, eventID and runID
static void increment(T *)
Increment count according to type information.
Definition: InstanceCount.h:98
NamedObject & operator=(const NamedObject &c)
Assignment operator.
Definition: NamedObject.cpp:57
Handle class describing a detector element.
Definition: Detector.h:172
std::string value
The actual conditions data.