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
ConditionsRepository.h
Go to the documentation of this file.
1 // $Id: ConditionsRepository.h 2336 2016-09-07 17:27:40Z markus.frank@cern.ch $
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 #ifndef DD4HEP_CONDITIONS_CONDITIONSREPOSITORY_H
15 #define DD4HEP_CONDITIONS_CONDITIONSREPOSITORY_H
16 
17 // Framework include files
19 
20 // C/C++ include files
21 
23 namespace DD4hep {
24 
26  class IOV;
27  class IOVType;
28 
30  namespace Conditions {
31 
33 
34 
36 
43  public:
49  class Entry {
50  public:
51  std::string name, address;
53  Entry() {}
54  Entry(const Entry& e) : name(e.name), address(e.address), key(e.key) {}
55  Entry& operator=(const Entry& e) {
56  if ( this != &e ) {
57  key = e.key;
58  name = e.name;
59  address = e.address;
60  }
61  return *this;
62  }
63  };
64  typedef std::vector<Entry> Data;
65 
66  public:
70  virtual ~ConditionsRepository();
72  int save(ConditionsManager m, const std::string& output) const;
74  int load(const std::string& input, Data& data) const;
75  };
76 
77  } /* End namespace Geometry */
78 } /* End namespace DD4hep */
79 
80 #endif /* DD4HEP_CONDITIONS_CONDITIONSREPOSITORY_H */
Entry(const Entry &e)
Entry & operator=(const Entry &e)
Entry()
return e
Definition: Volumes.cpp:297
unsigned int key_type
Forward definition of the key type.
Definition: Conditions.h:75
Manager class for condition handles.
int load(const std::string &input, Data &data) const
Load the repository from file and fill user passed data structory.
int save(ConditionsManager m, const std::string &output) const
Save the repository to file.
Condition::key_type key
std::string address
virtual ~ConditionsRepository()
Default destructor.
std::string name
TGeoShape TGeoMedium * m
Definition: Volumes.cpp:294