ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
SGTutorial::MyElement Class Reference

#include <MyElement.h>

Collaboration diagram for SGTutorial::MyElement:

Public Member Functions

 MyElement ()
 
 MyElement (float t, int i)
 
void set (float t, int i)
 
float time () const
 
int id () const
 
bool operator== (const MyElement &rhs) const
 

Private Attributes

float m_time
 
int m_channelID
 

Detailed Description

Definition at line 13 of file MyElement.h.

Constructor & Destructor Documentation

◆ MyElement() [1/2]

SGTutorial::MyElement::MyElement ( )
inline

Definition at line 16 of file MyElement.h.

16 {set(0,0);}

◆ MyElement() [2/2]

SGTutorial::MyElement::MyElement ( float  t,
int  i 
)
inline

Definition at line 17 of file MyElement.h.

17 {set(t,i);}

Member Function Documentation

◆ id()

int SGTutorial::MyElement::id ( ) const
inline

Definition at line 22 of file MyElement.h.

22 { return m_channelID; }

◆ operator==()

bool SGTutorial::MyElement::operator== ( const MyElement rhs) const
inline

Definition at line 24 of file MyElement.h.

24  {
25  return m_time == rhs.m_time && m_channelID == rhs.m_channelID;
26  }

◆ set()

void SGTutorial::MyElement::set ( float  t,
int  i 
)
inline

Definition at line 19 of file MyElement.h.

19 { m_time = t; m_channelID = i; }

◆ time()

float SGTutorial::MyElement::time ( ) const
inline

Definition at line 21 of file MyElement.h.

21 { return m_time; }

Member Data Documentation

◆ m_channelID

int SGTutorial::MyElement::m_channelID
private

Definition at line 30 of file MyElement.h.

◆ m_time

float SGTutorial::MyElement::m_time
private

Definition at line 29 of file MyElement.h.


The documentation for this class was generated from the following file:
SGTutorial::MyElement::set
void set(float t, int i)
Definition: MyElement.h:19
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SGTutorial::MyElement::m_channelID
int m_channelID
Definition: MyElement.h:30
lumiFormat.i
int i
Definition: lumiFormat.py:85
SGTutorial::MyElement::m_time
float m_time
Definition: MyElement.h:29