ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
AthenaAttributeSpecification Class Reference

#include <AthenaAttributeSpecification.h>

Collaboration diagram for AthenaAttributeSpecification:

Public Member Functions

 AthenaAttributeSpecification (const std::string &n, const std::string &t, const std::string &g="UNKNOWN", const std::string &u="UNKNOWN")
 
 AthenaAttributeSpecification (const std::string &n, const AthenaAttributeType &t)
 
std::string name () const
 
std::string typeName () const
 
std::string unit () const
 
std::string group () const
 
AthenaAttributeType attributeType () const
 
bool operator== (const AthenaAttributeSpecification &rhs) const
 Equal operator. More...
 
bool operator!= (const AthenaAttributeSpecification &rhs) const
 Comparison operator. More...
 

Private Attributes

std::string m_name
 
AthenaAttributeType m_type
 

Detailed Description

Definition at line 24 of file AthenaAttributeSpecification.h.

Constructor & Destructor Documentation

◆ AthenaAttributeSpecification() [1/2]

AthenaAttributeSpecification::AthenaAttributeSpecification ( const std::string &  n,
const std::string &  t,
const std::string &  g = "UNKNOWN",
const std::string &  u = "UNKNOWN" 
)
inline

Definition at line 28 of file AthenaAttributeSpecification.h.

31  :
32  m_name(n),m_type(t, u, g)
33  {}

◆ AthenaAttributeSpecification() [2/2]

AthenaAttributeSpecification::AthenaAttributeSpecification ( const std::string &  n,
const AthenaAttributeType t 
)
inline

Definition at line 34 of file AthenaAttributeSpecification.h.

35  :
36  m_name(n),m_type(t)
37  {}

Member Function Documentation

◆ attributeType()

AthenaAttributeType AthenaAttributeSpecification::attributeType ( ) const
inline

Definition at line 43 of file AthenaAttributeSpecification.h.

43 {return m_type;}

◆ group()

std::string AthenaAttributeSpecification::group ( ) const
inline

Definition at line 42 of file AthenaAttributeSpecification.h.

42 {return m_type.group();}

◆ name()

std::string AthenaAttributeSpecification::name ( ) const
inline

Definition at line 39 of file AthenaAttributeSpecification.h.

39 {return m_name;}

◆ operator!=()

Comparison operator.

Definition at line 65 of file AthenaAttributeSpecification.h.

66 {
67  return ( this->m_name != rhs.m_name ||
68  this->m_type != rhs.m_type );
69 }

◆ operator==()

bool AthenaAttributeSpecification::operator== ( const AthenaAttributeSpecification rhs) const
inline

Equal operator.

Definition at line 58 of file AthenaAttributeSpecification.h.

59 {
60  return ( this->m_name == rhs.m_name &&
61  this->m_type == rhs.m_type );
62 }

◆ typeName()

std::string AthenaAttributeSpecification::typeName ( ) const
inline

Definition at line 40 of file AthenaAttributeSpecification.h.

40 {return m_type.typeName();}

◆ unit()

std::string AthenaAttributeSpecification::unit ( ) const
inline

Definition at line 41 of file AthenaAttributeSpecification.h.

41 {return m_type.unit();}

Member Data Documentation

◆ m_name

std::string AthenaAttributeSpecification::m_name
private

Definition at line 52 of file AthenaAttributeSpecification.h.

◆ m_type

AthenaAttributeType AthenaAttributeSpecification::m_type
private

Definition at line 53 of file AthenaAttributeSpecification.h.


The documentation for this class was generated from the following file:
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
AthenaAttributeType::group
std::string group() const
Definition: AthenaAttributeType.h:135
Trk::u
@ u
Enums for curvilinear frames.
Definition: ParamDefs.h:83
AthenaAttributeType::typeName
std::string typeName() const
Definition: AthenaAttributeType.h:119
AthenaAttributeSpecification::m_name
std::string m_name
Definition: AthenaAttributeSpecification.h:52
AthenaAttributeType::unit
std::string unit() const
Definition: AthenaAttributeType.h:127
python.CaloCondTools.g
g
Definition: CaloCondTools.py:15
beamspotman.n
n
Definition: beamspotman.py:731
AthenaAttributeSpecification::m_type
AthenaAttributeType m_type
Definition: AthenaAttributeSpecification.h:53