DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
ConditionsRepository.h
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 #ifndef DDCOND_CONDITIONSREPOSITORY_H
14 #define DDCOND_CONDITIONSREPOSITORY_H
15 
16 // Framework include files
18 
19 // C/C++ include files
20 
22 namespace dd4hep {
23 
25  class IOV;
26  class IOVType;
27 
29  namespace cond {
30 
32 
39  public:
41 
46  class Entry {
47  public:
48  std::string name, address;
50  Entry() = default;
51  Entry(const Entry& e) = default;
52  Entry& operator=(const Entry& e) = default;
53  };
54 
56  typedef std::vector<Entry> Data;
57 
58  public:
62  virtual ~ConditionsRepository();
64  int save(ConditionsManager m, const std::string& output) const;
66  int load(const std::string& input, Data& data) const;
67  };
68 
69  } /* End namespace cond */
70 } /* End namespace dd4hep */
71 
72 #endif // DDCOND_CONDITIONSREPOSITORY_H
cond
AlignmentCondition::Object * cond
Definition: AlignmentsCalculator.cpp:68
dd4hep::cond::ConditionsRepository::Data
std::vector< Entry > Data
Definition of the entry collection.
Definition: ConditionsRepository.h:56
dd4hep::cond::ConditionsRepository::ConditionsRepository
ConditionsRepository()
Default constructor.
Definition: ConditionsRepository.cpp:40
ConditionsManager.h
dd4hep::cond::ConditionsRepository
Base class to be implemented by objects to listen on condition callbacks.
Definition: ConditionsRepository.h:38
dd4hep::cond::ConditionsRepository::Entry::Entry
Entry(const Entry &e)=default
dd4hep::cond::ConditionsRepository::~ConditionsRepository
virtual ~ConditionsRepository()
Default destructor.
Definition: ConditionsRepository.cpp:44
dd4hep::cond::ConditionsRepository::Entry::operator=
Entry & operator=(const Entry &e)=default
dd4hep::cond::ConditionsRepository::Entry::name
std::string name
Definition: ConditionsRepository.h:48
dd4hep::Condition::key_type
unsigned long long int key_type
Forward definition of the key type.
Definition: Conditions.h:54
dd4hep::cond::ConditionsManager
Manager class for condition handles.
Definition: ConditionsManager.h:46
dd4hep::cond::ConditionsRepository::save
int save(ConditionsManager m, const std::string &output) const
Save the repository to file.
Definition: ConditionsRepository.cpp:210
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::cond::ConditionsRepository::Entry::key
Condition::key_type key
Definition: ConditionsRepository.h:49
dd4hep::cond::ConditionsRepository::Entry
Definition of a single Entry in the conditions repository.
Definition: ConditionsRepository.h:46
dd4hep::cond::ConditionsRepository::Entry::address
std::string address
Definition: ConditionsRepository.h:48
dd4hep::cond::ConditionsRepository::Entry::Entry
Entry()=default
dd4hep::cond::ConditionsRepository::load
int load(const std::string &input, Data &data) const
Load the repository from file and fill user passed data structory.
Definition: ConditionsRepository.cpp:247