ATLAS Offline Software
Public Member Functions | Protected Member Functions | Private Types | Private Attributes | List of all members
AbstractL1CaloPersistentCondition Class Reference

AbstractL1CaloConditionContainer abstract base class for L1Calo persistent conditions container objects. More...

#include <AbstractL1CaloPersistentCondition.h>

Inherits IL1CaloPersistenceCapable.

Inherited by L1CaloDerivedRunParsContainer [virtual], L1CaloDisabledTowersContainer [virtual], L1CaloEnergyScanResultsContainer, L1CaloEnergyScanRunInfoContainer, L1CaloHVCorrectionsContainer, L1CaloPedestalContainer, L1CaloPpmDeadChannelsContainer [virtual], L1CaloPpmFineTimeRefsContainer, L1CaloPprChanCalibContainer [virtual], L1CaloPprChanCalibV1Container [virtual], L1CaloPprChanDefaultsContainer [virtual], L1CaloPprChanDefaultsV1Container [virtual], L1CaloPprChanExtraContainer [virtual], L1CaloPprChanStrategyContainer [virtual], L1CaloPprConditionsContainer, L1CaloPprConditionsContainerRun2, L1CaloPprDisabledChannelContainer [virtual], L1CaloPprDisabledChannelContainerRun2 [virtual], L1CaloPprLutContainer, L1CaloRampRunPlan, L1CaloReadoutConfigContainer [virtual], L1CaloReadoutConfigContainerJSON [virtual], L1CaloRunParametersContainer [virtual], L1CaloRxGainContainer, and L1CaloRxLayersContainer.

Collaboration diagram for AbstractL1CaloPersistentCondition:

Public Member Functions

virtual ~AbstractL1CaloPersistentCondition ()
 
virtual DataObject * makePersistent () const
 
virtual void makeTransient (const std::map< std::string, const CondAttrListCollection * > &condAttrListCollectionMap)
 
virtual void makeTransient (const std::map< std::string, const AthenaAttributeList * > &condAttributeList)
 
std::string specificationName (int specId) const
 
std::string specificationType (int specId) const
 
void addSpecification (int specId, const std::string &specName, const std::string &specType)
 
coral::AttributeListSpecification * createAttributeListSpecification () const
 
virtual std::string conditionType () const
 
virtual std::vector< std::string > coolInputKeys () const
 
virtual std::string coolOutputKey () const
 
virtual void clear ()
 

Protected Member Functions

 AbstractL1CaloPersistentCondition (const std::string &condType)
 

Private Types

typedef std::map< int, std::string > AttrSpecificationMap
 

Private Attributes

AttrSpecificationMap m_attrSpecificationNameMap
 
AttrSpecificationMap m_attrSpecificationTypeMap
 
std::string m_strConditionType
 

Detailed Description

AbstractL1CaloConditionContainer abstract base class for L1Calo persistent conditions container objects.

Author
Damien Prieur damie.nosp@m.n.pr.nosp@m.ieur@.nosp@m.cern.nosp@m..ch

Definition at line 22 of file AbstractL1CaloPersistentCondition.h.

Member Typedef Documentation

◆ AttrSpecificationMap

typedef std::map<int, std::string> AbstractL1CaloPersistentCondition::AttrSpecificationMap
private

Definition at line 50 of file AbstractL1CaloPersistentCondition.h.

Constructor & Destructor Documentation

◆ ~AbstractL1CaloPersistentCondition()

virtual AbstractL1CaloPersistentCondition::~AbstractL1CaloPersistentCondition ( )
inlinevirtual

Definition at line 25 of file AbstractL1CaloPersistentCondition.h.

25 {};

◆ AbstractL1CaloPersistentCondition()

AbstractL1CaloPersistentCondition::AbstractL1CaloPersistentCondition ( const std::string &  condType)
inlineprotected

Definition at line 45 of file AbstractL1CaloPersistentCondition.h.

46  : m_strConditionType (condType)
47  { }

Member Function Documentation

◆ addSpecification()

void AbstractL1CaloPersistentCondition::addSpecification ( int  specId,
const std::string &  specName,
const std::string &  specType 
)

Definition at line 26 of file AbstractL1CaloPersistentCondition.cxx.

