ATLAS Offline Software
AbstractL1CaloPersistentCondition.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGT1CALOCALIBCONDITIONS_ABSTRACTL1CALOPERSISTENTCONDITION_H
6 #define TRIGT1CALOCALIBCONDITIONS_ABSTRACTL1CALOPERSISTENTCONDITION_H
7 
9 
10 #include "GaudiKernel/DataObject.h"
11 #include "CoralBase/AttributeListSpecification.h"
12 
13 #include <string>
14 
23 
24  public:
26 
27  virtual DataObject* makePersistent() const;
28 
29  virtual void makeTransient(const std::map<std::string, const CondAttrListCollection*>& condAttrListCollectionMap);
30  virtual void makeTransient(const std::map<std::string, const AthenaAttributeList*>& condAttributeList);
31 
32  std::string specificationName(int specId) const;
33  std::string specificationType(int specId) const;
34  void addSpecification(int specId, const std::string& specName, const std::string& specType);
35  coral::AttributeListSpecification* createAttributeListSpecification() const;
36 
37  inline virtual std::string conditionType() const { return m_strConditionType; };
38 
39  virtual std::vector<std::string> coolInputKeys() const { return std::vector<std::string>(); };
40  virtual std::string coolOutputKey() const { return std::string(""); };
41 
42  virtual void clear();
43 
44  protected:
45  AbstractL1CaloPersistentCondition(const std::string& condType)
46  : m_strConditionType (condType)
47  { }
48 
49  private:
50  typedef std::map<int, std::string> AttrSpecificationMap;
53  std::string m_strConditionType;
54 
55 };
56 #endif
IL1CaloPersistenceCapable
Definition: IL1CaloPersistenceCapable.h:21
AbstractL1CaloPersistentCondition::m_attrSpecificationTypeMap
AttrSpecificationMap m_attrSpecificationTypeMap
Definition: AbstractL1CaloPersistentCondition.h:52
IL1CaloPersistenceCapable.h
AbstractL1CaloPersistentCondition::~AbstractL1CaloPersistentCondition
virtual ~AbstractL1CaloPersistentCondition()
Definition: AbstractL1CaloPersistentCondition.h:25
AbstractL1CaloPersistentCondition::coolInputKeys
virtual std::vector< std::string > coolInputKeys() const
Definition: AbstractL1CaloPersistentCondition.h:39
AbstractL1CaloPersistentCondition::addSpecification
void addSpecification(int specId, const std::string &specName, const std::string &specType)
Definition: AbstractL1CaloPersistentCondition.cxx:26
AbstractL1CaloPersistentCondition::createAttributeListSpecification
coral::AttributeListSpecification * createAttributeListSpecification() const
Definition: AbstractL1CaloPersistentCondition.cxx:31
AbstractL1CaloPersistentCondition::AttrSpecificationMap
std::map< int, std::string > AttrSpecificationMap
Definition: AbstractL1CaloPersistentCondition.h:50
AbstractL1CaloPersistentCondition::coolOutputKey
virtual std::string coolOutputKey() const
Definition: AbstractL1CaloPersistentCondition.h:40
AbstractL1CaloPersistentCondition::AbstractL1CaloPersistentCondition
AbstractL1CaloPersistentCondition(const std::string &condType)
Definition: AbstractL1CaloPersistentCondition.h:45
AbstractL1CaloPersistentCondition::m_attrSpecificationNameMap
AttrSpecificationMap m_attrSpecificationNameMap
Definition: AbstractL1CaloPersistentCondition.h:51
AbstractL1CaloPersistentCondition::conditionType
virtual std::string conditionType() const
Definition: AbstractL1CaloPersistentCondition.h:37
AbstractL1CaloPersistentCondition::specificationType
std::string specificationType(int specId) const
Definition: AbstractL1CaloPersistentCondition.cxx:48
AbstractL1CaloPersistentCondition::makeTransient
virtual void makeTransient(const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
Definition: AbstractL1CaloPersistentCondition.cxx:16
AbstractL1CaloPersistentCondition::specificationName
std::string specificationName(int specId) const
Definition: AbstractL1CaloPersistentCondition.cxx:44
AbstractL1CaloPersistentCondition::makePersistent
virtual DataObject * makePersistent() const
Definition: AbstractL1CaloPersistentCondition.cxx:11
AbstractL1CaloPersistentCondition::m_strConditionType
std::string m_strConditionType
Definition: AbstractL1CaloPersistentCondition.h:53
AbstractL1CaloPersistentCondition
AbstractL1CaloConditionContainer abstract base class for L1Calo persistent conditions container objec...
Definition: AbstractL1CaloPersistentCondition.h:22
AbstractL1CaloPersistentCondition::clear
virtual void clear()
Definition: AbstractL1CaloPersistentCondition.cxx:52