ATLAS Offline Software
Loading...
Searching...
No Matches
ExampleClass.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef ATHENAPOOLEXAMPLEDATA_EXAMPLECLASS_H
6#define ATHENAPOOLEXAMPLEDATA_EXAMPLECLASS_H
7
13
14#include <string>
15
20
21public: // Constructor and Destructor
23 ExampleClass() = default;
25 virtual ~ExampleClass() = default;
26
27public: // Non-static members
29 int getRun() const { return(m_run); }
30
32 int getEvent() const { return(m_event); }
33
35 const std::string& getText() const { return(m_text); }
36
39 void setRun(int run) { m_run = run; }
40
43 void setEvent(int event) { m_event = event; }
44
47 void setText(const std::string& text) { m_text = text; }
48
49private:
50 int m_run{0};
51 int m_event{0};
52 std::string m_text;
53};
55CLASS_DEF(ExampleClass, 67289510, 1)
56#endif
macros to associate a CLID to a type
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
This class provides an example data object for AthenaPool.
void setText(const std::string &text)
Set the text string.
int getRun() const
void setRun(int run)
Set the run number.
ExampleClass()=default
Default Constructor.
std::string m_text
void setEvent(int event)
Set the event number.
virtual ~ExampleClass()=default
Destructor.
const std::string & getText() const
int getEvent() const
Definition run.py:1