26  {
27  m_attrSpecificationNameMap[specId] = specName;
28  m_attrSpecificationTypeMap[specId] = specType;
29 }

◆ clear()

void AbstractL1CaloPersistentCondition::clear ( )
virtual

◆ conditionType()

virtual std::string AbstractL1CaloPersistentCondition::conditionType ( ) const
inlinevirtual

Implements IL1CaloPersistenceCapable.

Definition at line 37 of file AbstractL1CaloPersistentCondition.h.

37 { return m_strConditionType; };

◆ coolInputKeys()

virtual std::vector<std::string> AbstractL1CaloPersistentCondition::coolInputKeys ( ) const
inlinevirtual

◆ coolOutputKey()

virtual std::string AbstractL1CaloPersistentCondition::coolOutputKey ( ) const
inlinevirtual

◆ createAttributeListSpecification()

coral::AttributeListSpecification * AbstractL1CaloPersistentCondition::createAttributeListSpecification ( ) const

Definition at line 31 of file AbstractL1CaloPersistentCondition.cxx.

31  {
32 
33  coral::AttributeListSpecification* attrSpecification = new coral::AttributeListSpecification();
34 
35  AttrSpecificationMap::const_iterator it_name = m_attrSpecificationNameMap.begin();
36  AttrSpecificationMap::const_iterator it_type = m_attrSpecificationTypeMap.begin();
37 
38  for(;it_name!=m_attrSpecificationNameMap.end();++it_name,++it_type) {
39  attrSpecification->extend(it_name->second, it_type->second);
40  }
41  return attrSpecification;
42 }

◆ makePersistent()

DataObject * AbstractL1CaloPersistentCondition::makePersistent ( ) const
virtual

◆ makeTransient() [1/2]

void AbstractL1CaloPersistentCondition::makeTransient ( const std::map< std::string, const AthenaAttributeList * > &  condAttributeList)
virtual

Implements IL1CaloPersistenceCapable.

Definition at line 21 of file AbstractL1CaloPersistentCondition.cxx.

21  {
22  std::cout << "ERROR - The makeTransient(const map<std::string, const AthenaAttributeList*>) method you are calling is not implemented by the current class !" << std::endl;
23  return;
24 }

◆ makeTransient() [2/2]

void AbstractL1CaloPersistentCondition::makeTransient ( const std::map< std::string, const CondAttrListCollection * > &  condAttrListCollectionMap)
virtual

◆ specificationName()

std::string AbstractL1CaloPersistentCondition::specificationName ( int  specId) const

Definition at line 44 of file AbstractL1CaloPersistentCondition.cxx.

44  {
45  return m_attrSpecificationNameMap.find(specId)->second;
46 }

◆ specificationType()

std::string AbstractL1CaloPersistentCondition::specificationType ( int  specId) const

Definition at line 48 of file AbstractL1CaloPersistentCondition.cxx.

48  {
49  return m_attrSpecificationTypeMap.find(specId)->second;
50 }

Member Data Documentation

◆ m_attrSpecificationNameMap

AttrSpecificationMap AbstractL1CaloPersistentCondition::m_attrSpecificationNameMap
private

Definition at line 51 of file AbstractL1CaloPersistentCondition.h.

◆ m_attrSpecificationTypeMap

AttrSpecificationMap AbstractL1CaloPersistentCondition::m_attrSpecificationTypeMap
private

Definition at line 52 of file AbstractL1CaloPersistentCondition.h.

◆ m_strConditionType

std::string AbstractL1CaloPersistentCondition::m_strConditionType
private

Definition at line 53 of file AbstractL1CaloPersistentCondition.h.


The documentation for this class was generated from the following files:
AbstractL1CaloPersistentCondition::m_attrSpecificationTypeMap
AttrSpecificationMap m_attrSpecificationTypeMap
Definition: AbstractL1CaloPersistentCondition.h:52
AbstractL1CaloPersistentCondition::m_attrSpecificationNameMap
AttrSpecificationMap m_attrSpecificationNameMap
Definition: AbstractL1CaloPersistentCondition.h:51
AbstractL1CaloPersistentCondition::m_strConditionType
std::string m_strConditionType
Definition: AbstractL1CaloPersistentCondition.h:53